Skip to content

Commit

Permalink
WIP: fixed the tests, but broke parrot
Browse files Browse the repository at this point in the history
allow and handle now empty strings im imcc, fix
quoted sub names
  • Loading branch information
Reini Urban committed Oct 15, 2014
1 parent d709143 commit 4a80420
Show file tree
Hide file tree
Showing 8 changed files with 366 additions and 352 deletions.
7 changes: 5 additions & 2 deletions compilers/imcc/imcc.y
Expand Up @@ -757,12 +757,15 @@ mk_sub_address_fromc(ARGMOD(imc_info_t *imcc), ARGIN(const char *name))
STRING *unescaped = Parrot_str_unescape(imcc->interp, name+1, '"', NULL);
name_copy = Parrot_str_to_cstring(imcc->interp, unescaped);
}
else if (*name == '\'') {
name_copy = mem_sys_strdup(name+1);
name_copy[strlen(name) - 1] = 0;
}
else {
name_copy = mem_sys_strdup(name);
name_copy[strlen(name) - 1] = 0;
}

r = mk_sub_address(imcc, name_copy + 1);
r = mk_sub_address(imcc, name_copy);
mem_sys_free(name_copy);

return r;
Expand Down

0 comments on commit 4a80420

Please sign in to comment.