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

Comparing ray/src/rt/devcomm.c (file contents):
Revision 1.10 by greg, Fri Jan 19 00:00:08 1990 UTC vs.
Revision 1.11 by greg, Tue Jan 30 11:37:36 1990 UTC

# Line 179 | Line 179 | char   *str;
179  
180  
181   static
182 < comm_comin(buf)                         /* read string from command line */
182 > comm_comin(buf, prompt)                 /* read string from command line */
183   char    *buf;
184 + char    *prompt;
185   {
186          putc(COM_COMIN, devout);
187 +        if (prompt == NULL)
188 +                putc(0, devout);
189 +        else {
190 +                putc(1, devout);
191 +                myputs(prompt, devout);
192 +        }
193          fflush(devout);
194          if (getc(devin) != COM_COMIN)
195                  reply_error("comin");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines