From 60192399dc8255b746392cf51c9dee159b73198e Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 18 Nov 1993 15:38:13 +0000 Subject: [PATCH] Added declarations for static functions --- lang/cem/cemcom/domacro.c | 19 +++++++++++++++++-- lang/cem/cemcom/replace.c | 8 ++++++-- lang/cem/cemcom/scan.c | 2 ++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/lang/cem/cemcom/domacro.c b/lang/cem/cemcom/domacro.c index 7499b4711..510816d7a 100644 --- a/lang/cem/cemcom/domacro.c +++ b/lang/cem/cemcom/domacro.c @@ -42,6 +42,22 @@ PRIVATE char ifstack[IFDEPTH]; /* if-stack: the content of an entry is */ int nestlevel = -1; +PRIVATE do_include(); +PRIVATE ifexpr(); +PRIVATE do_define(); +PRIVATE push_if(); +PRIVATE do_elif(); +PRIVATE do_else(); +PRIVATE do_endif(); +PRIVATE do_if(); +PRIVATE do_ifdef(); +PRIVATE do_undef(); +PRIVATE int getparams(); +PRIVATE char *get_text(); +PRIVATE int macroeq(); +PRIVATE SkipRestOfLine(); +PRIVATE do_line(); + struct idf * GetIdentifier() { @@ -318,7 +334,6 @@ do_define() char *repl_text; /* start of the replacement text */ int length; /* length of the replacement text */ register ch; - char *get_text(); /* read the #defined macro's name */ if (!(id = GetIdentifier())) { @@ -663,7 +678,7 @@ get_text(formals, length) as strings, without taking care of the leading and trailing blanks (spaces and tabs). */ -PRIVATE +PRIVATE int macroeq(s, t) register char *s, *t; { diff --git a/lang/cem/cemcom/replace.c b/lang/cem/cemcom/replace.c index 35f1d9179..81ce33711 100644 --- a/lang/cem/cemcom/replace.c +++ b/lang/cem/cemcom/replace.c @@ -28,6 +28,10 @@ extern int InputLevel; PRIVATE struct mlist *ReplaceList; /* list of currently active macros */ +PRIVATE macro_func(); +PRIVATE char *macro2buffer(); +extern char **getactuals(); + EXPORT int replace(idef) register struct idf *idef; @@ -44,8 +48,8 @@ replace(idef) register struct macro *mac = idef->id_macro; register struct mlist *repl; register int c; - char **actpars, **getactuals(); - char *reptext, *macro2buffer(); + char **actpars; + char *reptext; int size; if (mac->mc_flag & NOREPLACE) { diff --git a/lang/cem/cemcom/scan.c b/lang/cem/cemcom/scan.c index 6c295f1b0..3f9599b63 100644 --- a/lang/cem/cemcom/scan.c +++ b/lang/cem/cemcom/scan.c @@ -34,6 +34,8 @@ PRIVATE char *aptr; /* pointer to last inserted character in apbuf */ PRIVATE int nr_of_params; /* number of actuals read until now */ +PRIVATE copyact(); + char ** getactuals(idef) register struct idf *idef;