Ignore:
Timestamp:
Oct 24, 2008, 10:22:22 PM (17 years ago)
Author:
bird
Message:

kmk: Made struct variable capable of holding read only variables to speed up set_file_variables.

File:
1 edited

Legend:

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

    r1926 r1932  
    10411041      if (len >= (unsigned int)var->value_alloc_len)
    10421042        {
    1043           free (var->value);
     1043# ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE
     1044          if (var->rdonly_val)
     1045            var->rdonly_val = 0;
     1046          else
     1047# endif
     1048            free (var->value);
    10441049          var->value_alloc_len = (len + 32) & ~31;
    10451050          var->value = xmalloc (var->value_alloc_len);
Note: See TracChangeset for help on using the changeset viewer.