Take ':' inside identifiers into account by replacing them by '$'.

[GB.JIT]
* BUG: Take ':' inside identifiers into account by replacing them by '$', which is allowed in C identifiers.
This commit is contained in:
gambas 2021-06-04 14:28:05 +02:00
parent ac52cdc447
commit 2c73795c31

View file

@ -122,7 +122,18 @@ TYPE JIT_ctype_to_type(CLASS *class, CTYPE ctype)
static void JIT_begin(void)
{
char *p;
JIT_prefix = STR_lower(JIT_class->name);
p = JIT_prefix;
while (*p)
{
if (*p == ':')
*p = '$';
p++;
}
_buffer = NULL;
_buffer_decl = NULL;
JIT_print("\n//////// %s\n\n", JIT_class->name);