*** empty log message ***
authorkaashoek <none@none>
Tue, 31 May 1988 13:41:03 +0000 (13:41 +0000)
committerkaashoek <none@none>
Tue, 31 May 1988 13:41:03 +0000 (13:41 +0000)
util/ceg/assemble/obj_assemble/assemble.c

index 4c41a26..d767236 100644 (file)
@@ -121,21 +121,13 @@ char *parse_operand( ptr, n_ops, instr)
             *last;
 
        ptr = skip_operand( ptr, instr);
-       if ( *ptr != '\0')  {
-               if ( *ptr == ',')  {
-                       for( last=ptr-1; isspace( *last); last--) 
-                               ;
-                       *(last+1) = '\0';
-               }
-               else {
-                       error("strange operand format: %s\n", ptr);
-                       /* We don't know what this code does ! */
-                       *ptr++ = '\0';
-                       ptr = skip_space( ptr);
-                       if  ( *ptr != '\0') ptr++;   /* skip ';' */
-               }
-               ptr = skip_space( ptr);
+       for( last=ptr-1; isspace( *last); last--) 
+               ;
+       if ( *ptr == ',')  {
+               ptr = skip_space( ptr + 1);
        }
+       *(last+1) = '\0';
+               
        process_operand( op, &operand[ n_ops-1]);
        return( ptr);
 }