use strindex instead of index
This commit is contained in:
parent
4c0ea89fe0
commit
360caa08bb
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ process_operand( str, op)
|
||||||
register char *str;
|
register char *str;
|
||||||
register struct t_operand *op;
|
register struct t_operand *op;
|
||||||
{
|
{
|
||||||
char *glob_lbl();
|
char *glob_lbl(), *strindex();
|
||||||
|
|
||||||
op->type = 0;
|
op->type = 0;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ register struct t_operand *op;
|
||||||
op->lbl = NULL;
|
op->lbl = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '(' : if ( index( str+1, ',') == NULL)
|
case '(' : if ( strindex( str+1, ',') == NULL)
|
||||||
if ( is_reg( str+1)) {
|
if ( is_reg( str+1)) {
|
||||||
op->reg = reg_val( str+1);
|
op->reg = reg_val( str+1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue