summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h38
1 files changed, 7 insertions, 31 deletions
diff --git a/common.h b/common.h
index 5fd9907..c7fc5c2 100644
--- a/common.h
+++ b/common.h
@@ -1,11 +1,11 @@
/* common definitions for `patch' */
-/* $Id: common.h,v 1.32 2002/05/28 07:12:03 eggert Exp $ */
+/* $Id: common.h,v 1.34 2003/05/19 06:57:36 eggert Exp $ */
/* Copyright (C) 1986, 1988 Larry Wall
- Copyright (C) 1990, 1991, 1992, 1993, 1997, 1998, 1999, 2002 Free
- Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1992, 1993, 1997, 1998, 1999, 2002, 2003
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,6 +29,7 @@
#include <config.h>
#include <assert.h>
+#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
@@ -120,27 +121,6 @@
#endif
-#ifndef FILESYSTEM_PREFIX_LEN
-#define FILESYSTEM_PREFIX_LEN(f) 0
-#endif
-
-#ifndef ISSLASH
-#define ISSLASH(c) ((c) == '/')
-#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))
@@ -148,7 +128,6 @@
/* typedefs */
-typedef int bool; /* must promote to itself */
typedef off_t LINENUM; /* must be signed */
/* globals */
@@ -187,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
{
@@ -316,6 +295,3 @@ void *realloc ();
#ifndef TTY_DEVICE
#define TTY_DEVICE "/dev/tty"
#endif
-
-/* The official name of this program (e.g., no `g' prefix). */
-#define PROGRAM_NAME "patch"