Changeset 1864 for trunk/src/kmk/main.c


Ignore:
Timestamp:
Oct 15, 2008, 3:00:57 AM (17 years ago)
Author:
bird
Message:

kmk: use alloc caches for variables, variable sets and varaible set lists.

File:
1 edited

Legend:

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

    r1863 r1864  
    648648struct alloccache nameseq_cache;
    649649struct alloccache variable_cache;
     650struct alloccache variable_set_cache;
     651struct alloccache variable_set_list_cache;
    650652
    651653static void
    652654initialize_global_alloc_caches (void)
    653655{
    654   alloccache_init (&dep_cache,      sizeof (struct dep),      "dep",      NULL, NULL);
    655   alloccache_init (&nameseq_cache,  sizeof (struct nameseq),  "nameseq",  NULL, NULL);
    656   alloccache_init (&variable_cache, sizeof (struct variable), "variable", NULL, NULL);
     656  alloccache_init (&dep_cache,               sizeof (struct dep),               "dep",               NULL, NULL);
     657  alloccache_init (&nameseq_cache,           sizeof (struct nameseq),           "nameseq",           NULL, NULL);
     658  alloccache_init (&variable_cache,          sizeof (struct variable),          "variable",          NULL, NULL);
     659  alloccache_init (&variable_set_cache,      sizeof (struct variable_set),      "variable_set",      NULL, NULL);
     660  alloccache_init (&variable_set_list_cache, sizeof (struct variable_set_list), "variable_set_list", NULL, NULL);
    657661}
    658662#endif
     
    29332937  if (!remote_description || *remote_description == '\0')
    29342938    printf (_("\nThis program is built for %s/%s/%s [" __DATE__ " " __TIME__ "]\n"),
    2935             KBUILD_HOST, KBUILD_HOST_ARCH, KBUILD_HOST_CPU, remote_description);
     2939            KBUILD_HOST, KBUILD_HOST_ARCH, KBUILD_HOST_CPU);
    29362940  else
    29372941    printf (_("\nThis program is built for %s/%s/%s (%s) [" __DATE__ " " __TIME__ "]\n"),
Note: See TracChangeset for help on using the changeset viewer.