mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 01:31:55 +00:00
Added new .VERSION constant
git-svn-id: svn://svn.cc65.org/cc65/trunk@2280 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
591f3f39ba
commit
fcfaaee3a9
@ -41,6 +41,7 @@
|
||||
#include "exprdefs.h"
|
||||
#include "print.h"
|
||||
#include "tgttrans.h"
|
||||
#include "version.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
/* ca65 */
|
||||
@ -666,6 +667,12 @@ static ExprNode* Factor (void)
|
||||
NextTok ();
|
||||
break;
|
||||
|
||||
case TOK_VERSION:
|
||||
N = GenLiteralExpr (VERSION);
|
||||
NextTok ();
|
||||
break;
|
||||
|
||||
|
||||
case TOK_XMATCH:
|
||||
N = Function (FuncXMatch);
|
||||
break;
|
||||
|
@ -1591,6 +1591,7 @@ static CtrlDesc CtrlCmdTab [] = {
|
||||
{ ccNone, DoSunPlus },
|
||||
{ ccNone, DoUnexpected }, /* .TCOUNT */
|
||||
{ ccNone, DoUnexpected }, /* .TIME */
|
||||
{ ccNone, DoUnexpected }, /* .VERSION */
|
||||
{ ccNone, DoWarning },
|
||||
{ ccNone, DoWord },
|
||||
{ ccNone, DoUnexpected }, /* .XMATCH */
|
||||
|
@ -236,6 +236,7 @@ struct DotKeyword {
|
||||
{ ".SUNPLUS", TOK_SUNPLUS },
|
||||
{ ".TCOUNT", TOK_TCOUNT },
|
||||
{ ".TIME", TOK_TIME },
|
||||
{ ".VERSION", TOK_VERSION },
|
||||
{ ".WARNING", TOK_WARNING },
|
||||
{ ".WORD", TOK_WORD },
|
||||
{ ".XMATCH", TOK_XMATCH },
|
||||
|
@ -214,6 +214,7 @@ enum Token {
|
||||
TOK_SUNPLUS,
|
||||
TOK_TCOUNT,
|
||||
TOK_TIME,
|
||||
TOK_VERSION,
|
||||
TOK_WARNING,
|
||||
TOK_WORD,
|
||||
TOK_XMATCH,
|
||||
|
Loading…
Reference in New Issue
Block a user