Changeset 1805 for trunk/src/kmk/function.c
- Timestamp:
- Oct 9, 2008, 6:12:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/function.c
r1793 r1805 931 931 char *list = expand_argument (argv[1], NULL); 932 932 const char *body = argv[2]; 933 #ifdef KMK 934 long body_len = strlen (body); 935 #endif /* KMK - optimization */ 933 936 934 937 int doneany = 0; … … 944 947 while ((p = find_next_token (&list_iterator, &len)) != 0) 945 948 { 949 #ifndef KMK 946 950 char *result = 0; 951 #endif /* KMK - optimization */ 947 952 #ifdef CONFIG_WITH_VALUE_LENGTH 948 953 if (len >= (unsigned int)var->value_alloc_len) … … 960 965 #endif 961 966 967 #ifndef KMK 962 968 result = allocated_variable_expand (body); 963 969 … … 966 972 doneany = 1; 967 973 free (result); 974 #else /* KMK - optimization */ 975 variable_expand_string_2 (o, body, body_len, &o); 976 o = variable_buffer_output (o, " ", 1); 977 doneany = 1; 978 #endif /* KMK - optimization */ 968 979 } 969 980 … … 4303 4314 4304 4315 v->exp_count = EXP_COUNT_MAX; 4316 #ifndef KMK 4305 4317 o = variable_expand_string (o, body, flen+3); 4306 4318 v->exp_count = 0; 4307 4319 4308 4320 o += strlen (o); 4321 #else /* KMK - optimization */ 4322 variable_expand_string_2 (o, body, flen+3, &o); 4323 v->exp_count = 0; 4324 #endif /* KMK - optimization */ 4309 4325 #ifdef CONFIG_WITH_EVALPLUS 4310 4326 }
Note:
See TracChangeset
for help on using the changeset viewer.