Rizin
unix-like reverse engineering framework and cli tools
|
Miscellaneous declarations. More...
Go to the source code of this file.
Enumerations | |
enum | exit_status_type { E_SUCCESS = 0 , E_ERROR = 1 , E_WARNING = 2 } |
Possible exit status values. These are the same as used by gzip and bzip2. More... | |
Functions | |
void | set_exit_status (enum exit_status_type new_status) |
void | set_exit_no_warn (void) |
Miscellaneous declarations.
Definition in file main.h.
enum exit_status_type |
void set_exit_no_warn | ( | void | ) |
Use E_SUCCESS instead of E_WARNING if something worth a warning occurs but nothing worth an error has occurred. This is called when –no-warn is specified.
Definition at line 51 of file main.c.
References no_warn.
Referenced by parse_real().
void set_exit_status | ( | enum exit_status_type | new_status | ) |
Sets the exit status after a warning or error has occurred. If new_status is E_WARNING and the old exit status was already E_ERROR, the exit status is not changed.
Definition at line 31 of file main.c.
References assert(), E_ERROR, E_WARNING, and exit_status.
Referenced by message_error(), message_warning(), and signals_exit().