pharo-vm icon indicating copy to clipboard operation
pharo-vm copied to clipboard

VM build fails when using C-reserved words as temp variable names

Open nrainhart opened this issue 2 years ago • 0 comments

While working on bytecode operations (see initializeBytecodeTableForSistaV1), I used register as a temp variable name in one of the bytecode handlers.

At the moment of building the VM, I got a parse error, as register is a reserved word in C.

I think we should detect those cases, and add a prefix/suffix to those variable names so that they do not collide with C reserved words.

nrainhart avatar Jun 07 '22 09:06 nrainhart