mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Significantly overhaul OPT code
Simplify the mess that was option setting (2 redundant variables !?) Move options to a separate file Have "modules" own their options, and OPT only access them (less redundancy) Simplify code, respect naming conventions better
This commit is contained in:
@@ -1150,7 +1150,7 @@ static void readFractionalPart(void)
|
||||
yylval.nConstValue |= fractional * (yylval.nConstValue >= 0 ? 1 : -1);
|
||||
}
|
||||
|
||||
char const *binDigits;
|
||||
char binDigits[2];
|
||||
|
||||
static void readBinaryNumber(void)
|
||||
{
|
||||
@@ -1210,7 +1210,7 @@ static void readHexNumber(void)
|
||||
yylval.nConstValue = value;
|
||||
}
|
||||
|
||||
char const *gfxDigits;
|
||||
char gfxDigits[4];
|
||||
|
||||
static void readGfxConstant(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user