Changeset 1860 for trunk/src/kmk/commands.c
- Timestamp:
- Oct 13, 2008, 7:01:17 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/commands.c
r1440 r1860 96 96 { 97 97 name = file->name; 98 #ifndef CONFIG_WITH_VALUE_LENGTH 98 99 len = strlen (name); 100 #else 101 len = strcache_get_len (name); 102 #endif 99 103 } 100 104 101 105 for (d = enter_file (strcache_add (".SUFFIXES"))->deps; d ; d = d->next) 102 106 { 107 #ifndef CONFIG_WITH_VALUE_LENGTH 103 108 unsigned int slen = strlen (dep_name (d)); 109 #else 110 unsigned int slen = strcache_get_len (dep_name (d)); 111 #endif 104 112 if (len > slen && strneq (dep_name (d), name + (len - slen), slen)) 105 113 { … … 156 164 for (d = file->deps; d != 0; d = d->next) 157 165 if (! d->ignore_mtime) 166 #ifndef CONFIG_WITH_VALUE_LENGTH 158 167 plus_len += strlen (dep_name (d)) + 1; 168 #else 169 plus_len += strcache_get_len (dep_name (d)) + 1; 170 #endif 159 171 if (plus_len == 0) 160 172 plus_len++; … … 178 190 else 179 191 #endif 192 #ifndef CONFIG_WITH_VALUE_LENGTH 180 193 len = strlen (c); 194 #else 195 len = strcache_get_len (c); 196 #endif 181 197 182 198 memcpy (cp, c, len); … … 201 217 for (d = file->deps; d != 0; d = d->next) 202 218 if (d->ignore_mtime) 219 #ifndef CONFIG_WITH_VALUE_LENGTH 203 220 bar_len += strlen (dep_name (d)) + 1; 221 #else 222 bar_len += strcache_get_len (dep_name (d)) + 1; 223 #endif 204 224 if (bar_len == 0) 205 225 bar_len++; … … 229 249 else 230 250 #endif 251 #ifndef CONFIG_WITH_VALUE_LENGTH 231 252 len = strlen (c); 253 #else 254 len = strcache_get_len (c); 255 #endif 232 256 233 257 if (d->ignore_mtime) … … 336 360 #else 337 361 cmds->lines_flags = xmalloc (nlines); 338 #endif 362 #endif 339 363 for (idx = 0; idx < nlines; ++idx) 340 364 {
Note:
See TracChangeset
for help on using the changeset viewer.