summaryrefslogtreecommitdiff
path: root/src/bytecode.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2019-05-24 08:26:26 -0400
committerAdrian Thurston <thurston@colm.net>2019-05-24 08:26:26 -0400
commite52169ed10b0bf0011c2471e1fa7644971d0c7ac (patch)
treedba77918021292531fe13a677e011101a408b13d /src/bytecode.h
parent984e6fb6cf25eee7dafe59db2be6b31b3c7c4b26 (diff)
downloadcolm-e52169ed10b0bf0011c2471e1fa7644971d0c7ac.tar.gz
pushing the trim decision to run-time
The trim and no-trim operators are both now in the expression. In places where we want the print mechanism to decide if it trims or not, we lift the trim operator out of the expression and into the send expression, then pass it to the print and send instructions. This way the stream or input (parser) can control the trim (auto_trim feature) with the expression overriding the default.
Diffstat (limited to 'src/bytecode.h')
-rw-r--r--src/bytecode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bytecode.h b/src/bytecode.h
index 7197cc36..02cd78f4 100644
--- a/src/bytecode.h
+++ b/src/bytecode.h
@@ -424,6 +424,10 @@ typedef unsigned char uchar;
#define FN_PREFIX 0x3b
#define FN_SUFFIX 0x3c
+#define TRIM_DEFAULT 0x01
+#define TRIM_YES 0x02
+#define TRIM_NO 0x03
+
/* Types of Generics. */
enum GEN {
GEN_PARSER = 0x14,