]> git.sur5r.net Git - cc65/commit
scanner: Correct handling of \0101
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Nov 2016 13:02:19 +0000 (13:02 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 19 Nov 2016 13:02:19 +0000 (13:02 +0000)
commit6ee1fd2a677c4ee497b5c087b4356a7b783a9b75
tree6dafa95b8fbe01638281b3ef1385cc86c08023a3
parent79e1b25c6c10f5a12b607d201bcddc3b1d98d999
scanner: Correct handling of \0101

The C language has this oddity that octal constants are 3 bytes so the sequence
"\0101" is two bytes and well defined by the langage. cc65 currently misparses
this as a 1 byte octal code. Add a count to fix this.

Signed-off-by: Alan Cox <etchedpixels@gmail.com>
src/cc65/scanner.c