added missing includes on some platform (gentoo/gcc-4.3.1)
authoretisserant
Thu, 21 Aug 2008 16:08:19 +0200
changeset 139 668a54686827
parent 138 8b32fd4d0194
child 140 8c0366d41e84
added missing includes on some platform (gentoo/gcc-4.3.1)
main.cc
stage1_2/stage1_2.cc
stage4/generate_c/generate_c.cc
stage4/generate_c/generate_c_base.cc
stage4/generate_c/generate_c_typedecl.cc
stage4/stage4.cc
--- a/main.cc	Tue Aug 19 18:04:28 2008 +0200
+++ b/main.cc	Thu Aug 21 16:08:19 2008 +0200
@@ -61,7 +61,7 @@
 
 
 //#include <stdio.h>   // printf()
-
+#include <string.h>
 #include <stdlib.h>  // EXIT_FAILURE
 #include "absyntax/absyntax.hh"  // symbol_c type
 
--- a/stage1_2/stage1_2.cc	Tue Aug 19 18:04:28 2008 +0200
+++ b/stage1_2/stage1_2.cc	Thu Aug 21 16:08:19 2008 +0200
@@ -28,6 +28,8 @@
  * and stage 2 (syntax parser) during the first pass.
  */
 
+#include <string.h>
+#include <stdlib.h>
 
 /* file with declaration of absyntax classes... */
 #include "../absyntax/absyntax.hh"
--- a/stage4/generate_c/generate_c.cc	Tue Aug 19 18:04:28 2008 +0200
+++ b/stage4/generate_c/generate_c.cc	Thu Aug 21 16:08:19 2008 +0200
@@ -41,6 +41,7 @@
 #include <sstream>
 #include <typeinfo>
 #include <list>
+#include <strings.h>
 
 #include "../../util/symtable.hh"
 #include "../../util/dsymtable.hh"
--- a/stage4/generate_c/generate_c_base.cc	Tue Aug 19 18:04:28 2008 +0200
+++ b/stage4/generate_c/generate_c_base.cc	Thu Aug 21 16:08:19 2008 +0200
@@ -44,7 +44,7 @@
 
 //#include "generate_c.hh"
 
-
+#include <string.h>
 
 
 
--- a/stage4/generate_c/generate_c_typedecl.cc	Tue Aug 19 18:04:28 2008 +0200
+++ b/stage4/generate_c/generate_c_typedecl.cc	Thu Aug 21 16:08:19 2008 +0200
@@ -43,7 +43,7 @@
 //#include "../../util/symtable.hh"
 
 
-
+#include <stdlib.h>
 
 
 class generate_c_typedecl_c: public generate_c_base_c {
--- a/stage4/stage4.cc	Tue Aug 19 18:04:28 2008 +0200
+++ b/stage4/stage4.cc	Thu Aug 21 16:08:19 2008 +0200
@@ -37,7 +37,7 @@
 #include <string>
 #include <iostream>
 #include <fstream>
-
+#include <stdlib.h>
 
 #include "stage4.hh"