From e52169ed10b0bf0011c2471e1fa7644971d0c7ac Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Fri, 24 May 2019 08:26:26 -0400 Subject: 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. --- src/bytecode.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bytecode.h') 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, -- cgit v1.2.1