Skip to content

Commit 1ef00b5

Browse files
committed
Added c_z keyword for v46 and later
1 parent 16e9db8 commit 1ef00b5

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 7.1.0
2+
- Updated -gbrk debug code (thanks Ada)
3+
14
Version 7.0.4
25
- Added `-Opeek-args` optimization flag (the optimization was always there, this provides a way to disable it)
36
- Fixed an issue with casting to different size in nucode

frontends/lexer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,6 +2472,9 @@ struct reservedword_soft {
24722472
{ "sizeof", SP_SIZEOF, 45, 0 },
24732473
{ "struct", SP_STRUCT, 45, 0 },
24742474

2475+
/* new v46 keywords */
2476+
{ "c_z", SP_C_Z, 46, 0 },
2477+
24752478
/* v47 keywords */
24762479
{ "newtask", SP_NEWTASK, 47, 0 },
24772480
{ "thistask", SP_THISTASK, 47, 0 },

frontends/spin/spin.y

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ SpinDeclareStruct(AST *ident, AST *defs)
402402
%token SP_SIZEOF "SIZEOF"
403403
%token SP_SWAP_OP ":=:"
404404

405+
/* v46 additions */
406+
%token SP_C_Z "C_Z"
407+
405408
/* v47 additions */
406409
%token SP_NEWTASK "NEWTASK"
407410
%token SP_THISTASK "THISTASK"
@@ -807,6 +810,8 @@ asmdebug_func:
807810
{ $$ = MakeFunccall($1,$3,NULL);}
808811
| identifier '(' ')'
809812
{ $$ = MakeFunccall($1,NULL,NULL);}
813+
| SP_C_Z
814+
{ $$ = MakeFunccall(AstIdentifier("c_z"),NULL,NULL);}
810815
| SP_IF '(' operandlist ')'
811816
{ $$ = MakeFunccall(AstIdentifier("if"),$3,NULL);}
812817
| SP_IFNOT '(' operandlist ')'

version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#define str_(x) str__(x)
66

77
#define VERSION_MAJOR 7
8-
#define VERSION_MINOR 0
9-
#define VERSION_REV 4
10-
//#define BETA "-beta"
8+
#define VERSION_MINOR 1
9+
#define VERSION_REV 0
10+
#define BETA "-beta"
1111

1212
#define VERSIONSTR version_string
1313

0 commit comments

Comments
 (0)