summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-02-17 21:29:31 +0000
committerStefan Eßer <se@FreeBSD.org>2021-02-17 21:29:31 +0000
commitf131090388ae3272660242339b6c9e010309d811 (patch)
tree9236fe1fc6ba9737de2f77e1206fdd8f363a40de /include
parent47a52dc4d48f259ab7d9f9ba6b65f4f2331a22dc (diff)
Diffstat (limited to 'include')
-rw-r--r--include/args.h2
-rw-r--r--include/status.h10
-rw-r--r--include/vm.h1
3 files changed, 9 insertions, 4 deletions
diff --git a/include/args.h b/include/args.h
index 6b68ed300440..d53785067237 100644
--- a/include/args.h
+++ b/include/args.h
@@ -39,7 +39,7 @@
#include <status.h>
#include <vm.h>
-void bc_args(int argc, char *argv[]);
+void bc_args(int argc, char *argv[], bool exit_exprs);
extern const char* const bc_args_env_name;
diff --git a/include/status.h b/include/status.h
index 3fa844485690..cf41a3ce4670 100644
--- a/include/status.h
+++ b/include/status.h
@@ -176,11 +176,15 @@ typedef enum BcErr {
#endif // __STDC_VERSION__
#if defined(__clang__) || defined(__GNUC__)
-#if defined(__has_attribute) && __has_attribute(fallthrough)
+#if defined(__has_attribute)
+#if __has_attribute(fallthrough)
#define BC_FALLTHROUGH __attribute__((fallthrough));
-#else // defined(__has_attribute) && __has_attribute(fallthrough)
+#else // __has_attribute(fallthrough)
#define BC_FALLTHROUGH
-#endif // defined(__has_attribute) && __has_attribute(fallthrough)
+#endif // __has_attribute(fallthrough)
+#else // defined(__has_attribute)
+#define BC_FALLTHROUGH
+#endif // defined(__has_attribute)
#else // defined(__clang__) || defined(__GNUC__)
#define BC_FALLTHROUGH
#endif // defined(__clang__) || defined(__GNUC__)
diff --git a/include/vm.h b/include/vm.h
index 8b0babff4d81..80a060edd42f 100644
--- a/include/vm.h
+++ b/include/vm.h
@@ -356,6 +356,7 @@ typedef struct BcVm {
uint16_t line_len;
bool no_exit_exprs;
+ bool exit_exprs;
bool eof;
#endif // !BC_ENABLE_LIBRARY