mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Correct some comments
nPCOffset no longer exists, and the lexer only returns T_NEWLINE for EOF in raw mode.
This commit is contained in:
@@ -27,9 +27,6 @@ struct Expression {
|
|||||||
uint32_t nRPNPatchSize; // Size the expression will take in the obj file
|
uint32_t nRPNPatchSize; // Size the expression will take in the obj file
|
||||||
};
|
};
|
||||||
|
|
||||||
/* FIXME: Should be defined in `parser.h`, but impossible with POSIX Yacc */
|
|
||||||
extern int32_t nPCOffset;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Determines if an expression is known at assembly time
|
* Determines if an expression is known at assembly time
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1919,7 +1919,7 @@ static int yylex_RAW(void)
|
|||||||
i--;
|
i--;
|
||||||
/* Empty macro args break their expansion, so prevent that */
|
/* Empty macro args break their expansion, so prevent that */
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
// If at EOF, don't shift a non-existent chat
|
// If at EOF, don't shift a non-existent char.
|
||||||
// However, don't return EOF, as this might cause a bug...
|
// However, don't return EOF, as this might cause a bug...
|
||||||
// If a macro is invoked on the last line of a file, with no blank
|
// If a macro is invoked on the last line of a file, with no blank
|
||||||
// line afterwards, returning EOF here will cause Bison to stop
|
// line afterwards, returning EOF here will cause Bison to stop
|
||||||
|
|||||||
@@ -590,7 +590,6 @@ enum {
|
|||||||
asmfile : lines last_line
|
asmfile : lines last_line
|
||||||
;
|
;
|
||||||
|
|
||||||
/* Note: The lexer adds T_NEWLINE at the end of the input */
|
|
||||||
lines : %empty
|
lines : %empty
|
||||||
| lines line
|
| lines line
|
||||||
;
|
;
|
||||||
@@ -1556,7 +1555,7 @@ cpu_command : z80_adc
|
|||||||
| z80_rra
|
| z80_rra
|
||||||
| z80_rrc
|
| z80_rrc
|
||||||
| z80_rrca
|
| z80_rrca
|
||||||
| /*{ nPCOffset = 0; }*/ z80_rst
|
| z80_rst
|
||||||
| z80_sbc
|
| z80_sbc
|
||||||
| z80_scf
|
| z80_scf
|
||||||
| z80_set
|
| z80_set
|
||||||
|
|||||||
Reference in New Issue
Block a user