From fadd60ff947cad41ae2b4e45bddc8b84c7b17a7c Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 8 Aug 2017 15:08:54 +0200 Subject: [PATCH] Remove generated 'ih' headers from re-test --- debug.c | 7 ++++++- debug.ih | 14 -------------- main.c | 12 +++++++++++- main.ih | 19 ------------------- 4 files changed, 17 insertions(+), 35 deletions(-) delete mode 100644 debug.ih delete mode 100644 main.ih diff --git a/debug.c b/debug.c index ac79fb6..0aec120 100644 --- a/debug.c +++ b/debug.c @@ -8,7 +8,12 @@ #include "regex.h" #include "utils.h" #include "regex2.h" -#include "debug.ih" + +/* #include "debug.ih" // why generate this */ +/* forward refs */ +void regprint(regex_t *r, FILE *d); +static void s_print(register struct re_guts *g, FILE *d); +static char *regchar(int ch); /* - regprint - print a regexp for debugging diff --git a/debug.ih b/debug.ih deleted file mode 100644 index 5f40ff7..0000000 --- a/debug.ih +++ /dev/null @@ -1,14 +0,0 @@ -/* ========= begin header generated by ./mkh ========= */ -#ifdef __cplusplus -extern "C" { -#endif - -/* === debug.c === */ -void regprint(regex_t *r, FILE *d); -static void s_print(register struct re_guts *g, FILE *d); -static char *regchar(int ch); - -#ifdef __cplusplus -} -#endif -/* ========= end header generated by ./mkh ========= */ diff --git a/main.c b/main.c index 9cac794..f64791d 100644 --- a/main.c +++ b/main.c @@ -8,11 +8,21 @@ #include /* local headers */ #include "regex.h" -#include "main.ih" #ifdef _MSC_VER // local getopt source #include "utils\getopt.h" #endif +/* #include "main.ih" // why generate this? */ +/* forward refs */ +void regress(FILE *in); +void try(char *f0, char *f1, char *f2, char *f3, char *f4, int opts); +int options(int type, char *s); +int opt(int c, char *s); +void fixstr(register char *p); +char *check(char *str, regmatch_t sub, char *should); +static char *eprint(int err); +static int efind(char *name); + char *progname; int debug = 0; int line = 0; diff --git a/main.ih b/main.ih deleted file mode 100644 index 5a0118a..0000000 --- a/main.ih +++ /dev/null @@ -1,19 +0,0 @@ -/* ========= begin header generated by ./mkh ========= */ -#ifdef __cplusplus -extern "C" { -#endif - -/* === main.c === */ -void regress(FILE *in); -void try(char *f0, char *f1, char *f2, char *f3, char *f4, int opts); -int options(int type, char *s); -int opt(int c, char *s); -void fixstr(register char *p); -char *check(char *str, regmatch_t sub, char *should); -static char *eprint(int err); -static int efind(char *name); - -#ifdef __cplusplus -} -#endif -/* ========= end header generated by ./mkh ========= */