Changeset 2001 in kBuild
- Timestamp:
- Oct 29, 2008 10:14:48 PM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/electric.c
r1453 r2001 54 54 fprintf (stderr, "electric heap error: %s (errno=%d)\n", msg, errno); 55 55 __asm__ ("int3"); /* not portable... */ 56 #endif 56 #endif 57 57 abort (); 58 58 exit (1); … … 188 188 } 189 189 190 #endif /* ELECTRIC_HEAP */ 190 #else /* !ELECTRIC_HEAP */ 191 extern void electric_heap_keep_ansi_c_quiet (void); 192 #endif /* !ELECTRIC_HEAP */ 191 193 -
trunk/src/kmk/filedef.h
r1995 r2001 210 210 #define ORDINARY_MTIME_MIN (OLD_MTIME + 1) 211 211 #if FILE_TIMESTAMP_HI_RES == 0 /* bird: shut up annoying warnings! 212 ASSUMES: unsi nged FILE_TIMESTAMP ++. */213 # define ORDINARY_MTIME_MAX ( ~ (FILE_TIMESTAMP) 0 )212 ASSUMES: unsigned FILE_TIMESTAMP ++. */ 213 # define ORDINARY_MTIME_MAX ( ~ (FILE_TIMESTAMP) 0 ) 214 214 #else 215 215 #define ORDINARY_MTIME_MAX ((FILE_TIMESTAMP_S (NEW_MTIME) \ … … 224 224 targets, which need to be considered newer than anything that depends on 225 225 them, even if said dependents' modtimes are in the future. */ 226 #if 1 /* bird: ASSUME the type is unsigned and the wrath of a pedantic gcc. */ 227 # define NEW_MTIME ( ~ (FILE_TIMESTAMP) 0 ) 228 #else 226 229 #define NEW_MTIME INTEGER_TYPE_MAXIMUM (FILE_TIMESTAMP) 230 #endif 227 231 228 232 #define check_renamed(file) \ -
trunk/src/kmk/glob/glob.c
r1993 r2001 390 390 /* Allocate working buffer large enough for our work. Note that 391 391 we have at least an opening and closing brace. */ 392 int firstc;392 size_t firstc; 393 393 char *alt_start; 394 394 const char *p; -
trunk/src/kmk/implicit.c
r1993 r2001 117 117 118 118 if (c == '\0') 119 return 0; 119 { 120 if (length) /* bird: shut up gcc. */ 121 *length = 0; 122 return 0; 123 } 120 124 121 125 -
trunk/src/kmk/job.c
r1996 r2001 2103 2103 { 2104 2104 DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [start_waiting_jobs]\n"), 2105 not_parallel, not_parallel - 1, job->file, job->file->name));2105 not_parallel, not_parallel - 1, (void *) job->file, job->file->name)); 2106 2106 assert(not_parallel > 0); 2107 2107 --not_parallel; -
trunk/src/kmk/kmkbuiltin/err.c
r785 r2001 75 75 void warnx(const char *fmt, ...) 76 76 { 77 int err = errno;78 77 va_list args; 79 78 fprintf(stderr, "%s: ", g_progname); -
trunk/src/kmk/kmkbuiltin/kbuild_protection.c
r1635 r2001 37 37 # include <limits.h> 38 38 # include <direct.h> 39 #endif 39 #else 40 # include <unistd.h> 41 #endif 40 42 #include "kbuild_protection.h" 43 #include "err.h" 41 44 42 45 … … 185 188 } 186 189 } 187 #else 190 #else /* !WIN && !OS2 */ 188 191 if (!IS_SLASH(pszPath[0])) 189 192 { … … 199 202 cComponents = countSubPathComponents(szCwd, 0); 200 203 } 201 #endif 204 #endif /* !WIN && !OS2 */ 202 205 203 206 /* … … 352 355 if (cComponents < 0) 353 356 return -1; 354 if ( cComponents <= pThis->cProtectionDepth)357 if ((unsigned int)cComponents <= pThis->cProtectionDepth) 355 358 { 356 359 errx(1, "%s: protected", pszPath); -
trunk/src/kmk/kmkbuiltin/kbuild_protection.h
r1598 r2001 46 46 typedef struct KBUILDPROTECTION 47 47 { 48 unsigned 49 unsigned 48 unsigned int uMagic; 49 unsigned int cProtectionDepth; 50 50 unsigned char afTypes[KBUILDPROTECTIONTYPE_MAX]; 51 51 } KBUILDPROTECTION; -
trunk/src/kmk/kmkbuiltin/setmode.c
r1710 r2001 396 396 case 'X': 397 397 set->cmd = op; 398 set->bits = (who ? who : mask) & oparg;398 set->bits = (who ? (mode_t)who : mask) & oparg; 399 399 break; 400 400 -
trunk/src/kmk/remake.c
r1994 r2001 902 902 int touched = 0; 903 903 DB (DB_JOBS, (_("notice_finished_file - entering: file=%p `%s' update_status=%d command_state=%d\n"), /* bird */ 904 file, file->name, file->update_status, file->command_state));904 (void *) file, file->name, file->update_status, file->command_state)); 905 905 906 906 file->command_state = cs_finished; … … 925 925 { 926 926 DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s') [notice_finished_file]\n"), not_parallel, 927 not_parallel - 1, file, file->name));927 not_parallel - 1, (void *) file, file->name)); 928 928 assert(not_parallel >= 1); 929 929 --not_parallel;
Note:
See TracChangeset
for help on using the changeset viewer.