Fix reported build errors with gcc 4.3

Add missing includes to cstring et al.
This commit is contained in:
Stephen Williams 2008-01-21 18:04:30 -08:00
parent 4d3f592b5f
commit d49e44594b
15 changed files with 22 additions and 4 deletions

View File

@ -28,6 +28,7 @@
# include "compiler.h" # include "compiler.h"
# include <iostream> # include <iostream>
# include <cstring>
/* /*
* This is a state flag that determines whether an elaborate_net must * This is a state flag that determines whether an elaborate_net must

View File

@ -24,6 +24,7 @@
# include "compiler.h" # include "compiler.h"
# include <iostream> # include <iostream>
# include <stdio.h> # include <stdio.h>
# include <cstring>
/* /*
* Elaboration happens in two passes, generally. The first scans the * Elaboration happens in two passes, generally. The first scans the

View File

@ -23,6 +23,7 @@
# include "config.h" # include "config.h"
# include <iostream> # include <iostream>
# include <cstdlib>
# include "Module.h" # include "Module.h"
# include "PExpr.h" # include "PExpr.h"

View File

@ -32,6 +32,7 @@
# include "netlist.h" # include "netlist.h"
# include <typeinfo> # include <typeinfo>
# include <cassert> # include <cassert>
# include <cstring>
bool NetNode::emit_node(struct target_t*tgt) const bool NetNode::emit_node(struct target_t*tgt) const
{ {

View File

@ -31,6 +31,8 @@
# include <dirent.h> # include <dirent.h>
# include <ctype.h> # include <ctype.h>
# include <assert.h> # include <assert.h>
# include <cstdlib>
# include <cstring>
/* /*
* The module library items are maps of key names to file name within * The module library items are maps of key names to file name within

View File

@ -33,6 +33,7 @@
# include "util.h" # include "util.h"
# include "compiler.h" # include "compiler.h"
# include <sstream> # include <sstream>
# include <cstring>
Design:: Design() Design:: Design()
: errors(0), nodes_(0), procs_(0), lcounter_(0) : errors(0), nodes_(0), procs_(0), lcounter_(0)

View File

@ -27,6 +27,7 @@
# include "netlist.h" # include "netlist.h"
# include <sstream> # include <sstream>
# include <string> # include <string>
# include <cstring>
# include <typeinfo> # include <typeinfo>
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>

View File

@ -25,6 +25,7 @@
# include "netlist.h" # include "netlist.h"
# include <sstream> # include <sstream>
# include <cstring>
/* /*
* The NetScope class keeps a scope tree organized. Each node of the * The NetScope class keeps a scope tree organized. Each node of the

View File

@ -37,6 +37,8 @@
# include <string> # include <string>
# include <list> # include <list>
# include <stdio.h> # include <stdio.h>
# include <cstring>
# include <cstdlib>
/* /*
* These classes implement the parsed form (P-form for short) of the * These classes implement the parsed form (P-form for short) of the

View File

@ -28,6 +28,7 @@
#include <cassert> #include <cassert>
#include "NetLatch.h" #include "NetLatch.h"
#include <climits> #include <climits>
#include <cstdlib>
#include <new> // standard operator new #include <new> // standard operator new
using std::bad_alloc; using std::bad_alloc;

View File

@ -23,6 +23,8 @@
# include "config.h" # include "config.h"
# include "compiler.h" # include "compiler.h"
# include <stdio.h> # include <stdio.h>
# include <cstdlib>
# include <cstring>
/* /*
* Manage the information about system functions. This information is * Manage the information about system functions. This information is

View File

@ -30,7 +30,8 @@
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif #endif
# include <stdlib.h> # include <cstdlib>
# include <cstring>
/* /*
* This is a little convenience function for converting a NetExpr * This is a little convenience function for converting a NetExpr

View File

@ -32,7 +32,8 @@
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif #endif
# include <stdlib.h> # include <cstdlib>
# include <cstring>
bool dll_target::process(const NetProcTop*net) bool dll_target::process(const NetProcTop*net)

View File

@ -31,7 +31,8 @@
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif #endif
# include <stdlib.h> # include <cstdlib>
# include <cstring>
#include <new> // standard operator new #include <new> // standard operator new
using std::bad_alloc; using std::bad_alloc;

View File

@ -24,7 +24,8 @@
# include "verireal.h" # include "verireal.h"
# include "verinum.h" # include "verinum.h"
# include <stdlib.h> # include <cstdlib>
# include <cstring>
# include <ctype.h> # include <ctype.h>
# include <iostream> # include <iostream>
# include <math.h> # include <math.h>