The win VB compiler fails to compile a label repeated
twice, like:
Main: main main drop jump
The code causing it is the following code
Do While FreeVariable <> -1
Stage1Code = Replace(Stage1Code, _
vbCr & LN(FreeVariable) & vbCr, _
vbCr & LP(FreeVariable) & vbCr)
FreeVariable = FreeVariable - 1
Loop
where stage1code is the processed code (still with
labels), LN(FreeVariable) is the name of the label and
LP(FreeVariable) is the label number.
I don't know why it fails to replace the second (or is
it the first) label. If you know how to fix this please
report to khertzberg@spray.se
WAY TOO SLOW SOLUTION:
Do While FreeVariable <> -1
Stage1Code = Replace(Stage1Code, _
vbCr & LN(FreeVariable) & vbCr, _
vbCr & LP(FreeVariable) & vbCr)
Stage1Code = Replace(Stage1Code, _
vbCr & LN(FreeVariable) & vbCr, _
vbCr & LP(FreeVariable) & vbCr)
FreeVariable = FreeVariable - 1
Loop
WORKAROUND:
Tell users to write
Main: main dup drop main jump
Logged In: YES
user_id=1155040
ANOTHER POSSIBLE FIX
Take the Mac compiler and put it in a .dll file and use that
one instead. Pros
* Fixes the repeated labels bug
* Fixes the nested comments bug
* Faster compiling
Anybody knows how to compile C code to .dll:s? Not?