- Timestamp:
- Mar 14, 2018 9:58:32 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/alloccache.c
r3140 r3141 39 39 *******************************************************************************/ 40 40 #include "makeint.h" 41 #include "filedef.h" 41 42 #include "dep.h" 42 43 #include "debug.h" -
trunk/src/kmk/config.h.linux
r3140 r3141 1 1 /* config.h. Generated from config.h.in by configure. */ 2 2 /* config.h.in. Generated from configure.in by autoheader. */ 3 4 /* 5 * bird: Move up this bunch so we can include features.h early. 6 */ 7 8 /* Enable extensions on AIX 3, Interix. */ 9 #ifndef _ALL_SOURCE 10 # define _ALL_SOURCE 1 11 #endif 12 /* Enable GNU extensions on systems that have them. */ 13 #ifndef _GNU_SOURCE 14 # define _GNU_SOURCE 1 15 #endif 16 /* Enable threading extensions on Solaris. */ 17 #ifndef _POSIX_PTHREAD_SEMANTICS 18 # define _POSIX_PTHREAD_SEMANTICS 1 19 #endif 20 /* Enable extensions on HP NonStop. */ 21 #ifndef _TANDEM_SOURCE 22 # define _TANDEM_SOURCE 1 23 #endif 24 /* Enable general extensions on Solaris. */ 25 #ifndef __EXTENSIONS__ 26 # define __EXTENSIONS__ 1 27 #endif 28 29 #include <features.h> /* bird */ 30 3 31 4 32 /* Define to 1 if the `closedir' function returns void instead of `int'. */ … … 397 425 398 426 399 /* Enable extensions on AIX 3, Interix. */400 #ifndef _ALL_SOURCE401 # define _ALL_SOURCE 1402 #endif403 /* Enable GNU extensions on systems that have them. */404 #ifndef _GNU_SOURCE405 # define _GNU_SOURCE 1406 #endif407 /* Enable threading extensions on Solaris. */408 #ifndef _POSIX_PTHREAD_SEMANTICS409 # define _POSIX_PTHREAD_SEMANTICS 1410 #endif411 /* Enable extensions on HP NonStop. */412 #ifndef _TANDEM_SOURCE413 # define _TANDEM_SOURCE 1414 #endif415 /* Enable general extensions on Solaris. */416 #ifndef __EXTENSIONS__417 # define __EXTENSIONS__ 1418 #endif419 420 421 427 /* Version number of package */ 422 428 #define VERSION "3.82" -
trunk/src/kmk/expreval.c
r3140 r3141 33 33 #include <glob.h> 34 34 35 #include "filedef.h" 35 36 #include "dep.h" 36 #include "filedef.h"37 37 #include "job.h" 38 38 #include "commands.h" -
trunk/src/kmk/function.c
r3140 r3141 2150 2150 struct variable *v = lookup_variable (argv[i], strlen (argv[i])); 2151 2151 # ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE 2152 if (v && !v->origin != o_automatic && !v->rdonly_val)2152 if (v && v->origin != o_automatic && !v->rdonly_val) 2153 2153 # else 2154 if (v && !v->origin != o_automatic)2154 if (v && v->origin != o_automatic) 2155 2155 # endif 2156 2156 { -
trunk/src/kmk/incdep.c
r3140 r3141 551 551 /* bail out */ 552 552 553 error (f, "%s: read: %s", cur->name, strerror (errno));553 OSS (error, f, "%s: read: %s", cur->name, strerror (errno)); 554 554 incdep_xfree (cur, cur->file_base); 555 555 } 556 556 else 557 error (f, "%s: fstat: %s", cur->name, strerror (errno));557 OSS (error, f, "%s: fstat: %s", cur->name, strerror (errno)); 558 558 559 559 close (fd); -
trunk/src/kmk/job.c
r3140 r3141 1085 1085 if (!jobserver_tokens) 1086 1086 ONS (fatal, NILF, "INTERNAL: Freeing child %p (%s) but no tokens left!\n", 1087 child, child->file->name);1087 (void *)child, child->file->name); 1088 1088 1089 1089 /* If we're using the jobserver and this child is not the only outstanding … … 1174 1174 #else 1175 1175 char **argv; 1176 # if !defined(__MSDOS__) && !defined(_AMIGA) && !defined(WINDOWS32) && !defined(VMS)1177 char ** volatile volatile_argv;1178 int volatile volatile_flags;1179 # endif1180 1176 #endif 1181 1177 … … 2800 2796 static const char *sh_chars_sh = "#;\"*?[]&|<>(){}$`^~!"; 2801 2797 # endif /* HAVE_DOS_PATHS */ 2802 char * sh_chars = sh_chars_sh; /* kmk: +_sh*/2803 char ** sh_cmds = sh_cmds_sh; /* kmk: +_sh*/2798 char const * sh_chars = sh_chars_sh; /* kmk: +_sh +const */ 2799 char const * const * sh_cmds = sh_cmds_sh; /* kmk: +_sh +const*2 */ 2804 2800 #endif 2805 2801 #ifdef KMK 2806 static c har sh_chars_kash[] = "#;*?[]&|<>(){}$`^~!"; /* note: no \" - good idea? */2807 static c har *sh_cmds_kash[] = {2802 static const char sh_chars_kash[] = "#;*?[]&|<>(){}$`^~!"; /* note: no \" - good idea? */ 2803 static const char * const sh_cmds_kash[] = { 2808 2804 ".", ":", "break", "case", "cd", "continue", "echo", "eval", "exec", "exit", 2809 2805 "export", "for", "if", "login", "logout", "read", "readonly", "set", -
trunk/src/kmk/kbuild-object.c
r3140 r3141 465 465 else 466 466 error(pFileLoc, 20, _("The '$([%.*s...' accessor can only be used in the context of a kBuild object"), 467 MAX(cchLeft, 20), pchLeft);467 (int)MIN(cchLeft, 20), pchLeft); 468 468 } 469 469 -
trunk/src/kmk/kmkbuiltin/append.c
r3140 r3141 83 83 int fVariables = 0; 84 84 int fCommands = 0; 85 #ifndef kmk_builtin_append 85 86 int fLookForInserts = 0; 87 #endif 86 88 87 89 g_progname = argv[0]; -
trunk/src/kmk/kmkbuiltin/kDepObj.c
r3064 r3141 601 601 if (off + sizeof(*pHdr) >= cbSyms) 602 602 { 603 fprintf(stderr, "%s: CV symbol table entry at %08" KX32_PRI " is too long; cbSyms=%#" K SIZE_PRI "\n",603 fprintf(stderr, "%s: CV symbol table entry at %08" KX32_PRI " is too long; cbSyms=%#" KX32_PRI "\n", 604 604 argv0, off, cbSyms); 605 605 return 1; /* FIXME */ … … 609 609 if (off + cbData + sizeof(*pHdr) > cbSyms) 610 610 { 611 fprintf(stderr, "%s: CV symbol table entry at %08" KX32_PRI " is too long; cbData=%#" KX32_PRI " cbSyms=%#" K SIZE_PRI "\n",611 fprintf(stderr, "%s: CV symbol table entry at %08" KX32_PRI " is too long; cbData=%#" KX32_PRI " cbSyms=%#" KX32_PRI "\n", 612 612 argv0, off, cbData, cbSyms); 613 613 return 1; /* FIXME */ -
trunk/src/kmk/main.c
r3140 r3141 3233 3233 _("warning: Clock skew detected. Your build may be incomplete.")); 3234 3234 3235 MAKE_STATS_2(if (uStartTick) printf("main ticks elapsed: % ull\n", (unsigned long long)(CURRENT_CLOCK_TICK() - uStartTick)) );3235 MAKE_STATS_2(if (uStartTick) printf("main ticks elapsed: %llu\n", (unsigned long long)(CURRENT_CLOCK_TICK() - uStartTick)) ); 3236 3236 /* Exit. */ 3237 3237 die (makefile_status);
Note:
See TracChangeset
for help on using the changeset viewer.