Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.bugs.4bsd Subject: Re: ex(1) variable name conflict Message-ID: <114900@uunet.UU.NET> Date: 19 Dec 90 21:36:48 GMT References: <517@aupair.cs.athabascau.ca> Distribution: comp Organization: UUNET Communications Services, Falls Church, VA Lines: 45 In article <517@aupair.cs.athabascau.ca> lyndon@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 Close the gap of the dark year in between