diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2003-05-19 08:57:36 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-03-19 01:43:37 +0100 |
commit | 72df69aaa2c3c871d5bf1f0afbd88b30e586fad9 (patch) | |
tree | 180bc34ccdb2fd985c8463a2d186ecd969d25099 | |
parent | 694348b64218cf3b384d966541c824c27646fb4c (diff) | |
download | patch-72df69aaa2c3c871d5bf1f0afbd88b30e586fad9.tar.gz |
Include <stdbool.h>. Remove TRUE, FALSE, bool. All uses changed to standard names. (reverse, set_time, set_utc): Now bool, not int.
-rw-r--r-- | common.h | 22 |
1 files changed, 5 insertions, 17 deletions
@@ -1,6 +1,6 @@ /* common definitions for `patch' */ -/* $Id: common.h,v 1.33 2003/05/18 08:24:13 eggert Exp $ */ +/* $Id: common.h,v 1.34 2003/05/19 06:57:36 eggert Exp $ */ /* Copyright (C) 1986, 1988 Larry Wall @@ -29,6 +29,7 @@ #include <config.h> #include <assert.h> +#include <stdbool.h> #include <stdio.h> #include <sys/types.h> #include <time.h> @@ -120,18 +121,6 @@ #endif -/* constants */ - -/* AIX predefines these. */ -#ifdef TRUE -#undef TRUE -#endif -#ifdef FALSE -#undef FALSE -#endif -#define TRUE 1 -#define FALSE 0 - /* handy definitions */ #define strEQ(s1,s2) (!strcmp(s1, s2)) @@ -139,7 +128,6 @@ /* typedefs */ -typedef int bool; /* must promote to itself */ typedef off_t LINENUM; /* must be signed */ /* globals */ @@ -178,14 +166,14 @@ XTERN int debug; XTERN bool force; XTERN bool batch; XTERN bool noreverse; -XTERN int reverse; +XTERN bool reverse; XTERN enum { DEFAULT_VERBOSITY, SILENT, VERBOSE } verbosity; XTERN bool skip_rest_of_patch; XTERN int strippath; XTERN bool canonicalize; XTERN int patch_get; -XTERN int set_time; -XTERN int set_utc; +XTERN bool set_time; +XTERN bool set_utc; enum diff { |