home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21820 < prev    next >
Encoding:
Text File  |  1992-12-27  |  7.3 KB  |  257 lines

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