diff options
Diffstat (limited to 'contrib/bc/include/status.h')
-rw-r--r-- | contrib/bc/include/status.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/bc/include/status.h b/contrib/bc/include/status.h index 662f2b89c04d..993b5e698fb3 100644 --- a/contrib/bc/include/status.h +++ b/contrib/bc/include/status.h @@ -268,6 +268,10 @@ #define BC_DEFAULT_PROMPT BC_DEFAULT_TTY_MODE #endif // BC_DEFAULT_PROMPT +#ifndef BC_DEFAULT_EXPR_EXIT +#define BC_DEFAULT_EXPR_EXIT (1) +#endif // BC_DEFAULT_EXPR_EXIT + // All of these set defaults for settings. #ifndef DC_DEFAULT_SIGINT_RESET #define DC_DEFAULT_SIGINT_RESET (1) @@ -285,6 +289,10 @@ #define DC_DEFAULT_PROMPT DC_DEFAULT_TTY_MODE #endif // DC_DEFAULT_PROMPT +#ifndef DC_DEFAULT_EXPR_EXIT +#define DC_DEFAULT_EXPR_EXIT (1) +#endif // DC_DEFAULT_EXPR_EXIT + /// Statuses, which mark either which category of error happened, or some other /// status that matters. typedef enum BcStatus { @@ -472,6 +480,10 @@ typedef enum BcErr { /// Empty statements in POSIX for loop error. BC_ERR_POSIX_FOR, + /// POSIX's grammar does not allow a function definition right after a + /// semicolon. + BC_ERR_POSIX_FUNC_AFTER_SEMICOLON, + /// Non-POSIX exponential (scientific or engineering) number used error. BC_ERR_POSIX_EXP_NUM, |