Ignore:
Timestamp:
Jun 20, 2012, 12:44:52 AM (13 years ago)
Author:
bird
Message:

gnumake/current -> 3.82-cvs.

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  
    11/* Miscellaneous global declarations and portability cruft for GNU Make.
    22Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
    3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
    4 Foundation, Inc.
     31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
     42010 Free Software Foundation, Inc.
    55This file is part of GNU Make.
    66
     
    2424#define HAVE_CONFIG_H 1
    2525
     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
    2631/* 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
    3236 #pragma alloca
    33 #  else
     37# else
     38#  if !defined(__GNUC__) && !defined(WINDOWS32)
    3439#   ifndef alloca /* predefined by HP cc +Olibcalls */
    3540char *alloca ();
     
    3843# endif
    3944#endif
    40 
    41 
    42 /* Specify we want GNU source code.  This must be defined before any
    43    system headers are included.  */
    44 
    45 #define _GNU_SOURCE 1
    4645
    4746
     
    268267#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
    269268
    270 #ifndef iAPX286
    271 # define streq(a, b) \
     269/* Test if two strings are equal. Is this worthwhile?  Should be profiled.  */
     270#define streq(a, b) \
    272271   ((a) == (b) || \
    273272    (*(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) \
    276279    ((a) == (b) \
    277280     || (tolower((unsigned char)*(a)) == tolower((unsigned char)*(b)) \
    278281         && (*(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
    287286#define strneq(a, b, l) (strncmp ((a), (b), (l)) == 0)
    288287
     
    330329
    331330void sync_Path_environment (void);
    332 int w32_kill (int pid, int sig);
     331int w32_kill (pid_t pid, int sig);
    333332char *end_of_token_w32 (const char *s, char stopchar);
    334333int find_and_set_default_shell (const char *token);
     
    340339extern int unixy_shell;
    341340#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>
     347struct rlimit stack_limit;
     348#endif
    342349
    343350struct floc
     
    362369
    363370#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H
     371const char *concat (unsigned int, ...);
    364372void message (int prefix, const char *fmt, ...)
    365373              __attribute__ ((__format__ (__printf__, 2, 3)));
     
    369377                   __attribute__ ((noreturn, __format__ (__printf__, 2, 3)));
    370378#else
     379const char *concat ();
    371380void message ();
    372381void error ();
     
    378387void pfatal_with_name (const char *) __attribute__ ((noreturn));
    379388void perror_with_name (const char *, const char *);
    380 char *savestring (const char *, unsigned int);
    381 char *concat (const char *, const char *, const char *);
    382389void *xmalloc (unsigned int);
     390void *xcalloc (unsigned int);
    383391void *xrealloc (void *, unsigned int);
    384392char *xstrdup (const char *);
     393char *xstrndup (const char *, unsigned int);
    385394char *find_next_token (const char **, unsigned int *);
    386395char *next_token (const char *);
     
    426435void build_vpath_lists (void);
    427436void construct_vpath_list (char *pattern, char *dirpath);
    428 const char *vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr);
     437const char *vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr,
     438                          unsigned int* vpath_index, unsigned int* path_index);
    429439int gpath_search (const char *file, unsigned int len);
    430440
     
    483493#endif
    484494
     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 */
     502int strncasecmp (const char *s1, const char *s2, int n);
     503# endif
     504#endif
     505
    485506extern const struct floc *reading_file;
    486507extern const struct floc **expanding_var;
     
    494515extern int warn_undefined_variables_flag, posix_pedantic, not_parallel;
    495516extern int second_expansion, clock_skew_detected, rebuilding_makefiles;
     517extern int one_shell;
    496518
    497519/* can we run commands via 'sh -c xxx' or must we use batch files? */
Note: See TracChangeset for help on using the changeset viewer.