ex(1) variable name conflict
Root Boy Jim
rbj at uunet.UU.NET
Thu Dec 20 08:36:48 AEST 1990
In article <517 at aupair.cs.athabascau.ca> lyndon at cs.athabascau.ca (Lyndon Nerenberg) writes:
>Index: /usr/src/ucb/ex/ex_tty.[ch] 4.3BSD tahoe
>
>Description:
>
> The variable HZ conflicts with a system define in SunOS 4.1
> (and probably some others).
>
>Repeat By:
>
> Compile ex under SunOS 4.1
I agree so far. However, vi doesn't care how fast the clock runs.
>Fix:
Try this instead:
*** WARNING: This diff isn't real, I just edited yours.
diff -c -r1.1 ex_tty.h
*** /tmp/,RCSt1a27377 Mon Dec 17 15:19:26 1990
--- ex_tty.h Mon Dec 17 14:04:59 1990
***************
*** 94,100 ****
var bool EO; /* Can erase overstrikes with ' ' */
var bool GT; /* Gtty indicates tabs */
var bool HC; /* Hard copy terminal */
var bool HZ; /* Hazeltine ~ braindamage */
var bool IN; /* Insert-null blessing */
var bool MI; /* can move in insert mode */
var bool NC; /* No Cr - \r snds \r\n then eats \n (dm2500) */
--- 94,101 ----
var bool EO; /* Can erase overstrikes with ' ' */
var bool GT; /* Gtty indicates tabs */
var bool HC; /* Hard copy terminal */
+ #undef HZ
var bool HZ; /* Hazeltine ~ braindamage */
var bool IN; /* Insert-null blessing */
var bool MI; /* can move in insert mode */
var bool NC; /* No Cr - \r snds \r\n then eats \n (dm2500) */
--
Root Boy Jim Cottrell <rbj at uunet.uu.net>
Close the gap of the dark year in between
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list