Browse Source

A bit of missing corections.

Manoel Trapier 11 years ago
parent
commit
b31ac47714
4 changed files with 6 additions and 4 deletions
  1. 3 2
      lang/cem/cemcom.ansi/LLmessage.c
  2. 1 1
      modules/src/input/inp_pkg.body
  3. 1 0
      util/amisc/ashow.c
  4. 1 1
      util/cpp/domacro.c

+ 3 - 2
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;
 

+ 1 - 1
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)

+ 1 - 0
util/amisc/ashow.c

@@ -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>

+ 1 - 1
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())) {