Forráskód Böngészése

Make GCC happy with current patchs and compilation flags.

Manoel Trapier 11 éve
szülő
commit
74fb1cff61

+ 2 - 0
lang/cem/cemcom.ansi/domacro.c

@@ -5,6 +5,8 @@
 /* $Id$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
+#include <stdlib.h>
+
 #include	"debug.h"
 #include	"arith.h"
 #include	"LLlex.h"

+ 2 - 0
lang/cem/cemcom.ansi/expr.c

@@ -5,6 +5,8 @@
 /* $Id$ */
 /* EXPRESSION TREE HANDLING */
 
+#include <stdlib.h>
+
 #include	"lint.h"
 #include	"debug.h"
 #include	"assert.h"

+ 1 - 0
lang/cem/cpp.ansi/domacro.c

@@ -5,6 +5,7 @@
 /* $Id$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
+#include <stdlib.h>
 #include <string.h>
 
 #include	"arith.h"

+ 0 - 3
lang/cem/cpp.ansi/init.c

@@ -33,9 +33,6 @@ struct mkey	{
 	{0,		K_UNKNOWN}
 };
 
-//char *strcpy();
-//char *sprint();
-
 void init_pp()
 {
 	static char *months[12] = {

+ 3 - 2
mach/proto/ncg/fillem.c

@@ -431,8 +431,9 @@ dopseudo() {
 
 /* ----- input ----- */
 
-int getarg(typset) {
-	register t,argtyp;
+int getarg(int typset)
+{
+	int t,argtyp;
 
 	argtyp = t = table2();
 	if (t == EOF)

+ 2 - 0
modules/src/em_code/insert.c

@@ -8,6 +8,8 @@
    are received corresponds to the order in which they must be written,
    they can be written immediately.
 */
+#include <stdio.h>
+#include <stdlib.h>
 
 #include <em_path.h>
 #include <alloc.h>

+ 1 - 1
modules/src/read_em/mkcalls.c

@@ -55,7 +55,7 @@ PRIVATE int checkarg(struct e_arg *arg, int typset)
 {
 	return 1;
 }
-//#define checkarg(arg, x) (1)
+/*#define checkarg(arg, x) (1)*/
 #endif /* CHECKING */
 
 /*	EM_doinstr: An EM instruction

+ 1 - 0
util/ack/files.c

@@ -4,6 +4,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <string.h>
 
 #include "ack.h"

+ 2 - 0
util/ack/grows.c

@@ -10,6 +10,8 @@
 /*                                                                        */
 /**************************************************************************/
 
+#include <stdlib.h>
+
 #include "ack.h"
 #include "grows.h"
 

+ 3 - 0
util/ack/list.c

@@ -4,6 +4,9 @@
  *
  */
 
+#include <stdio.h>
+#include <stdlib.h>
+
 #include "ack.h"
 #include "list.h"
 

+ 1 - 0
util/cpp/domacro.c

@@ -5,6 +5,7 @@
 /* $Id$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
+#include <stdlib.h>
 #include <string.h>
 
 #include	"interface.h"

+ 1 - 0
util/ego/cf/cf_loop.c

@@ -8,6 +8,7 @@
  *  C F _ L O O P . C
  */
 
+#include <stdlib.h>
 
 #include "../share/types.h"
 #include "../share/debug.h"

+ 3 - 0
util/ego/cs/cs_alloc.c

@@ -3,6 +3,9 @@
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
+
+#include <stdlib.h>
+
 #include "../share/types.h"
 #include "../share/alloc.h"
 #include "cs.h"

+ 1 - 1
util/ego/il/il_aux.c

@@ -211,7 +211,7 @@ call_p getcall(FILE *cf)
 		m = getshort();
 		act->ac_size = getoff();
 		act->ac_inl = getbyte();
-		act->ac_exp = getlines(cf,m,&voided, 0); //WARN
+		act->ac_exp = getlines(cf,m,&voided, 0); /* WARN */
 		*app = act;
 		app = &act->ac_next;
 	}

+ 0 - 3
util/ego/share/alloc.c

@@ -16,9 +16,6 @@
 #include "debug.h"
 #include "alloc.h"
 
-
-//char * myalloc();
-
 #ifdef DEBUG
 
 STATIC unsigned maxuse, curruse;

+ 2 - 0
util/ego/share/alloc.h

@@ -8,6 +8,8 @@
  *  C O R E   A L L O C A T I O N   A N D   D E A L L O C A T I O N
  */
 
+#include <stdlib.h>
+
 #ifdef DEBUG
 char *newcore(int size);
 void oldcore(char *p, int size);

+ 2 - 0
util/ego/share/locals.c

@@ -8,6 +8,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+
 #include <em_mnem.h>
 #include <em_spec.h>
 #include <em_pseu.h>

+ 1 - 0
util/ego/share/lset.c

@@ -8,6 +8,7 @@
  *  L S E T . C
  */
 
+#include <stdlib.h>
 
 #include "types.h"
 #include "lset.h"

+ 2 - 0
util/ego/share/put.c

@@ -6,6 +6,8 @@
 /* P U T . C */
 
 #include <stdio.h>
+#include <stdlib.h>
+
 #include <em_pseu.h>
 #include <em_spec.h>
 #include "types.h"