Replace stdio.h and stdarg.h with C++ versions

This commit is contained in:
Wilson Snyder 2008-06-30 13:11:25 -04:00
parent 8c6adeb85a
commit 20aa21d4b6
84 changed files with 172 additions and 173 deletions

View File

@ -23,8 +23,7 @@
//=========================================================================
#include "verilated.h"
#include <string.h>
#include <ctype.h>
#include <cctype>
#define VL_VALUE_STRING_MAX_WIDTH 1024 ///< Max static char array for VL_VALUE_STRING

View File

@ -29,11 +29,11 @@
#include "verilatedos.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;

View File

@ -32,8 +32,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -29,8 +29,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <iomanip>

View File

@ -23,8 +23,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <iomanip>

View File

@ -18,8 +18,8 @@
//
//*************************************************************************
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <fstream>
#include <iomanip>
#include <memory>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <fstream>
#include <iomanip>
#include <vector>

View File

@ -28,8 +28,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <cstring>
#include <algorithm>

View File

@ -26,8 +26,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <map>

View File

@ -39,8 +39,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -43,8 +43,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -32,8 +32,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <set>

View File

@ -29,8 +29,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -33,8 +33,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -36,8 +36,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -26,8 +26,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -25,8 +25,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <vector>
#include <map>

View File

@ -53,8 +53,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <map>

View File

@ -29,8 +29,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -26,8 +26,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -28,8 +28,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -20,10 +20,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>
#include <algorithm>

View File

@ -24,10 +24,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include "V3Global.h"
#include "V3File.h"

View File

@ -20,10 +20,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>

View File

@ -20,10 +20,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <map>
#include <set>
#include <vector>

View File

@ -20,10 +20,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>
#include <algorithm>

View File

@ -20,10 +20,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <map>
#include <vector>
#include <algorithm>

View File

@ -18,8 +18,8 @@
//
//*************************************************************************
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <cstring>
#include <set>
#include "V3Error.h"

View File

@ -31,8 +31,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -20,7 +20,7 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdarg.h>
#include <cstdarg>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

View File

@ -24,7 +24,7 @@
#include "config_build.h"
#include "verilatedos.h"
#include "V3Error.h"
#include <stdio.h>
#include <cstdio>
#include <stack>
#include <set>
#include <fstream>

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <iomanip>

View File

@ -25,8 +25,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include "V3Global.h"

View File

@ -21,8 +21,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <stack>
#include <map>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include "V3Global.h"

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -29,8 +29,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include "V3Global.h"

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -26,8 +26,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <cstring>
#include <unistd.h>
#include <map>

View File

@ -24,8 +24,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -25,8 +25,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -28,8 +28,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -29,8 +29,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -28,8 +28,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <vector>

View File

@ -25,8 +25,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -20,9 +20,9 @@
#include <config_build.h>
#include "verilatedos.h"
#include <math.h>
#include <stdio.h>
#include <stdarg.h>
#include <cmath>
#include <cstdio>
#include <cstdarg>
#include <cstring>
#include <algorithm>
#include "V3Number.h"

View File

@ -26,8 +26,8 @@
#include <config_build.h>
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <algorithm>
#include "V3Number.h"

View File

@ -88,8 +88,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <vector>

View File

@ -21,8 +21,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <fstream>
#include <stack>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <iostream>
#include <algorithm>

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <list>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <fstream>

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <iomanip>

View File

@ -36,8 +36,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <algorithm>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <iomanip>

View File

@ -51,8 +51,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -27,8 +27,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <iomanip>

View File

@ -20,8 +20,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>
#include <iomanip>

View File

@ -28,8 +28,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>
#include <vector>

View File

@ -23,8 +23,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -27,10 +27,10 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <deque>
#include "V3Global.h"

View File

@ -29,8 +29,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <map>

View File

@ -48,8 +48,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <set>
#include <map>

View File

@ -26,8 +26,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include "V3Global.h"

View File

@ -33,8 +33,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -30,8 +30,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include <algorithm>

View File

@ -45,8 +45,8 @@
#include "config_build.h"
#include "verilatedos.h"
#include <stdio.h>
#include <stdarg.h>
#include <cstdio>
#include <cstdarg>
#include <unistd.h>
#include "V3Global.h"

View File

@ -83,7 +83,7 @@
#include <sys/types.h>
#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <cstdio>
using namespace std;

View File

@ -20,7 +20,7 @@
//*************************************************************************
%{
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <cstring>

View File

@ -4,8 +4,8 @@
// redistribute it and/or modify it under the terms of either the GNU
// General Public License or the Perl Artistic License.
#include <stdlib.h>
#include <stdio.h>
#include <cstdlib>
#include <cstdio>
#include <verilated.h>
#include "Vt_leak.h"

View File

@ -1,4 +1,4 @@
#include <stdlib.h>
#include <cstdlib>
#include <verilated.h>
#include "Vt_mem_slot.h"

View File

@ -6,7 +6,7 @@
// General Public License or the Perl Artistic License.
//====================================================================
#include <stdio.h>
#include <cstdio>
#include <iostream>
#include <sys/times.h>
#include <sys/stat.h>