Changeset 1793 in kBuild for trunk/src/kmk
- Timestamp:
- Sep 19, 2008 11:30:50 PM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/file.c
r1751 r1793 194 194 if (second_target_expansion && strchr (name, '$') != NULL) 195 195 new->need_2nd_target_expansion = 1; 196 #endif 196 #endif 197 197 198 198 return new; … … 344 344 /* Performs secondary target name expansion and then renames 345 345 the file using rename_file. */ 346 static void 346 static void 347 347 do_2nd_target_expansion (struct file *f) 348 348 { … … 695 695 # ifdef KMK 696 696 warn_undefined_variables_flag = save; 697 # endif 698 697 # endif 698 699 699 /* Disable second target expansion now since we won't expand files 700 700 entered after this point. (saves CPU cycles in enter_file()). */ … … 1192 1192 { 1193 1193 #ifdef KMK 1194 hash_init (&files, 8192, file_hash_1, file_hash_2, file_hash_cmp);1194 hash_init (&files, /*65535*/ 32755, file_hash_1, file_hash_2, file_hash_cmp); 1195 1195 #else 1196 1196 hash_init (&files, 1000, file_hash_1, file_hash_2, file_hash_cmp); -
trunk/src/kmk/function.c
r1727 r1793 118 118 119 119 #ifdef CONFIG_WITH_MAKE_STATS 120 unsigned longmake_stats_allocations = 0;120 long make_stats_allocations = 0; 121 121 unsigned long make_stats_allocated = 0; 122 122 unsigned long make_stats_allocated_sum = 0; … … 3636 3636 if (!argv[0] || (!argv[0][0] && !argv[1])) 3637 3637 { 3638 len = sprintf (buf, "alloc-cur: %5l u%6luKB (/%3luMB) hash: %5lu %2lu%%",3638 len = sprintf (buf, "alloc-cur: %5ld %6luKB (/%3luMB) hash: %5lu %2lu%%", 3639 3639 make_stats_allocations, 3640 3640 make_stats_allocated / 1024, … … 3713 3713 } 3714 3714 recursive = 1; 3715 3715 3716 3716 file = lookup_file (argv[0]); 3717 3717 if (file && file->cmds) … … 3970 3970 #ifdef CONFIG_WITH_DEFINED 3971 3971 { STRING_SIZE_TUPLE("defined"), 1, 1, 1, func_defined}, 3972 #endif 3972 #endif 3973 3973 #ifdef CONFIG_WITH_TOUPPER_TOLOWER 3974 3974 { STRING_SIZE_TUPLE("toupper"), 0, 1, 1, func_toupper_tolower}, -
trunk/src/kmk/make.h
r1725 r1793 699 699 700 700 #ifdef CONFIG_WITH_MAKE_STATS 701 extern unsignedlong make_stats_allocations;701 extern long make_stats_allocations; 702 702 extern unsigned long make_stats_allocated; 703 703 extern unsigned long make_stats_allocated_sum; … … 736 736 extern char *abspath(const char *name, char *apath); 737 737 extern char *func_breakpoint(char *o, char **argv, const char *funcname); 738 #endif 738 #endif -
trunk/src/kmk/strcache.c
r1447 r1793 191 191 { 192 192 #ifdef KMK 193 hash_init (&strings, 16384, str_hash_1, str_hash_2, str_hash_cmp);193 hash_init (&strings, 65535, str_hash_1, str_hash_2, str_hash_cmp); 194 194 #else 195 195 hash_init (&strings, 8000, str_hash_1, str_hash_2, str_hash_cmp); -
trunk/src/kmk/variable.c
r1752 r1793 421 421 422 422 #ifndef VARIABLE_BUCKETS 423 # ifdef KMK /* Move to Makefile.kmk? */424 # define VARIABLE_BUCKETS 16384423 # ifdef KMK /* Move to Makefile.kmk? (insanely high, but wtf, it gets the collitions down) */ 424 # define VARIABLE_BUCKETS 65535 425 425 # else /*!KMK*/ 426 426 #define VARIABLE_BUCKETS 523 … … 429 429 #ifndef PERFILE_VARIABLE_BUCKETS 430 430 # ifdef KMK /* Move to Makefile.kmk? */ 431 # define PERFILE_VARIABLE_BUCKETS 64431 # define PERFILE_VARIABLE_BUCKETS 127 432 432 # else 433 433 #define PERFILE_VARIABLE_BUCKETS 23 … … 436 436 #ifndef SMALL_SCOPE_VARIABLE_BUCKETS 437 437 # ifdef KMK /* Move to Makefile.kmk? */ 438 # define SMALL_SCOPE_VARIABLE_BUCKETS 32438 # define SMALL_SCOPE_VARIABLE_BUCKETS 63 439 439 # else 440 440 #define SMALL_SCOPE_VARIABLE_BUCKETS 13
Note:
See TracChangeset
for help on using the changeset viewer.