1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Consistent case for .endmacro in comments

This commit is contained in:
mvax 2023-03-02 17:26:05 -05:00
parent 3f2129894b
commit 90d5f41b37

View File

@ -394,14 +394,14 @@ void MacDef (unsigned Style)
int HaveParams; int HaveParams;
int LastTokWasSep; int LastTokWasSep;
/* For classic macros, remember if we are at the beginning of the line. /* For classic macros, remember if we are at the beginning of the line.
** If the macro name and parameters pass our checks then we will be on a ** If the macro name and parameters pass our checks then we will be on a
** new line, so set it now ** new line, so set it now
*/ */
LastTokWasSep = 1; LastTokWasSep = 1;
/* Save the position of the start of the macro definition to allow /* Save the position of the start of the macro definition to allow
** using Perror to display the error if .ENDMACRO isn't found ** using Perror to display the error if .endmacro isn't found
*/ */
Pos = CurTok.Pos; Pos = CurTok.Pos;
@ -504,8 +504,8 @@ void MacDef (unsigned Style)
while (1) { while (1) {
/* Check for end of macro */ /* Check for end of macro */
if (Style == MAC_STYLE_CLASSIC) { if (Style == MAC_STYLE_CLASSIC) {
/* In classic macros, if .endmacro is not at the start of the line /* In classic macros, if .endmacro is not at the start of the line
** it will be added to the macro definition instead of closing it. ** it will be added to the macro definition instead of closing it.
*/ */
if (CurTok.Tok == TOK_ENDMACRO && LastTokWasSep) { if (CurTok.Tok == TOK_ENDMACRO && LastTokWasSep) {
/* Done */ /* Done */
@ -588,8 +588,8 @@ void MacDef (unsigned Style)
} }
++M->TokCount; ++M->TokCount;
/* Save if last token was a separator to know if .endmacro is at /* Save if last token was a separator to know if .endmacro is at
** the start of a line ** the start of a line
*/ */
LastTokWasSep = TokIsSep(CurTok.Tok); LastTokWasSep = TokIsSep(CurTok.Tok);