diff options
author | Adrian Thurston <thurston@colm.net> | 2016-07-28 18:35:30 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2016-07-28 18:35:30 -0400 |
commit | aecca4b68436782235c3e1de7b6bab7a977590b2 (patch) | |
tree | 3df2060517f4f88f8919571b95499605111f0808 /src/bytecode.h | |
parent | 210a0245bf42390f24800e90df0ee8aab10c644d (diff) | |
download | colm-aecca4b68436782235c3e1de7b6bab7a977590b2.tar.gz |
implemented a const-string define option -Ename=val
Diffstat (limited to 'src/bytecode.h')
-rw-r--r-- | src/bytecode.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/bytecode.h b/src/bytecode.h index a4807cef..bba463aa 100644 --- a/src/bytecode.h +++ b/src/bytecode.h @@ -1,5 +1,5 @@ /* - * Copyright 2007-2012 Adrian Thurston <thurston@complang.org> + * Copyright 2007-2016 Adrian Thurston <thurston@complang.org> */ /* This file is part of Colm. @@ -9,7 +9,9 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * - * Colm is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Colm is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License @@ -291,9 +293,9 @@ typedef unsigned long colm_value_t; #define IN_PCR_END_DECK 0xb3 #define IN_OPEN_FILE 0xb4 -#define IN_GET_STDIN 0xb5 -#define IN_GET_STDOUT 0xb6 -#define IN_GET_STDERR 0xb7 + +#define IN_GET_CONST 0xb5 + #define IN_TO_UPPER 0xb9 #define IN_TO_LOWER 0xba @@ -359,6 +361,15 @@ typedef unsigned long colm_value_t; #define IN_GET_COLLECT_STRING 0x68 /* + * Const things to get. + */ +#define IN_CONST_STDIN 0x10 +#define IN_CONST_STDOUT 0x11 +#define IN_CONST_STDERR 0x12 +#define IN_CONST_ARG 0x13 + + +/* * IN_FN instructions. */ |