|
|
@ -148,12 +148,12 @@ copynode(char *s) |
|
|
|
|
|
|
|
|
if (strstr(s, "(")) |
|
|
if (strstr(s, "(")) |
|
|
s = stripWhiteSpacesInsideParens(s); |
|
|
s = stripWhiteSpacesInsideParens(s); |
|
|
|
|
|
else |
|
|
|
|
|
s = copy(s); |
|
|
|
|
|
|
|
|
l = strrchr(s, '('/*)*/); |
|
|
l = strrchr(s, '('/*)*/); |
|
|
if (!l) { |
|
|
|
|
|
ret = copy(s); |
|
|
|
|
|
return ret; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!l) |
|
|
|
|
|
return s; |
|
|
|
|
|
|
|
|
r = strchr(s, /*(*/')'); |
|
|
r = strchr(s, /*(*/')'); |
|
|
*r = '\0'; |
|
|
*r = '\0'; |
|
|
@ -164,5 +164,6 @@ copynode(char *s) |
|
|
} else |
|
|
} else |
|
|
ret = copy(l + 1); |
|
|
ret = copy(l + 1); |
|
|
|
|
|
|
|
|
|
|
|
tfree(s); |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |