--- ray/src/rt/editline.c 1995/09/29 20:49:37 2.3 +++ ray/src/rt/editline.c 2003/06/30 19:04:29 2.6 @@ -1,15 +1,20 @@ -/* Copyright (c) 1995 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: editline.c,v 2.6 2003/06/30 19:04:29 greg Exp $"; #endif - /* * editline.c - routine for editing raw input for rview. * - * 10/5/88 + * External symbols declared in driver.h */ +#include "copyright.h" + +#include + +#include "color.h" + +#include "driver.h" + #define iscntrl(c) ((c) < ' ') #define isblank(c) ((c) == ' ') #define iserase(c) ((c) == '\b' || (c) == 127) @@ -17,9 +22,11 @@ static char SCCSid[] = "$SunId$ LBL"; #define iskill(c) ((c) == 'U'-'@' || (c) == 'X'-'@') +void editline(buf, c_get, s_put) /* edit input line */ char *buf; -int (*c_get)(), (*s_put)(); +int (*c_get)(); +void (*s_put)(); { static char erases[] = "\b \b"; static char obuf[4]; @@ -63,11 +70,10 @@ int (*c_get)(), (*s_put)(); } -#include "driver.h" - static char mybuf[512]; +void tocombuf(b, d) /* add command(s) to my buffer */ register char *b; register struct driver *d; @@ -89,6 +95,7 @@ register struct driver *d; } +int fromcombuf(b, d) /* get command from my buffer */ char *b; struct driver *d;