STYLE: use std:: qualifier on ::abort, ::exit

- consistent with use of <cstdlib> and makes for a stronger distinct
  from Foam::abort etc.
This commit is contained in:
Mark Olesen
2019-04-03 20:24:30 +02:00
committed by Andrew Heather
parent dd9b7d3d7e
commit f3670521cd
17 changed files with 29 additions and 28 deletions

View File

@ -1,6 +1,6 @@
#include "stream.h"
#include <unistd.h>
#include <stdlib.h>
#include <cstdlib>
main()
{

View File

@ -1,4 +1,4 @@
#include <stdlib.h>
#include <cstdlib>
class Int
{

View File

@ -1,5 +1,6 @@
#include <iostream>
#include <stdlib.h>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[])

View File

@ -121,14 +121,14 @@ void usage()
std::cout
<< "usage: addr2line [-e filename|--exe=filename]"
" address [address...]\n" << std::endl;
::exit(1);
std::exit(1);
}
void version()
{
std::cout<< "OpenFOAM addr2line emulator\n" << std::endl;
::exit(0);
std::exit(0);
}