mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -41,7 +41,7 @@ Revision History:
|
|||
typedef enum { IN_UNSPECIFIED, IN_SMTLIB_2, IN_DATALOG, IN_DIMACS, IN_WCNF, IN_OPB, IN_Z3_LOG, IN_MPS } input_kind;
|
||||
|
||||
std::string g_aux_input_file;
|
||||
char const * g_input_file = 0;
|
||||
char const * g_input_file = nullptr;
|
||||
bool g_standard_input = false;
|
||||
input_kind g_input_kind = IN_UNSPECIFIED;
|
||||
bool g_display_statistics = false;
|
||||
|
@ -113,7 +113,7 @@ void display_usage() {
|
|||
|
||||
void parse_cmd_line_args(int argc, char ** argv) {
|
||||
int i = 1;
|
||||
char * eq_pos = 0;
|
||||
char * eq_pos = nullptr;
|
||||
while (i < argc) {
|
||||
char * arg = argv[i];
|
||||
|
||||
|
@ -145,7 +145,7 @@ void parse_cmd_line_args(int argc, char ** argv) {
|
|||
// allow names such as --help
|
||||
if (*opt_name == '-')
|
||||
opt_name++;
|
||||
char * opt_arg = 0;
|
||||
char * opt_arg = nullptr;
|
||||
char * colon = strchr(arg, ':');
|
||||
if (colon) {
|
||||
opt_arg = colon + 1;
|
||||
|
@ -200,7 +200,7 @@ void parse_cmd_line_args(int argc, char ** argv) {
|
|||
else if (strcmp(opt_name, "v") == 0) {
|
||||
if (!opt_arg)
|
||||
error("option argument (-v:level) is missing.");
|
||||
long lvl = strtol(opt_arg, 0, 10);
|
||||
long lvl = strtol(opt_arg, nullptr, 10);
|
||||
set_verbosity_level(lvl);
|
||||
}
|
||||
else if (strcmp(opt_name, "file") == 0) {
|
||||
|
@ -209,7 +209,7 @@ void parse_cmd_line_args(int argc, char ** argv) {
|
|||
else if (strcmp(opt_name, "T") == 0) {
|
||||
if (!opt_arg)
|
||||
error("option argument (-T:timeout) is missing.");
|
||||
long tm = strtol(opt_arg, 0, 10);
|
||||
long tm = strtol(opt_arg, nullptr, 10);
|
||||
set_timeout(tm * 1000);
|
||||
}
|
||||
else if (strcmp(opt_name, "t") == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue