Changeset 2591 in kBuild for trunk/src/kmk/make.h
- Timestamp:
- Jun 17, 2012 8:45:31 PM (13 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/make.h
r2548 r2591 1 1 /* Miscellaneous global declarations and portability cruft for GNU Make. 2 2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software4 Foundation, Inc.3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 4 2010 Free Software Foundation, Inc. 5 5 This file is part of GNU Make. 6 6 … … 24 24 #define HAVE_CONFIG_H 1 25 25 26 /* Specify we want GNU source code. This must be defined before any 27 system headers are included. */ 28 29 #define _GNU_SOURCE 1 30 26 31 /* AIX requires this to be the first thing in the file. */ 27 #ifndef __GNUC__ 28 # if HAVE_ALLOCA_H 29 # include <alloca.h> 30 # else 31 # ifdef _AIX 32 #if HAVE_ALLOCA_H 33 # include <alloca.h> 34 #else 35 # ifdef _AIX 32 36 #pragma alloca 33 # else 37 # else 38 # if !defined(__GNUC__) && !defined(WINDOWS32) 34 39 # ifndef alloca /* predefined by HP cc +Olibcalls */ 35 40 char *alloca (); … … 37 42 # endif 38 43 # endif 39 #elif defined(__sun__) && defined (HAVE_ALLOCA_H) /* bird: kill warnings. */ 40 # include <alloca.h> 41 #endif 42 43 44 /* Specify we want GNU source code. This must be defined before any 45 system headers are included. */ 46 47 #define _GNU_SOURCE 1 44 #endif 48 45 49 46 … … 240 237 #endif 241 238 239 /* bird - start */ 240 #define COMMA , 241 #ifdef CONFIG_WITH_VALUE_LENGTH 242 # define IF_WITH_VALUE_LENGTH(a_Expr) a_Expr 243 # define IF_WITH_VALUE_LENGTH_PARAM(a_Expr) , a_Expr 244 #else 245 # define IF_WITH_VALUE_LENGTH(a_Expr) 246 # define IF_WITH_VALUE_LENGTH_PARAM(a_Expr) 247 #endif 248 249 #ifdef CONFIG_WITH_ALLOC_CACHES 250 # define IF_WITH_ALLOC_CACHES(a_Expr) a_Expr 251 # define IF_WITH_ALLOC_CACHES_PARAM(a_Expr) , a_Expr 252 #else 253 # define IF_WITH_ALLOC_CACHES(a_Expr) 254 # define IF_WITH_ALLOC_CACHES_PARAM(a_Expr) 255 #endif 256 257 #ifdef CONFIG_WITH_COMMANDS_FUNC 258 # define IF_WITH_COMMANDS_FUNC(a_Expr) a_Expr 259 # define IF_WITH_COMMANDS_FUNC_PARAM(a_Expr) , a_Expr 260 #else 261 # define IF_WITH_COMMANDS_FUNC(a_Expr) 262 # define IF_WITH_COMMANDS_FUNC_PARAM(a_Expr) 263 #endif 264 265 /* bird - end */ 266 242 267 243 268 #ifndef CHAR_BIT … … 363 388 #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) 364 389 365 #ifndef iAPX286 366 # 390 /* Test if two strings are equal. Is this worthwhile? Should be profiled. */ 391 #define streq(a, b) \ 367 392 ((a) == (b) || \ 368 393 (*(a) == *(b) && (*(a) == '\0' || !strcmp ((a) + 1, (b) + 1)))) 369 # ifdef HAVE_CASE_INSENSITIVE_FS 370 # define strieq(a, b) \ 394 395 /* Test if two strings are equal, but match case-insensitively on systems 396 which have case-insensitive filesystems. Should only be used for 397 filenames! */ 398 #ifdef HAVE_CASE_INSENSITIVE_FS 399 # define patheq(a, b) \ 371 400 ((a) == (b) \ 372 401 || (tolower((unsigned char)*(a)) == tolower((unsigned char)*(b)) \ 373 402 && (*(a) == '\0' || !strcasecmp ((a) + 1, (b) + 1)))) 374 # else 375 # define strieq(a, b) streq(a, b) 376 # endif 377 #else 378 /* Buggy compiler can't handle this. */ 379 # define streq(a, b) (strcmp ((a), (b)) == 0) 380 # define strieq(a, b) (strcmp ((a), (b)) == 0) 381 #endif 403 #else 404 # define patheq(a, b) streq(a, b) 405 #endif 406 382 407 #define strneq(a, b, l) (strncmp ((a), (b), (l)) == 0) 383 408 … … 425 450 426 451 void sync_Path_environment (void); 427 int w32_kill ( int pid, int sig);452 int w32_kill (pid_t pid, int sig); 428 453 char *end_of_token_w32 (const char *s, char stopchar); 429 454 int find_and_set_default_shell (const char *token); … … 435 460 extern int unixy_shell; 436 461 #endif /* WINDOWS32 */ 462 463 #if defined(HAVE_SYS_RESOURCE_H) && defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT) 464 # define SET_STACK_SIZE 465 #endif 466 #ifdef SET_STACK_SIZE 467 # include <sys/resource.h> 468 struct rlimit stack_limit; 469 #endif 437 470 438 471 struct floc … … 475 508 476 509 #if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H 510 const char *concat (unsigned int, ...); 477 511 void message (int prefix, const char *fmt, ...) 478 512 __attribute__ ((__format__ (__printf__, 2, 3))); … … 482 516 __attribute__ ((noreturn, __format__ (__printf__, 2, 3))); 483 517 #else 518 const char *concat (); 484 519 void message (); 485 520 void error (); … … 491 526 void pfatal_with_name (const char *) __attribute__ ((noreturn)); 492 527 void perror_with_name (const char *, const char *); 493 char *savestring (const char *, unsigned int);494 char *concat (const char *, const char *, const char *);495 528 void *xmalloc (unsigned int); 529 void *xcalloc (unsigned int); 496 530 void *xrealloc (void *, unsigned int); 497 531 char *xstrdup (const char *); 532 char *xstrndup (const char *, unsigned int); 498 533 #ifdef CONFIG_WITH_PRINT_STATS_SWITCH 499 534 void print_heap_stats (void); … … 553 588 void build_vpath_lists (void); 554 589 void construct_vpath_list (char *pattern, char *dirpath); 555 const char *vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr); 590 const char *vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr, 591 unsigned int* vpath_index, unsigned int* path_index); 556 592 int gpath_search (const char *file, unsigned int len); 557 593 … … 696 732 #endif 697 733 734 #if !HAVE_STRNCASECMP 735 # if HAVE_STRNICMP 736 # define strncasecmp strnicmp 737 # elif HAVE_STRNCMPI 738 # define strncasecmp strncmpi 739 # else 740 /* Create our own, in misc.c */ 741 int strncasecmp (const char *s1, const char *s2, int n); 742 # endif 743 #endif 744 698 745 extern const struct floc *reading_file; 699 746 extern const struct floc **expanding_var; … … 709 756 extern int warn_undefined_variables_flag, posix_pedantic, not_parallel; 710 757 extern int second_expansion, clock_skew_detected, rebuilding_makefiles; 758 extern int one_shell; 759 711 760 #ifdef CONFIG_WITH_2ND_TARGET_EXPANSION 712 761 extern int second_target_expansion;
Note:
See TracChangeset
for help on using the changeset viewer.