Make GCC happy with current patchs and compilation flags.
authorManoel Trapier <godzil@godzil.net>
Mon, 18 Mar 2013 09:24:47 +0000 (10:24 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:46 +0000 (23:41 +0100)
19 files changed:
lang/cem/cemcom.ansi/domacro.c
lang/cem/cemcom.ansi/expr.c
lang/cem/cpp.ansi/domacro.c
lang/cem/cpp.ansi/init.c
mach/proto/ncg/fillem.c
modules/src/em_code/insert.c
modules/src/read_em/mkcalls.c
util/ack/files.c
util/ack/grows.c
util/ack/list.c
util/cpp/domacro.c
util/ego/cf/cf_loop.c
util/ego/cs/cs_alloc.c
util/ego/il/il_aux.c
util/ego/share/alloc.c
util/ego/share/alloc.h
util/ego/share/locals.c
util/ego/share/lset.c
util/ego/share/put.c

index f2ac213..06dcb4f 100644 (file)
@@ -5,6 +5,8 @@
 /* $Id$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
+#include <stdlib.h>
+
 #include       "debug.h"
 #include       "arith.h"
 #include       "LLlex.h"
index 7d19720..4ffd190 100644 (file)
@@ -5,6 +5,8 @@
 /* $Id$ */
 /* EXPRESSION TREE HANDLING */
 
+#include <stdlib.h>
+
 #include       "lint.h"
 #include       "debug.h"
 #include       "assert.h"
index feddbcb..fc632e8 100644 (file)
@@ -5,6 +5,7 @@
 /* $Id$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
+#include <stdlib.h>
 #include <string.h>
 
 #include       "arith.h"
index 25ea041..9bb7797 100644 (file)
@@ -33,9 +33,6 @@ struct mkey   {
        {0,             K_UNKNOWN}
 };
 
-//char *strcpy();
-//char *sprint();
-
 void init_pp()
 {
        static char *months[12] = {
index 76af441..97b7a50 100644 (file)
@@ -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)
index 73bddb8..0627f8b 100644 (file)
@@ -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>
index 74394c3..1cbb6b3 100644 (file)
@@ -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
index 118a174..374677d 100644 (file)
@@ -4,6 +4,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <string.h>
 
 #include "ack.h"
index a5bd7ef..a7a9ad6 100644 (file)
@@ -10,6 +10,8 @@
 /*                                                                        */
 /**************************************************************************/
 
+#include <stdlib.h>
+
 #include "ack.h"
 #include "grows.h"
 
index 3164371..a9360b5 100644 (file)
@@ -4,6 +4,9 @@
  *
  */
 
+#include <stdio.h>
+#include <stdlib.h>
+
 #include "ack.h"
 #include "list.h"
 
index de07b06..baec20e 100644 (file)
@@ -5,6 +5,7 @@
 /* $Id$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
+#include <stdlib.h>
 #include <string.h>
 
 #include       "interface.h"
index 177be9a..f4d3b95 100644 (file)
@@ -8,6 +8,7 @@
  *  C F _ L O O P . C
  */
 
+#include <stdlib.h>
 
 #include "../share/types.h"
 #include "../share/debug.h"
index 8be2914..b94b3c0 100644 (file)
@@ -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"
index 23d889e..1d59f73 100644 (file)
@@ -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;
        }
index f00df6c..ba84779 100644 (file)
@@ -16,9 +16,6 @@
 #include "debug.h"
 #include "alloc.h"
 
-
-//char * myalloc();
-
 #ifdef DEBUG
 
 STATIC unsigned maxuse, curruse;
index 4a54920..bfcd5c9 100644 (file)
@@ -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);
index 7cf5ace..17cd8e4 100644 (file)
@@ -8,6 +8,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+
 #include <em_mnem.h>
 #include <em_spec.h>
 #include <em_pseu.h>
index 5b96e15..0a63b6e 100644 (file)
@@ -8,6 +8,7 @@
  *  L S E T . C
  */
 
+#include <stdlib.h>
 
 #include "types.h"
 #include "lset.h"
index c45d853..e966fb3 100644 (file)
@@ -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"