exit() function in tests/Cxx/src/*.cc
"Gilles J. Seguin" <[email protected]> Tue, 06 Jul 2010 17:36:47 -0400
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <1278452207.5086.5.camel@danse> |
--Boundary_(ID_+5ZM1mA2N4eAGSJFAm3Z3Q)
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 7BIT
$ svn info
URL: svn://synopsis.fresco.org/svn/synopsis/Synopsis/branches/S10
Repository Root: svn://synopsis.fresco.org/svn/synopsis/Synopsis
Repository UUID: 91adf076-48d4-0310-a9e2-da78070693fa
Revision: 2041
stefan can you recheck this
exit(<int>) needs prototype
now std::exit(<int>);
--Boundary_(ID_+5ZM1mA2N4eAGSJFAm3Z3Q)
Content-type: text/x-patch; name=test-july6.diff; charset=UTF-8
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=test-july6.diff
Index: tests/Cxx/src/Parser.cc
===================================================================
--- tests/Cxx/src/Parser.cc (revision 2041)
+++ tests/Cxx/src/Parser.cc (working copy)
@@ -5,6 +5,7 @@
#include <Synopsis/Parser.hh>
#include <Synopsis/PTree.hh>
#include <Synopsis/PTree/Display.hh>
+#include <cstdlib>
#include <fstream>
using namespace Synopsis;
@@ -14,7 +15,7 @@
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " [-d] <output> <input>" << std::endl;
- exit(-1);
+ std::exit(-1);
}
try
{
Index: tests/Cxx/src/SymbolLookup.cc
===================================================================
--- tests/Cxx/src/SymbolLookup.cc (revision 2041)
+++ tests/Cxx/src/SymbolLookup.cc (working copy)
@@ -6,6 +6,7 @@
#include <Synopsis/PTree/Display.hh>
#include <Synopsis/PTree/Writer.hh>
#include <Synopsis/SymbolLookup.hh>
+#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <fstream>
@@ -227,7 +228,7 @@
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " [-d] <output> <input>" << std::endl;
- exit(-1);
+ std::exit(-1);
}
try
{
Index: tests/Cxx/src/TypeAnalysis.cc
===================================================================
--- tests/Cxx/src/TypeAnalysis.cc (revision 2041)
+++ tests/Cxx/src/TypeAnalysis.cc (working copy)
@@ -7,6 +7,7 @@
#include <Synopsis/PTree/Writer.hh>
#include <Synopsis/SymbolLookup.hh>
#include <Synopsis/TypeAnalysis.hh>
+#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <fstream>
@@ -66,7 +67,7 @@
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " [-d] <output> <input>" << std::endl;
- exit(-1);
+ std::exit(-1);
}
try
{
Index: tests/Cxx/src/Encoding.cc
===================================================================
--- tests/Cxx/src/Encoding.cc (revision 2041)
+++ tests/Cxx/src/Encoding.cc (working copy)
@@ -5,6 +5,7 @@
#include <Synopsis/Parser.hh>
#include <Synopsis/PTree.hh>
#include <Synopsis/PTree/Writer.hh>
+#include <cstdlib>>
#include <iostream>
#include <iomanip>
#include <fstream>
@@ -103,7 +104,7 @@
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " [-d] <output> <input>" << std::endl;
- exit(-1);
+ std::exit(-1);
}
try
{
Index: tests/Cxx/src/ConstEvaluator.cc
===================================================================
--- tests/Cxx/src/ConstEvaluator.cc (revision 2041)
+++ tests/Cxx/src/ConstEvaluator.cc (working copy)
@@ -8,6 +8,7 @@
#include <Synopsis/PTree/Writer.hh>
#include <Synopsis/SymbolLookup.hh>
#include <Synopsis/TypeAnalysis.hh>
+#include <cstdlib>>
#include <iostream>
#include <iomanip>
#include <fstream>
@@ -87,7 +88,7 @@
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " [-d] <output> <input>" << std::endl;
- exit(-1);
+ std::exit(-1);
}
try
{
--Boundary_(ID_+5ZM1mA2N4eAGSJFAm3Z3Q)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Synopsis-devel mailing list
[email protected]
http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel
--Boundary_(ID_+5ZM1mA2N4eAGSJFAm3Z3Q)--