From b31ac477145eaf82fb32a6a3cdb0739b3ea68efb Mon Sep 17 00:00:00 2001 From: Manoel Trapier Date: Thu, 14 Mar 2013 18:09:43 +0100 Subject: [PATCH] A bit of missing corections. --- lang/cem/cemcom.ansi/LLmessage.c | 5 +++-- modules/src/input/inp_pkg.body | 2 +- util/amisc/ashow.c | 1 + util/cpp/domacro.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lang/cem/cemcom.ansi/LLmessage.c b/lang/cem/cemcom.ansi/LLmessage.c index 80425757c..f53899315 100644 --- a/lang/cem/cemcom.ansi/LLmessage.c +++ b/lang/cem/cemcom.ansi/LLmessage.c @@ -13,6 +13,8 @@ char *symbol2str(int tok); +void insert_token(int tk); + void LLmessage(tk) { err_occurred = 1; @@ -35,8 +37,7 @@ void LLmessage(tk) tk_nmb_at_last_syn_err = token_nmb; } -insert_token(tk) - int tk; +void insert_token(int tk) { aside = dot; diff --git a/modules/src/input/inp_pkg.body b/modules/src/input/inp_pkg.body index cde13c3b6..ee774d265 100644 --- a/modules/src/input/inp_pkg.body +++ b/modules/src/input/inp_pkg.body @@ -100,7 +100,7 @@ INP_PRIVATE struct INP_buffer_header *INP_head, *INP_free; _PROTOTYPE(INP_PRIVATE int INP_rdfile, (File *, char *, long *, char **)); #if __STDC__ -INP_PRIVATE int INP_rdfile(File *fd, char *fn, long size, char **pbuf) +INP_PRIVATE int INP_rdfile(File *fd, char *fn, long *size, char **pbuf) #else INP_PRIVATE int INP_rdfile(fd, fn, size, pbuf) diff --git a/util/amisc/ashow.c b/util/amisc/ashow.c index 908e4b239..eff632cb7 100644 --- a/util/amisc/ashow.c +++ b/util/amisc/ashow.c @@ -5,6 +5,7 @@ static char rcsid[] = "$Id$"; #include #include +#include #include #include #include diff --git a/util/cpp/domacro.c b/util/cpp/domacro.c index 8589de206..de07b0645 100644 --- a/util/cpp/domacro.c +++ b/util/cpp/domacro.c @@ -51,6 +51,7 @@ static void do_line(unsigned int l); static int getparams(char *buf[], char parbuf[]); static int macroeq(char *s, char *t); void macro_def(struct idf *id, char *text, int nformals, int length, int flags); +static char *get_text(char *formals[], int *length); /* Externel dependency */ char * getwdir(char *fn); @@ -314,7 +315,6 @@ static void 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 (!(str = GetIdentifier())) { -- 2.34.1