Skip to content

Commit 7814a84

Browse files
author
Enrico Steffinlongo
committed
Renamed no-malloc-fail to no-malloc-may-fail to mirror malloc-may-fail
1 parent c3635b1 commit 7814a84

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/util/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ bool configt::set(const cmdlinet &cmdline)
11301130
{
11311131
ansi_c.malloc_may_fail = true;
11321132
}
1133-
if(cmdline.isset("no-malloc-fail"))
1133+
if(cmdline.isset("no-malloc-may-fail"))
11341134
{
11351135
ansi_c.malloc_may_fail = false;
11361136
ansi_c.malloc_failure_mode = ansi_ct::malloc_failure_mode_none;

src/util/config.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,16 @@ class symbol_table_baset;
7070
" {y--no-library} \t disable built-in abstract C library\n"
7171

7272
#define OPT_CONFIG_LIBRARY \
73-
"(malloc-fail-assert)(malloc-fail-null)(malloc-may-fail)(no-malloc-fail)" \
73+
"(malloc-fail-assert)(malloc-fail-null)(malloc-may-fail)" \
74+
"(no-malloc-may-fail)" \
7475
"(string-abstraction)"
7576

7677
#define HELP_CONFIG_LIBRARY \
7778
" {y--malloc-may-fail} \t allow malloc calls to return a null pointer\n" \
79+
" {y--no-malloc-may-fail} \t disable potential malloc failure\n" \
7880
" {y--malloc-fail-assert} \t " \
7981
"set malloc failure mode to assert-then-assume\n" \
8082
" {y--malloc-fail-null} \t set malloc failure mode to return null\n" \
81-
" {y--no-malloc-fail} \t Disable potential malloc failure.\n" \
8283
" {y--string-abstraction} \t track C string lengths and zero-termination\n"
8384

8485
#define OPT_CONFIG_JAVA "(classpath)(cp)(main-class)"

0 commit comments

Comments
 (0)