Kaydet (Commit) 43ed0dbb authored tarafından Douglas Mencken's avatar Douglas Mencken Kaydeden (comit) Stephan Bergmann

l10ntools/source/export.cxx: be more std::

Change-Id: Ia5f96f7d2bf366a6156d198e73e7987a471f28da
Signed-off-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 597fda03
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
#include "srclex.hxx" #include "srclex.hxx"
#include "boost/scoped_ptr.hpp" #include "boost/scoped_ptr.hpp"
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include "common.hxx" #include "common.hxx"
#include "export.hxx" #include "export.hxx"
#include "tokens.h" #include "tokens.h"
...@@ -207,9 +207,10 @@ Export::Export(const OString &rOutput) ...@@ -207,9 +207,10 @@ Export::Export(const OString &rOutput)
pParseQueue( new ParserQueue( *this ) ) pParseQueue( new ParserQueue( *this ) )
{ {
aOutput.mPo = new PoOfstream( rOutput, PoOfstream::APP ); aOutput.mPo = new PoOfstream( rOutput, PoOfstream::APP );
if (!aOutput.mPo->isOpen()) { if (!aOutput.mPo->isOpen())
fprintf(stderr, "ERROR : Can't open file %s\n", rOutput.getStr()); {
exit ( -1 ); std::fprintf(stderr, "ERROR : Can't open file %s\n", rOutput.getStr());
std::exit(EXIT_FAILURE);
} }
} }
...@@ -652,8 +653,8 @@ int Export::Execute( int nToken, const char * pToken ) ...@@ -652,8 +653,8 @@ int Export::Execute( int nToken, const char * pToken )
} }
break; break;
case PRAGMA : { case PRAGMA : {
fprintf(stderr, "ERROR: archaic PRAGMA %s\n", sToken.getStr()); std::fprintf(stderr, "ERROR: archaic PRAGMA %s\n", sToken.getStr());
exit(-1); std::exit(EXIT_FAILURE);
} }
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment