Ignore:
Timestamp:
Oct 9, 2008, 6:12:33 AM (17 years ago)
Author:
bird
Message:

kmk: Some minor optimizations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/variable.h

    r1622 r1805  
    136136#endif
    137137char *allocated_variable_expand_for_file (const char *line, struct file *file);
     138#ifndef KMK
    138139#define allocated_variable_expand(line) \
    139140  allocated_variable_expand_for_file (line, (struct file *) 0)
     141#else  /* KMK */
     142# define allocated_variable_expand(line) \
     143  allocated_variable_expand_2 (line, -1)
     144char *allocated_variable_expand_2(const char *line, long length);
     145#endif
    140146char *expand_argument (const char *str, const char *end);
    141147char *variable_expand_string (char *line, const char *string, long length);
     148#ifdef KMK
     149char *variable_expand_string_2 (char *line, const char *string, long length, char **eol);
     150#endif
    142151void install_variable_buffer (char **bufp, unsigned int *lenp);
    143152void restore_variable_buffer (char *buf, unsigned int len);
Note: See TracChangeset for help on using the changeset viewer.