Added declarations for static functions

This commit is contained in:
ceriel 1993-11-18 15:38:13 +00:00
parent 862f5da86d
commit 60192399dc
3 changed files with 25 additions and 4 deletions

View file

@ -42,6 +42,22 @@ PRIVATE char ifstack[IFDEPTH]; /* if-stack: the content of an entry is */
int nestlevel = -1; 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 * struct idf *
GetIdentifier() GetIdentifier()
{ {
@ -318,7 +334,6 @@ do_define()
char *repl_text; /* start of the replacement text */ char *repl_text; /* start of the replacement text */
int length; /* length of the replacement text */ int length; /* length of the replacement text */
register ch; register ch;
char *get_text();
/* read the #defined macro's name */ /* read the #defined macro's name */
if (!(id = GetIdentifier())) { if (!(id = GetIdentifier())) {
@ -663,7 +678,7 @@ get_text(formals, length)
as strings, without taking care of the leading and trailing as strings, without taking care of the leading and trailing
blanks (spaces and tabs). blanks (spaces and tabs).
*/ */
PRIVATE PRIVATE int
macroeq(s, t) macroeq(s, t)
register char *s, *t; register char *s, *t;
{ {

View file

@ -28,6 +28,10 @@ extern int InputLevel;
PRIVATE struct mlist *ReplaceList; /* list of currently active macros */ PRIVATE struct mlist *ReplaceList; /* list of currently active macros */
PRIVATE macro_func();
PRIVATE char *macro2buffer();
extern char **getactuals();
EXPORT int EXPORT int
replace(idef) replace(idef)
register struct idf *idef; register struct idf *idef;
@ -44,8 +48,8 @@ replace(idef)
register struct macro *mac = idef->id_macro; register struct macro *mac = idef->id_macro;
register struct mlist *repl; register struct mlist *repl;
register int c; register int c;
char **actpars, **getactuals(); char **actpars;
char *reptext, *macro2buffer(); char *reptext;
int size; int size;
if (mac->mc_flag & NOREPLACE) { if (mac->mc_flag & NOREPLACE) {

View file

@ -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 int nr_of_params; /* number of actuals read until now */
PRIVATE copyact();
char ** char **
getactuals(idef) getactuals(idef)
register struct idf *idef; register struct idf *idef;