summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/extern.h
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-04-17 17:26:32 +0000
committerjmallett <jmallett@FreeBSD.org>2002-04-17 17:26:32 +0000
commit116615d3b6f71cba30abbab2209f6de4932ce179 (patch)
treef15399016c5f676e5ad2cd82d618f2460c8d601e /usr.bin/m4/extern.h
parent217b7e94cc85bc1c09a4dfebfe0d9656ebc8c6f1 (diff)
downloadFreeBSD-src-116615d3b6f71cba30abbab2209f6de4932ce179.zip
FreeBSD-src-116615d3b6f71cba30abbab2209f6de4932ce179.tar.gz
This adds support for -s to the m4(1) utility, which causes #line directives
to be emitted as per the C preprocessor. It updates the manual page in regards to standards accordingly. PR: standards/36075 Submitted by: tjr Reviewed by: mike MFC after: 1 week
Diffstat (limited to 'usr.bin/m4/extern.h')
-rw-r--r--usr.bin/m4/extern.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/m4/extern.h b/usr.bin/m4/extern.h
index 2b54e3c..5fc0bf3 100644
--- a/usr.bin/m4/extern.h
+++ b/usr.bin/m4/extern.h
@@ -53,6 +53,7 @@ int dopaste(char *);
void dopushdef(char *, char *);
void dosub(char *[], int);
void doundiv(char *[], int);
+void emitline(void);
void eval(char *[], int, int);
void expand(char *[], int);
void getdiv(int);
@@ -72,6 +73,8 @@ extern ndptr hashtab[]; /* hash table for macros etc. */
extern stae mstack[]; /* stack of m4 machine */
extern FILE *active; /* active output file pointer */
extern FILE *infile[]; /* input file stack (0=stdin) */
+extern char *inname[]; /* names of these input files */
+extern int inlineno[]; /* current number in each input*/
extern FILE *outfile[]; /* diversion array(0=bitbucket) */
extern int fp; /* m4 call frame pointer */
extern int ilevel; /* input file stack pointer */
@@ -92,3 +95,5 @@ extern char *m4wraps; /* m4wrap string default. */
extern char *null; /* as it says.. just a null. */
extern char rquote; /* right quote character (') */
extern char scommt; /* start character for comment */
+extern int synccpp; /* Line synchronisation for C preprocessor */
+extern int chscratch; /* Scratch space for gpbc() macro */
OpenPOWER on IntegriCloud