A bit of missing corections.
authorManoel Trapier <godzil@godzil.net>
Thu, 14 Mar 2013 17:09:43 +0000 (18:09 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:45 +0000 (23:41 +0100)
lang/cem/cemcom.ansi/LLmessage.c
modules/src/input/inp_pkg.body
util/amisc/ashow.c
util/cpp/domacro.c

index 8042575..f538993 100644 (file)
@@ -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;
 
index cde13c3..ee774d2 100644 (file)
@@ -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)
index 908e4b2..eff632c 100644 (file)
@@ -5,6 +5,7 @@ static char     rcsid[] = "$Id$";
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdarg.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <out.h>
index 8589de2..de07b06 100644 (file)
@@ -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())) {