do
{
l = l->next;
- } while(l->ic->op != FUNCTION);
+ } while(l->isComment || l->ic == NULL || l->ic->op != FUNCTION);
- sym = OP_SYMBOL(IC_LEFT(_G.head->next->next->ic));
+ sym = OP_SYMBOL(IC_LEFT(l->ic));
if(sym && IS_DECL(sym->type))
{
/* Check if reading arg implies reading what. */
static bool argCont(const char *arg, const char *what)
{
- if(arg[0] == '#')
- return FALSE;
- return(strstr(arg, what));;
+ return (arg[0] == '#') ? FALSE : strstr(arg, what) != NULL;
}
static bool
strncmp(pl->line, "dec\t", 4) == 0 ||
strncmp(pl->line, "inc\t", 4) == 0 ||
strncmp(pl->line, "rl\t", 4) == 0 ||
- strncmp(pl->line, "rr\t", 4) == 0 ||
+ strncmp(pl->line, "rr\t", 4) == 0 ||
strncmp(pl->line, "sla\t", 4) == 0 ||
strncmp(pl->line, "sra\t", 4) == 0 ||
strncmp(pl->line, "srl\t", 4) == 0)