Changeset 2596 for vendor/gnumake/current/make.h
- Timestamp:
- Jun 20, 2012, 12:44:52 AM (13 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/make.h
r1989 r2596 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 (); … … 38 43 # endif 39 44 #endif 40 41 42 /* Specify we want GNU source code. This must be defined before any43 system headers are included. */44 45 #define _GNU_SOURCE 146 45 47 46 … … 268 267 #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) 269 268 270 #ifndef iAPX286 271 # 269 /* Test if two strings are equal. Is this worthwhile? Should be profiled. */ 270 #define streq(a, b) \ 272 271 ((a) == (b) || \ 273 272 (*(a) == *(b) && (*(a) == '\0' || !strcmp ((a) + 1, (b) + 1)))) 274 # ifdef HAVE_CASE_INSENSITIVE_FS 275 # define strieq(a, b) \ 273 274 /* Test if two strings are equal, but match case-insensitively on systems 275 which have case-insensitive filesystems. Should only be used for 276 filenames! */ 277 #ifdef HAVE_CASE_INSENSITIVE_FS 278 # define patheq(a, b) \ 276 279 ((a) == (b) \ 277 280 || (tolower((unsigned char)*(a)) == tolower((unsigned char)*(b)) \ 278 281 && (*(a) == '\0' || !strcasecmp ((a) + 1, (b) + 1)))) 279 # else 280 # define strieq(a, b) streq(a, b) 281 # endif 282 #else 283 /* Buggy compiler can't handle this. */ 284 # define streq(a, b) (strcmp ((a), (b)) == 0) 285 # define strieq(a, b) (strcmp ((a), (b)) == 0) 286 #endif 282 #else 283 # define patheq(a, b) streq(a, b) 284 #endif 285 287 286 #define strneq(a, b, l) (strncmp ((a), (b), (l)) == 0) 288 287 … … 330 329 331 330 void sync_Path_environment (void); 332 int w32_kill ( int pid, int sig);331 int w32_kill (pid_t pid, int sig); 333 332 char *end_of_token_w32 (const char *s, char stopchar); 334 333 int find_and_set_default_shell (const char *token); … … 340 339 extern int unixy_shell; 341 340 #endif /* WINDOWS32 */ 341 342 #if defined(HAVE_SYS_RESOURCE_H) && defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT) 343 # define SET_STACK_SIZE 344 #endif 345 #ifdef SET_STACK_SIZE 346 # include <sys/resource.h> 347 struct rlimit stack_limit; 348 #endif 342 349 343 350 struct floc … … 362 369 363 370 #if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H 371 const char *concat (unsigned int, ...); 364 372 void message (int prefix, const char *fmt, ...) 365 373 __attribute__ ((__format__ (__printf__, 2, 3))); … … 369 377 __attribute__ ((noreturn, __format__ (__printf__, 2, 3))); 370 378 #else 379 const char *concat (); 371 380 void message (); 372 381 void error (); … … 378 387 void pfatal_with_name (const char *) __attribute__ ((noreturn)); 379 388 void perror_with_name (const char *, const char *); 380 char *savestring (const char *, unsigned int);381 char *concat (const char *, const char *, const char *);382 389 void *xmalloc (unsigned int); 390 void *xcalloc (unsigned int); 383 391 void *xrealloc (void *, unsigned int); 384 392 char *xstrdup (const char *); 393 char *xstrndup (const char *, unsigned int); 385 394 char *find_next_token (const char **, unsigned int *); 386 395 char *next_token (const char *); … … 426 435 void build_vpath_lists (void); 427 436 void construct_vpath_list (char *pattern, char *dirpath); 428 const char *vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr); 437 const char *vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr, 438 unsigned int* vpath_index, unsigned int* path_index); 429 439 int gpath_search (const char *file, unsigned int len); 430 440 … … 483 493 #endif 484 494 495 #if !HAVE_STRNCASECMP 496 # if HAVE_STRNICMP 497 # define strncasecmp strnicmp 498 # elif HAVE_STRNCMPI 499 # define strncasecmp strncmpi 500 # else 501 /* Create our own, in misc.c */ 502 int strncasecmp (const char *s1, const char *s2, int n); 503 # endif 504 #endif 505 485 506 extern const struct floc *reading_file; 486 507 extern const struct floc **expanding_var; … … 494 515 extern int warn_undefined_variables_flag, posix_pedantic, not_parallel; 495 516 extern int second_expansion, clock_skew_detected, rebuilding_makefiles; 517 extern int one_shell; 496 518 497 519 /* can we run commands via 'sh -c xxx' or must we use batch files? */
Note:
See TracChangeset
for help on using the changeset viewer.