freem / asm6f

A fork of loopy's ASM6, a 6502 assembler.
96 stars 24 forks source link

Fix variable declarations after code statements #47

Closed koitsu closed 1 year ago

koitsu commented 1 year ago

Examples:

asm6f.c: In function ‘export_mesenlabels’:
asm6f.c:1336:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 1336 |         int currentcomment = 0;
      |         ^~~
asm6f.c: In function ‘addcomment’:
asm6f.c:1552:17: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 1552 |                 comment* c = (comment*)my_malloc(sizeof(comment));
      |                 ^~~~~~~
asm6f.c: In function ‘opcode’:
asm6f.c:2481:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 2481 |         int uns;
      |         ^~~