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

Comparing ray/src/rt/x10.c (file contents):
Revision 1.26 by greg, Fri Feb 23 08:55:18 1990 UTC vs.
Revision 1.28 by greg, Mon Mar 12 11:08:46 1990 UTC

# Line 61 | Line 61 | extern char  *malloc(), *getcombuf();
61  
62   extern char  *progname;
63  
64 < int  x_close(), x_clear(), x_paintr(), x_errout(),
64 > static int  x_close(), x_clear(), x_paintr(), x_errout(),
65                  x_getcur(), x_comout(), x_comin(), x_flush();
66  
67   static struct driver  x_driver = {
# Line 199 | Line 199 | static
199   x_comin(inp, prompt)            /* read in a command line */
200   char  *inp, *prompt;
201   {
202 <        int  x_getc(), x_comout();
202 >        extern int  x_getc();
203  
204          if (prompt != NULL)
205                  if (fromcombuf(inp, &x_driver))
# Line 216 | Line 216 | static
216   x_comout(out)                   /* output a string to command line */
217   char  *out;
218   {
219 <        if (comline != NULL)
220 <                xt_puts(out, comline);
221 <        XFlush();
219 >        if (comline == NULL)
220 >                return;
221 >        xt_puts(out, comline);
222 >        if (out[strlen(out)-1] == '\n')
223 >                XFlush();
224   }
225  
226  
# Line 226 | Line 228 | static
228   x_errout(msg)                   /* output an error message */
229   char  *msg;
230   {
229        x_comout(msg);
231          stderr_v(msg);          /* send to stderr also! */
232 +        x_comout(msg);
233   }
234  
235  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines