Changeset 503 for trunk/src/gmake/make.h


Ignore:
Timestamp:
Sep 15, 2006, 7:09:38 AM (19 years ago)
Author:
bird
Message:

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/make.h

    r430 r503  
    11/* Miscellaneous global declarations and portability cruft for GNU Make.
    2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999,
    3 2002 Free Software Foundation, Inc.
     2Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
     31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
     4Foundation, Inc.
    45This file is part of GNU Make.
    56
    6 GNU Make is free software; you can redistribute it and/or modify
    7 it under the terms of the GNU General Public License as published by
    8 the Free Software Foundation; either version 2, or (at your option)
    9 any later version.
    10 
    11 GNU Make is distributed in the hope that it will be useful,
    12 but WITHOUT ANY WARRANTY; without even the implied warranty of
    13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14 GNU General Public License for more details.
    15 
    16 You should have received a copy of the GNU General Public License
    17 along with GNU Make; see the file COPYING.  If not, write to
    18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    19 Boston, MA 02111-1307, USA.  */
     7GNU Make is free software; you can redistribute it and/or modify it under the
     8terms of the GNU General Public License as published by the Free Software
     9Foundation; either version 2, or (at your option) any later version.
     10
     11GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
     12WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     13A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     14
     15You should have received a copy of the GNU General Public License along with
     16GNU Make; see the file COPYING.  If not, write to the Free Software
     17Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */
    2018
    2119/* We use <config.h> instead of "config.h" so that a compilation
     
    4341
    4442/* Use prototypes if available.  */
    45 #if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
     43#if defined (__cplusplus) || defined (__STDC__)
    4644# undef  PARAMS
    4745# define PARAMS(protos)  protos
     
    277275# endif
    278276
    279 #endif  /* ANSI_STRING.  */
    280 #undef  ANSI_STRING
    281 
    282277/* SCO Xenix has a buggy macro definition in <string.h>.  */
    283278#undef  strerror
    284 
    285 #if !defined(ANSI_STRING) && !defined(__DECC)
     279#if !defined(__DECC)
    286280extern char *strerror PARAMS ((int errnum));
    287281#endif
     282
     283#endif  /* !ANSI_STRING.  */
     284#undef  ANSI_STRING
    288285
    289286#if HAVE_INTTYPES_H
     
    359356#endif
    360357
     358/* This is needed for getcwd() and chdir().  */
     359#if defined(_MSC_VER) || defined(__BORLANDC__)
     360# include <direct.h>
     361#endif
     362
    361363#ifdef WINDOWS32
    362364# include <fcntl.h>
     
    379381struct floc
    380382  {
    381     char *filenm;
     383    const char *filenm;
    382384    unsigned long lineno;
    383385  };
     
    423425extern char *end_of_token PARAMS ((const char *));
    424426extern void collapse_continuations PARAMS ((char *));
    425 extern void remove_comments PARAMS((char *));
    426427#ifdef KMK
    427428#define lindex(s, limit, c) ((char *)memchr((s), (c), (limit) - (s)))
     
    431432extern int alpha_compare PARAMS ((const void *, const void *));
    432433extern void print_spaces PARAMS ((unsigned int));
    433 extern char *find_char_unquote PARAMS ((char *, int, int, int));
    434434extern char *find_percent PARAMS ((char *));
    435435extern FILE *open_tmpfile PARAMS ((char **, const char *));
     
    465465extern void child_access PARAMS ((void));
    466466
    467 extern char *
    468 strip_whitespace PARAMS ((const char **begpp, const char **endpp));
    469 
     467extern void close_stdout PARAMS ((void));
     468
     469extern char *strip_whitespace PARAMS ((const char **begpp, const char **endpp));
     470
     471/* String caching  */
     472extern void strcache_init PARAMS ((void));
     473extern void strcache_print_stats PARAMS ((const char *prefix));
     474extern int strcache_iscached PARAMS ((const char *str));
     475extern const char *strcache_add PARAMS ((const char *str));
     476extern const char *strcache_add_len PARAMS ((const char *str, int len));
     477extern int strcache_setbufsize PARAMS ((int size));
    470478
    471479#ifdef  HAVE_VFORK_H
     
    488496# if !defined(VMS) && !defined(__DECC)
    489497extern char *getcwd ();
    490 #endif
     498# endif
    491499#else
    492500extern char *getwd ();
     
    495503
    496504extern const struct floc *reading_file;
     505extern const struct floc **expanding_var;
    497506
    498507extern char **environ;
     
    503512extern int print_version_flag, print_directory_flag, check_symlink_flag;
    504513extern int warn_undefined_variables_flag, posix_pedantic, not_parallel;
    505 extern int clock_skew_detected, rebuilding_makefiles;
     514extern int second_expansion, clock_skew_detected, rebuilding_makefiles;
    506515
    507516/* can we run commands via 'sh -c xxx' or must we use batch files? */
Note: See TracChangeset for help on using the changeset viewer.