ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhdisp.c
(Generate patch)

Comparing ray/src/hd/rhdisp.c (file contents):
Revision 3.25 by gwlarson, Fri May 22 08:30:40 1998 UTC vs.
Revision 3.26 by gwlarson, Wed Jun 17 15:44:07 1998 UTC

# Line 303 | Line 303 | usr_input()                    /* get user input and process it */
303          if (fgets(cmd, sizeof(cmd), sstdin) == NULL) {
304                  fclose(sstdin);
305                  sstdin = NULL;
306 <                return(0);
306 >                return(-1);
307          }
308 +        if (!*cmd)
309 +                return(DC_RESUME);
310          for (args = cmd; *args && !isspace(*args); args++)
311                  ;
312          while (isspace(*args))
313                  *args++ = '\0';
312        if (!*cmd)
313                return(DC_RESUME);
314          if (*args && args[i=strlen(args)-1] == '\n')
315                  args[i] = '\0';
316          for (i = 0; i < DC_NCMDS; i++)
317                  if (!strcmp(cmd, cmdlist[i]))
318                          break;
319          if (i >= DC_NCMDS) {
320 <                sprintf(errmsg, "unknown command: %s", cmd);
321 <                error(COMMAND, errmsg);
320 >                dev_auxcom(cmd, args);
321                  return(-1);
322          }
323          switch (i) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines