shithub: rgbds

Download patch

ref: 6198cc185c24ec4ba794ed27c969ae65d31f89c3
parent: e4571bc0fc6309534cdd59bcb140d73ddefb2192
author: YamaArashi <[email protected]>
date: Thu Aug 21 21:52:21 EDT 2014

Remove __LINE__

--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -26,7 +26,6 @@
 struct sSymbol *pScope = NULL;
 struct sSymbol *pPCSymbol = NULL;
 struct sSymbol *p_NARGSymbol = NULL;
-struct sSymbol *p__LINE__Symbol = NULL;
 char *currentmacroargs[MAXMACROARGS + 1];
 char *newmacroargs[MAXMACROARGS + 1];
 char SavedTIME[256];
@@ -44,12 +43,6 @@
 	return (i);
 }
 
-SLONG 
-Callback__LINE__(struct sSymbol * sym)
-{
-	sym = sym;
-	return (nLineNo);
-}
 /*
  * RGBAsm - SYMBOL.C - Symboltable stuff
  *
@@ -879,9 +872,6 @@
 	sym_AddEqu("_NARG", 0);
 	p_NARGSymbol = findsymbol("_NARG", NULL);
 	p_NARGSymbol->Callback = Callback_NARG;
-	sym_AddEqu("__LINE__", 0);
-	p__LINE__Symbol = findsymbol("__LINE__", NULL);
-	p__LINE__Symbol->Callback = Callback__LINE__;
 
 	sym_AddEqu("__ASM__", (SLONG) (atof(ASM_VERSION) * 65536));
 	sym_AddSet("_RS", 0);