forked from steveicarus/iverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove "using namespace std" from vvp header files and fix the fallout.
- Loading branch information
1 parent
23390c1
commit 9cc09b8
Showing
23 changed files
with
57 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#ifndef IVL_compile_H | ||
#define IVL_compile_H | ||
/* | ||
* Copyright (c) 2001-2020 Stephen Williams ([email protected]) | ||
* Copyright (c) 2001-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -27,13 +27,11 @@ | |
# include "sv_vpi_user.h" | ||
# include "vvp_net.h" | ||
|
||
using namespace std; | ||
|
||
/* | ||
* The file names are kept in this vector. Entry 0 is "N/A" and 1 is | ||
* for interactive commands. | ||
*/ | ||
extern vector<const char*> file_names; | ||
extern std::vector<const char*> file_names; | ||
|
||
/* | ||
* The functions described here are the compile time support | ||
|
@@ -54,7 +52,7 @@ extern bool verbose_flag; | |
* If this file opened, then write debug information to this | ||
* file. This is used for debugging the VVP runtime itself. | ||
*/ | ||
extern ofstream debug_file; | ||
extern std::ofstream debug_file; | ||
|
||
/* | ||
* Connect a list of symbols to a contiguous set of ipoints. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2004-2010 Stephen Williams ([email protected]) | ||
* Copyright (c) 2004-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -23,6 +23,7 @@ | |
# include <iostream> | ||
# include <cassert> | ||
|
||
using namespace std; | ||
|
||
vvp_fun_concat::vvp_fun_concat(unsigned w0, unsigned w1, | ||
unsigned w2, unsigned w3) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2005-2020 Stephen Williams <[email protected]> | ||
* Copyright (c) 2005-2021 Stephen Williams <[email protected]> | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -31,6 +31,8 @@ | |
#include <cmath> | ||
#include "ivl_alloc.h" | ||
|
||
using namespace std; | ||
|
||
void vvp_delay_t::calculate_min_delay_() | ||
{ | ||
min_delay_ = rise_; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2010-2012 Stephen Williams ([email protected]) | ||
* Copyright (c) 2010-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -25,6 +25,8 @@ | |
# include <iostream> | ||
# include <cassert> | ||
|
||
using namespace std; | ||
|
||
struct enumconst_s : public __vpiHandle { | ||
enumconst_s(); | ||
int get_type_code(void) const; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
%{ | ||
/* | ||
* Copyright (c) 2001-2020 Stephen Williams ([email protected]) | ||
* Copyright (c) 2001-202` Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -29,6 +29,8 @@ | |
# include "ivl_alloc.h" | ||
# include "version_base.h" | ||
|
||
using namespace std; | ||
|
||
/* | ||
* These are bits in the lexor. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2004-2016 Stephen Williams ([email protected]) | ||
* Copyright (c) 2004-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -26,6 +26,8 @@ | |
# include <iostream> | ||
# include <cassert> | ||
|
||
using namespace std; | ||
|
||
struct vvp_fun_part_state_s { | ||
vvp_fun_part_state_s() : bitsr(0.0) {} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2001-2013 Stephen Williams ([email protected]) | ||
* Copyright (c) 2001-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -25,6 +25,7 @@ | |
# include <algorithm> | ||
# include <cassert> | ||
|
||
using namespace std; | ||
|
||
/* | ||
* The core functor for a resolver node stores all the input values | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2005-2019 Stephen Williams ([email protected]) | ||
* Copyright (c) 2005-2021 Stephen Williams ([email protected]) | ||
* | ||
* (This is a rewrite of code that was ... | ||
* Copyright (c) 2001 Stephan Boettcher <[email protected]>) | ||
|
@@ -35,6 +35,8 @@ | |
#include "ivl_alloc.h" | ||
#endif | ||
|
||
using namespace std; | ||
|
||
// We may need these later when we build the VPI interface to | ||
// UDP definitions. | ||
#ifdef CHECK_WITH_VALGRIND | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#ifndef IVL_udp_H | ||
#define IVL_udp_H | ||
/* | ||
* Copyright (c) 2005-2014 Stephen Williams ([email protected]) | ||
* Copyright (c) 2005-2021 Stephen Williams ([email protected]) | ||
* | ||
* (This is a rewrite of code that was ... | ||
* Copyright (c) 2001 Stephan Boettcher <[email protected]>) | ||
|
@@ -109,7 +109,7 @@ struct udp_levels_table { | |
unsigned long mask1; | ||
unsigned long maskx; | ||
}; | ||
extern ostream& operator<< (ostream&o, const struct udp_levels_table&t); | ||
extern std::ostream& operator<< (std::ostream&o, const struct udp_levels_table&t); | ||
|
||
class vvp_udp_comb_s : public vvp_udp_s { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#ifndef IVL_vvp_darray_H | ||
#define IVL_vvp_darray_H | ||
/* | ||
* Copyright (c) 2012-2020 Stephen Williams ([email protected]) | ||
* Copyright (c) 2012-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -247,6 +247,6 @@ class vvp_queue_vec4 : public vvp_queue { | |
std::deque<vvp_vector4_t> queue; | ||
}; | ||
|
||
extern string get_fileline(); | ||
extern std::string get_fileline(); | ||
|
||
#endif /* IVL_vvp_darray_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2008-2020 Stephen Williams ([email protected]) | ||
* Copyright (c) 2008-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -32,6 +32,8 @@ | |
# include <cstring> | ||
# include "ivl_alloc.h" | ||
|
||
using namespace std; | ||
|
||
static bool at_EOS = false; | ||
|
||
void island_send_value(vvp_net_t*net, const vvp_vector8_t&val) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2004-2020 Stephen Williams ([email protected]) | ||
* Copyright (c) 2004-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -41,6 +41,8 @@ | |
# include "ivl_alloc.h" | ||
#endif | ||
|
||
using namespace std; | ||
|
||
/* This is the size of an unsigned long in bits. This is just a | ||
convenience macro. */ | ||
# define CPU_WORD_BITS (8*sizeof(unsigned long)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#ifndef IVL_vvp_net_sig_H | ||
#define IVL_vvp_net_sig_H | ||
/* | ||
* Copyright (c) 2004-2020 Stephen Williams ([email protected]) | ||
* Copyright (c) 2004-2021 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -33,11 +33,9 @@ | |
#ifdef HAVE_IOSFWD | ||
# include <iosfwd> | ||
#else | ||
class ostream; | ||
# include <iostream> | ||
#endif | ||
|
||
using namespace std; | ||
|
||
/* vvp_fun_signal | ||
* This node is the place holder in a vvp network for signals, | ||
* including nets of various sort. The output from a signal follows | ||
|
Oops, something went wrong.