home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22729 < prev    next >
Encoding:
Text File  |  1993-01-05  |  6.2 KB  |  248 lines

  1. Path: sparky!uunet!nwnexus!remote!UUCP
  2. From: Craig.Groeschel@f15.n229.z1.fidonet.org (Craig Groeschel)
  3. Newsgroups: comp.os.linux
  4. Subject: patches for elvis-1.6 (lo
  5. Message-ID: <726211386.AA30274@remote.halcyon.com>
  6. Date: Sun, 27 Dec 1992 04:29:11 -0800
  7. Sender: UUCP@remote.halcyon.com
  8. Lines: 238
  9.  
  10.  
  11. Here is what I had to change to get elvis 1.6 to compile on my machine.
  12. To apply these patches use something like
  13.    patch -d /usr/src/elvis-1.6/src < elvis.dif
  14. Hope they save time.
  15.  
  16. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/cmd1.c
  17. /local/src/elvis-1.6/src/cmd1.c
  18. *** /tmp/elvis-1.6/src/cmd1.cSun Aug 23 01:18:19 1992
  19. ***************
  20. *** 1192,1196 ****
  21.   {
  22.   REG char*cpy;
  23. - longatol();
  24.   # if COHERENT || TOS /* any Mark Williams compiler */
  25.   /* Get the line number.  If no line number, then ignore this line. */
  26. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/fmt.c
  27. /local/src/elvis-1.6/src/fmt.c
  28. *** /tmp/elvis-1.6/src/fmt.cSun Aug 23 01:18:23 1992
  29. ***************
  30. *** 21,25 ****
  31.  
  32.   intwidth = 72;/* the desired line width */
  33. ! intisblank;/* is the current output line blank? */
  34.   intindent;/* width of the indentation */
  35.   charind[512];/* indentation text */
  36.  
  37.   intwidth = 72;/* the desired line width */
  38. ! intisblnk;/* is the current output line blank? */
  39.   intindent;/* width of the indentation */
  40.   charind[512];/* indentation text */
  41. ***************
  42. *** 65,69 ****
  43.  
  44.   /* if this is the first word on the line... */
  45. ! if (isblank)
  46.   {
  47.   /* output the indentation first */
  48.  
  49.   /* if this is the first word on the line... */
  50. ! if (isblnk)
  51.   {
  52.   /* output the indentation first */
  53. ***************
  54. *** 100,104 ****
  55.  
  56.   /* this output line isn't blank anymore. */
  57. ! isblank = FALSE;
  58.   }
  59.  
  60.  
  61.   /* this output line isn't blank anymore. */
  62. ! isblnk = FALSE;
  63.   }
  64.  
  65. ***************
  66. *** 116,120 ****
  67.  
  68.   /* for each character in the stream... */
  69. ! for (indent = -1, isblank = TRUE, inword = FALSE, i = 0, prevch =
  70. '\n';
  71.        (ch = getc(in)) != EOF;
  72.        prevch = ch)
  73.  
  74.   /* for each character in the stream... */
  75. ! for (indent = -1, isblnk = TRUE, inword = FALSE, i = 0, prevch =
  76. '\n';
  77.        (ch = getc(in)) != EOF;
  78.        prevch = ch)
  79. ***************
  80. *** 137,144 ****
  81.   {
  82.   /* finish the previous paragraph */
  83. ! if (!isblank)
  84.   {
  85.   putchar('\n');
  86. ! isblank = TRUE;
  87.   }
  88.  
  89.   {
  90.   /* finish the previous paragraph */
  91. ! if (!isblnk)
  92.   {
  93.   putchar('\n');
  94. ! isblnk = TRUE;
  95.   }
  96.  
  97. ***************
  98. *** 207,214 ****
  99.  
  100.   /* if necessary, write a final newline */
  101. ! if (!isblank)
  102.   {
  103.   putchar('\n');
  104. ! isblank = TRUE;
  105.   }
  106.   }
  107.  
  108.   /* if necessary, write a final newline */
  109. ! if (!isblnk)
  110.   {
  111.   putchar('\n');
  112. ! isblnk = TRUE;
  113.   }
  114.   }
  115. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/move2.c
  116. /local/src/elvis-1.6/src/move2.c
  117. *** /tmp/elvis-1.6/src/move2.cSun Aug 23 01:18:26 1992
  118. ***************
  119. *** 15,19 ****
  120.   #include "regexp.h"
  121.  
  122. - extern longatol();
  123.  
  124.   static regexp*re;/* compiled version of the pattern to search for */
  125. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/ref.c
  126. /local/src/elvis-1.6/src/ref.c
  127. *** /tmp/elvis-1.6/src/ref.cSun Aug 23 01:18:31 1992
  128. ***************
  129. *** 25,29 ****
  130.   extern intcountcolons P_((char *));
  131.   extern voidmain P_((int, char **));
  132. - extern char*getenv P_((char *));
  133.  
  134.  
  135. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/tmp.c
  136. /local/src/elvis-1.6/src/tmp.c
  137. *** /tmp/elvis-1.6/src/tmp.cSun Aug 23 01:18:34 1992
  138. ***************
  139. *** 176,180 ****
  140.   else
  141.   {
  142. ! setflag(file, NOFILE);
  143.   origfd = -1;
  144.   origtime = 0L;
  145.   else
  146.   {
  147. ! setflag(file, NOFILEvi);
  148.   origfd = -1;
  149.   origtime = 0L;
  150. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/unix.c
  151. /local/src/elvis-1.6/src/unix.c
  152. *** /tmp/elvis-1.6/src/unix.cSun Aug 23 01:18:35 1992
  153. ***************
  154. *** 118,122 ****
  155.   int ttyread(buf, len, time)
  156.   char*buf;/* where to store the gotten characters */
  157. ! unsigned len;/* maximum number of characters to read */
  158.   inttime;/* maximum time to allow for reading */
  159.   {
  160.   int ttyread(buf, len, time)
  161.   char*buf;/* where to store the gotten characters */
  162. ! int     len;/* maximum number of characters to read */
  163.   inttime;/* maximum time to allow for reading */
  164.   {
  165. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/vcmd.c
  166. /local/src/elvis-1.6/src/vcmd.c
  167. *** /tmp/elvis-1.6/src/vcmd.cSun Aug 23 01:18:36 1992
  168. ***************
  169. *** 650,654 ****
  170.   staticsign;
  171.   charnewval[12];
  172. - longatol();
  173.  
  174.   DEFAULT(1);
  175. diff +recursive +ignore-space-change -c2 /tmp/elvis-1.6/src/vi.h
  176. /local/src/elvis-1.6/src/vi.h
  177. *** /tmp/elvis-1.6/src/vi.hSun Aug 23 01:18:37 1992
  178. ***************
  179. *** 105,109 ****
  180.   #define HADNUL0x0004/* the file contained NUL characters */
  181.   #define MODIFIED0x0008/* the file has been modified, but not saved */
  182. ! #define NOFILE0x0010/* no name is known for the current text */
  183.   #define ADDEDNL0x0020/* newlines were added to the file */
  184.   #define HADBS0x0040/* backspace chars were lost from the file */
  185.   #define HADNUL0x0004/* the file contained NUL characters */
  186.   #define MODIFIED0x0008/* the file has been modified, but not saved */
  187. ! #define NOFILEvi       0x0010/* no name is known for the current text
  188. */
  189.   #define ADDEDNL0x0020/* newlines were added to the file */
  190.   #define HADBS0x0040/* backspace chars were lost from the file */
  191. *** Makefile.mixSun Aug 23 01:18:15 1992
  192. ***************
  193. *** 37,62 ****
  194.  
  195.   #---- These settings are recommended for System-V UNIX and SCO
  196. XENIX-386 ----
  197. ! #OBJ=.o
  198. ! #EXE=
  199. ! #COM=
  200. ! #EXTRA=unix$(OBJ)
  201. ! #EXTRA2=
  202. ! #LIBS=-lterm
  203. ! #BIN=/usr/local/bin
  204. ! #CC=cc
  205. ! #CFLAGS=-DM_SYSV -O -DNO_SHIFT_FKEYS
  206. ! #SMALL=
  207. ! #OF=-o ""
  208. ! #RF=-c
  209. ! #EVAL=eval
  210. ! #PROGS=elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  211. ! #elvprsv$(COM)
  212. ! #CHMEM=
  213. ! #SORT=-DSORT
  214. ! #RM=rm -f
  215. ! #CP=cp
  216. ! #SYS=unx
  217. ! #DUMMY=
  218. ! #CFG=
  219.  
  220.   #---- These settings are recommended for SCO XENIX-286 ----
  221.  
  222.   #---- These settings are recommended for System-V UNIX and SCO
  223. XENIX-386 ----
  224. ! OBJ=.o
  225. ! EXE=
  226. ! COM=
  227. ! EXTRA=unix$(OBJ)
  228. ! EXTRA2=
  229. ! LIBS=-ltermcap
  230. ! BIN=/usr/local/bin
  231. ! CC=cc
  232. ! CFLAGS=-DM_SYSV -O -DNO_SHIFT_FKEYS -DTERMIOS -DFILEPERMS=0644
  233. -DMAILER=\"mail\"
  234. ! SMALL=
  235. ! OF=-o ""
  236. ! RF=-c
  237. ! EVAL=eval
  238. ! PROGS=elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  239. ! elvprsv$(COM)
  240. ! CHMEM=
  241. ! SORT=-DSORT
  242. ! RM=rm -f
  243. ! CP=cp
  244. ! SYS=unx
  245. <<MESSAGE TOO LONG -- SOME LINES WERE DELETED>>
  246.  * Origin: Canada Remote Systems, Mississauga, Ontario  (1:229/15)
  247.  
  248.