[comp.os.minix] Elvis on PC-Minix

pa1285@sdcc13.ucsd.edu (David L. Brown) (01/07/90)

I had to make several changes to Elvis in order for it to compile
on my PC-Minix (1.5.0).  First, some of the function names were not
unique within the 8 characters used by asld.  Second, the isascii
macro is used but is not defined anywhere on my system.

One note:  The ^T and ^D keys do not work properly.  They insert a
tab, and delete a character instead of adjusting the indent by the
shiftwidth.  I will see if I can fix this.

BTW, be sure to add the -i option to the link of elvis in the
makefile.  Elvis text+data is larger than 64K, and although asld
does not complain, the combined space executable will perform a very
unfriendly crash.

David L. Brown
dbrown@ucsd.edu

--- cut here ---
*** old/vi.h	Fri Jan  5 04:25:18 1990
--- vi.h	Fri Jan  5 05:22:18 1990
***************
*** 7,12 ****
--- 7,20 ----
   *	kirkenda@jove.cs.pdx.edu, or ...uunet!tektronix!psueea!jove!kirkenda
   */
  
+ #ifdef PC_MINIX
+ /* these names conflict in the pc_minix linker */
+ #define movefsentence	_fsenmove
+ #define movebsentence	_bsenmove
+ #define v_shiftl	_lv_shift
+ #define redrawpre	_preredraw
+ #endif
+ 
  
  /* This is the header file for my version of vi. */
  
--- cut here ---
*** old/move1.c	Fri Jan  5 07:02:34 1990
--- move1.c	Fri Jan  5 07:07:37 1990
***************
*** 1,5 ****
--- 1,7 ----
  /* move1.c */
  
+ #define isascii(a)  (((a)<128)&&((a)>0))
+ 
  /* Author:
   *	Steve Kirkendall
   *	16820 SW Tallac Way