Ignore:
Timestamp:
Oct 24, 2008, 8:17:28 AM (17 years ago)
Author:
bird
Message:

kmk/read.c: more free() avoidance, this time some very small buffers for conditionals. Use static buffers for the first chunk, this avoids all alloc/free for a typical kBuild run. the cost is 16 bytes of stack per recursion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expand.c

    r1928 r1929  
    10081008  variable_buffer = 0;
    10091009
    1010   assert (v->length == strlen (v->name));
     1010  assert ((unsigned int)v->length == strlen (v->name));
    10111011  val = variable_append (v->name, strlen (v->name), current_variable_set_list);
    10121012  variable_buffer_output (val, "", 1);
Note: See TracChangeset for help on using the changeset viewer.