mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 03:14:45 +00:00
90941fffa7
This moves the CONST replacement up before we turn the elements into a single string. The advantage is that we don't have to worry about splitting the string properly to find the CONST names as the elements are already split for us.t
20 lines
578 B
QBasic
20 lines
578 B
QBasic
|
|
CONST chunkSIZEOF% = 4 + 4
|
|
|
|
CONST CHformLEN% = 4
|
|
CONST formSIZEOF% = chunkSIZEOF% + CHformLEN% 'remove trailing % and it works
|
|
|
|
CONST CHthdrLEN% = 30 + 2 + 4
|
|
CONST thdrSIZEOF% = chunkSIZEOF% + CHthdrLEN% 'no error
|
|
|
|
CONST CHcsetLEN% = 16 + 264 + 2 + 2 + 2 + 2
|
|
CONST csetSIZEOF% = chunkSIZEOF% + CHcsetLEN% 'no error
|
|
|
|
CONST CHwposLEN% = 30 + 2 + 2
|
|
CONST wposSIZEOF% = chunkSIZEOF% + CHwposLEN% 'no error
|
|
|
|
CONST CHvarsLEN% = 4 + 2 + 2
|
|
CONST varsSIZEOF% = chunkSIZEOF% + CHvarsLEN% 'no error
|
|
|
|
CONST CHtlogLEN% = 30 + 12 + 80
|
|
CONST tlogSIZEOF% = chunkSIZEOF% + CHtlogLEN% 'no error
|