Changeset 503 for trunk/src/gmake/make.h
- Timestamp:
- Sep 15, 2006, 7:09:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/make.h
r430 r503 1 1 /* 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. 2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software 4 Foundation, Inc. 4 5 This file is part of GNU Make. 5 6 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. */ 7 GNU Make is free software; you can redistribute it and/or modify it under the 8 terms of the GNU General Public License as published by the Free Software 9 Foundation; either version 2, or (at your option) any later version. 10 11 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY 12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 13 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License along with 16 GNU Make; see the file COPYING. If not, write to the Free Software 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ 20 18 21 19 /* We use <config.h> instead of "config.h" so that a compilation … … 43 41 44 42 /* Use prototypes if available. */ 45 #if defined (__cplusplus) || (defined (__STDC__) &&__STDC__)43 #if defined (__cplusplus) || defined (__STDC__) 46 44 # undef PARAMS 47 45 # define PARAMS(protos) protos … … 277 275 # endif 278 276 279 #endif /* ANSI_STRING. */280 #undef ANSI_STRING281 282 277 /* SCO Xenix has a buggy macro definition in <string.h>. */ 283 278 #undef strerror 284 285 #if !defined(ANSI_STRING) && !defined(__DECC) 279 #if !defined(__DECC) 286 280 extern char *strerror PARAMS ((int errnum)); 287 281 #endif 282 283 #endif /* !ANSI_STRING. */ 284 #undef ANSI_STRING 288 285 289 286 #if HAVE_INTTYPES_H … … 359 356 #endif 360 357 358 /* This is needed for getcwd() and chdir(). */ 359 #if defined(_MSC_VER) || defined(__BORLANDC__) 360 # include <direct.h> 361 #endif 362 361 363 #ifdef WINDOWS32 362 364 # include <fcntl.h> … … 379 381 struct floc 380 382 { 381 c har *filenm;383 const char *filenm; 382 384 unsigned long lineno; 383 385 }; … … 423 425 extern char *end_of_token PARAMS ((const char *)); 424 426 extern void collapse_continuations PARAMS ((char *)); 425 extern void remove_comments PARAMS((char *));426 427 #ifdef KMK 427 428 #define lindex(s, limit, c) ((char *)memchr((s), (c), (limit) - (s))) … … 431 432 extern int alpha_compare PARAMS ((const void *, const void *)); 432 433 extern void print_spaces PARAMS ((unsigned int)); 433 extern char *find_char_unquote PARAMS ((char *, int, int, int));434 434 extern char *find_percent PARAMS ((char *)); 435 435 extern FILE *open_tmpfile PARAMS ((char **, const char *)); … … 465 465 extern void child_access PARAMS ((void)); 466 466 467 extern char * 468 strip_whitespace PARAMS ((const char **begpp, const char **endpp)); 469 467 extern void close_stdout PARAMS ((void)); 468 469 extern char *strip_whitespace PARAMS ((const char **begpp, const char **endpp)); 470 471 /* String caching */ 472 extern void strcache_init PARAMS ((void)); 473 extern void strcache_print_stats PARAMS ((const char *prefix)); 474 extern int strcache_iscached PARAMS ((const char *str)); 475 extern const char *strcache_add PARAMS ((const char *str)); 476 extern const char *strcache_add_len PARAMS ((const char *str, int len)); 477 extern int strcache_setbufsize PARAMS ((int size)); 470 478 471 479 #ifdef HAVE_VFORK_H … … 488 496 # if !defined(VMS) && !defined(__DECC) 489 497 extern char *getcwd (); 490 # endif498 # endif 491 499 #else 492 500 extern char *getwd (); … … 495 503 496 504 extern const struct floc *reading_file; 505 extern const struct floc **expanding_var; 497 506 498 507 extern char **environ; … … 503 512 extern int print_version_flag, print_directory_flag, check_symlink_flag; 504 513 extern int warn_undefined_variables_flag, posix_pedantic, not_parallel; 505 extern int clock_skew_detected, rebuilding_makefiles;514 extern int second_expansion, clock_skew_detected, rebuilding_makefiles; 506 515 507 516 /* can we run commands via 'sh -c xxx' or must we use batch files? */
Note:
See TracChangeset
for help on using the changeset viewer.