Skip to content

Commit

Permalink
[imcc] fix imcc.y syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Oct 15, 2014
1 parent 97806b4 commit f40fbc1
Show file tree
Hide file tree
Showing 3 changed files with 349 additions and 373 deletions.
4 changes: 1 addition & 3 deletions compilers/imcc/imcc.y
Expand Up @@ -470,12 +470,10 @@ mk_pmc_const_named(ARGMOD(imc_info_t *imcc), ARGMOD(IMC_Unit *unit),
SymReg *rhs;
SymReg *r[3];
//const int ascii = (*constant == '\'' || *constant == '"');
//char *unquoted_name = mem_sys_strdup(name + 1);
//size_t name_length;
int t = 'S';
char *unquoted_name = mk_string(imcc, name, &t);
size_t name_length = strlen(unquoted_name) - 1;

//name_length = strlen(unquoted_name) - 1;
//unquoted_name[name_length] = 0;

if (left->type == VTADDRESS) { /* IDENTIFIER */
Expand Down

0 comments on commit f40fbc1

Please sign in to comment.