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:
parent
ac52cdc447
commit
2c73795c31
1 changed files with 11 additions and 0 deletions
|
@ -122,7 +122,18 @@ TYPE JIT_ctype_to_type(CLASS *class, CTYPE ctype)
|
||||||
|
|
||||||
static void JIT_begin(void)
|
static void JIT_begin(void)
|
||||||
{
|
{
|
||||||
|
char *p;
|
||||||
|
|
||||||
JIT_prefix = STR_lower(JIT_class->name);
|
JIT_prefix = STR_lower(JIT_class->name);
|
||||||
|
|
||||||
|
p = JIT_prefix;
|
||||||
|
while (*p)
|
||||||
|
{
|
||||||
|
if (*p == ':')
|
||||||
|
*p = '$';
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
|
||||||
_buffer = NULL;
|
_buffer = NULL;
|
||||||
_buffer_decl = NULL;
|
_buffer_decl = NULL;
|
||||||
JIT_print("\n//////// %s\n\n", JIT_class->name);
|
JIT_print("\n//////// %s\n\n", JIT_class->name);
|
||||||
|
|
Loading…
Reference in a new issue