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

Comparing ray/src/rt/editline.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:09:16 1991 UTC vs.
Revision 2.2 by greg, Wed Oct 26 10:04:12 1994 UTC

# Line 68 | Line 68 | int  (*c_get)(), (*s_put)();
68   static char  mybuf[512];
69  
70  
71 < char *
72 < getcombuf(d)                            /* return buffer for my command */
73 < struct driver  *d;
71 > tocombuf(b, d)                          /* add command(s) to my buffer */
72 > register char  *b;
73 > register struct driver  *d;
74   {
75 <        d->inpready++;
76 <        return(mybuf+strlen(mybuf));
75 >        register char  *cp;
76 >
77 >        for (cp = mybuf; *cp; cp++)
78 >                ;
79 >        while (*cp++ = *b)
80 >                if (*b++ == '\n')
81 >                        d->inpready++;
82   }
83  
84  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines