Explorar o código

Rationalised use of #includes to be more standards-compliant.

dtrg %!s(int64=18) %!d(string=hai) anos
pai
achega
f67d6d1491

+ 1 - 0
lang/basic/src/bem.h

@@ -4,6 +4,7 @@
  */
 
 #include <ctype.h>
+#include <string.h>
 #include <signal.h>
 #include <system.h>
 #include <print.h>

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

@@ -5,6 +5,8 @@
 /* $Id$ */
 /*	C O D E - G E N E R A T I N G   R O U T I N E S		*/
 
+#include	<stdlib.h>
+#include	<string.h>
 #include	"lint.h"
 #include	"debug.h"
 #include	"dbsymtab.h"

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

@@ -5,6 +5,8 @@
 /* $Id$ */
 /*	IDENTIFIER  FIDDLING & SYMBOL TABLE HANDLING	*/
 
+#include	<stdlib.h>
+#include	<string.h>
 #include	"lint.h"
 #include	<em_reg.h>
 #include	"debug.h"

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

@@ -5,6 +5,8 @@
 /* $Id$ */
 /* PREPROCESSOR: INITIALIZATION ROUTINES */
 
+#include	<stdlib.h>
+#include	<string.h>
 #include	"nopp.h"
 
 #ifndef NOPP

+ 3 - 0
lang/cem/cemcom.ansi/input.c

@@ -4,6 +4,9 @@
  */
 /* $Id$ */
 
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 #include "inputtype.h"
 #include "file_info.h"
 #include "input.h"

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

@@ -5,6 +5,8 @@
 /* $Id$ */
 /*	U S E R   O P T I O N - H A N D L I N G		*/
 
+#include	<stdlib.h>
+#include	<string.h>
 #include	"lint.h"
 #include	"botch_free.h"
 #include	<alloc.h>

+ 3 - 0
lang/cem/cemcom.ansi/replace.c

@@ -4,6 +4,9 @@
  */
 /* $Id$ */
 /*  M A C R O   R E P L A C E M E N T */
+
+#include	<stdlib.h>
+#include	<string.h>
 #include	"nopp.h"
 
 #ifndef NOPP

+ 3 - 0
lang/cem/cemcom/arith.c

@@ -11,6 +11,9 @@
 	semantics of C is a mess.
 */
 
+#include	<stdlib.h>
+#include	<stdio.h>
+#include	<string.h>
 #include	<alloc.h>
 #include	"lint.h"
 #include	"nofloat.h"

+ 3 - 0
lang/cem/cemcom/code.c

@@ -5,6 +5,9 @@
 /* $Id$ */
 /*	C O D E - G E N E R A T I N G	R O U T I N E S		*/
 
+#include	<stdlib.h>
+#include	<stdio.h>
+#include	<string.h>
 #include	"lint.h"
 #include	"dbsymtab.h"
 #ifndef	LINT

+ 3 - 0
lang/cem/cemcom/options.c

@@ -5,6 +5,9 @@
 /* $Id$ */
 /*	U S E R	  O P T I O N - H A N D L I N G		*/
 
+#include	<stdlib.h>
+#include	<stdio.h>
+#include	<string.h>
 #include	"lint.h"
 #include	"botch_free.h"
 #include	<alloc.h>

+ 3 - 0
lang/cem/cemcom/replace.c

@@ -5,6 +5,9 @@
 /* $Id$ */
 /* PREPROCESSOR: MACRO-TEXT REPLACEMENT ROUTINES */
 
+#include	<stdlib.h>
+#include	<stdio.h>
+#include	<string.h>
 #include	"nopp.h"
 
 #ifndef NOPP

+ 3 - 0
lang/cem/cemcom/stack.c

@@ -5,6 +5,9 @@
 /* $Id$ */
 /*	S T A C K / U N S T A C K  R O U T I N E S	*/
 
+#include	<stdlib.h>
+#include	<stdio.h>
+#include	<string.h>
 #include	"lint.h"
 #include	"nofloat.h"
 #include	<system.h>

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

@@ -4,6 +4,9 @@
  */
 /* $Id$ */
 
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 #include "file_info.h"
 #include "input.h"