void install_default_suffix_rules (void) { char **s; if (no_builtin_rules_flag) return; for (s = default_suffix_rules; *s != 0; s += 2) { struct file *f = enter_file (strcache_add (s[0])); /* Don't clobber cmds given in a makefile if there were any. */ if (f->cmds == 0) { #ifndef CONFIG_WITH_ALLOC_CACHES f->cmds = xmalloc (sizeof (struct commands)); #else f->cmds = alloccache_alloc (&commands_cache); #endif f->cmds->fileinfo.filenm = 0; f->cmds->commands = s[1]; f->cmds->command_lines = 0; #ifdef CONFIG_WITH_MEMORY_OPTIMIZATIONS f->cmds->refs = 1000; #endif } } }
/* allocate a record. */ static void * incdep_alloc_rec (struct incdep *cur) { return alloccache_alloc (&incdep_rec_caches[cur->worker_tid]); }