comments on building emacs-18.55

Chet Wood chet at Advansoft.COM
Wed Aug 15 10:16:37 AEST 1990


I just built emacs using the diffs on apple.com-- it has Dave Berry's
name on it:
	emacs-18.55.aux.diffs.Z

I got it built but had to hack things around a little bit. (Guess I'm
spoiled. On the Sun, all you have to do to make gnu things is type
"make.")

The most surprising thing is that, though the symbol AUX is used
liberally in the patches, it is never defined! Things seemed to
compile OK without it-- I only discovered it because I defined
HAVE_X_WINDOWS, so had to change a few things around. Trying to make
my changes dependent on AUX wasn't working, so I checked around
and couldn't find it defined anywhere!

I also ran into the problem someone else mentioned on the net of
clashes between the variable PC in the term*.c and gm.h files, and
the assembler mnemonic for the PC register. Could someone please
explain why this occurs? I haven't used a C compiler in a long time
that would allow such a clash. I saw the term "register prefixes" used
in a posting but I could find no such term in the gcc documentation.

Here are the patches to fix what I found. They can probably be
appended to Dave Berry's patches and applied all at once. I haven't
done extensive testing on the resultant emacs, but it does come up
under X and visit files...

diff -rcN dist-18.55/src/sysdep.c emacs/src/sysdep.c
*** dist-18.55/src/sysdep.c	Tue Aug 14 13:04:59 1990
--- emacs/src/sysdep.c	Tue Aug 14 15:52:37 1990
***************
*** 1785,1791 ****
  }
  #endif BSD4_1
  
! #ifdef USG
  /*
   *	The BSD random(3) returns numbers in the range of
   *	0 to 2e31 - 1.  The USG rand(3C) returns numbers in the
--- 1785,1791 ----
  }
  #endif BSD4_1
  
! #if defined(USG) && !defined(HAVE_X_WINDOWS)
  /*
   *	The BSD random(3) returns numbers in the range of
   *	0 to 2e31 - 1.  The USG rand(3C) returns numbers in the
diff -rcN dist-18.55/src/x11term.c emacs/src/x11term.c
*** dist-18.55/src/x11term.c	Tue Oct 31 14:41:39 1989
--- emacs/src/x11term.c	Tue Aug 14 15:18:56 1990
***************
*** 71,77 ****
  #include "x11term.h"
  
  #ifdef USG
! #ifdef IRIS_4D
  #include <sys/time.h>
  #else
  #include <time.h>
--- 71,77 ----
  #include "x11term.h"
  
  #ifdef USG
! #if defined(IRIS_4D) || defined(AUX)
  #include <sys/time.h>
  #else
  #include <time.h>
diff -rcN dist-18.55/src/cm.h emacs/src/cm.h
*** dist-18.55/src/cm.h	Tue Feb  9 11:12:41 1988
--- emacs/src/cm.h	Tue Aug 14 15:05:29 1990
***************
*** 65,71
  		cc_tab;
  } Wcm;
  
! extern char PC;			/* Pad character */
  extern short ospeed;		/* Output speed (from sg_ospeed) */
  
  /* Shorthand */

--- 65,71 -----
  		cc_tab;
  } Wcm;
  
! extern char _PC;			/* Pad character */
  extern short ospeed;		/* Output speed (from sg_ospeed) */
  
  /* Shorthand */
diff -rcN dist-18.55/src/term.c emacs/src/term.c
*** dist-18.55/src/term.c	Tue May  9 14:45:04 1989
--- emacs/src/term.c	Tue Aug 14 15:01:49 1990
***************
*** 1066,1072
    if (!TS_fwd_scroll)
      TS_fwd_scroll = Down;
  
!   PC = TS_pad_char ? *TS_pad_char : 0;
  
    if (TabWidth < 0)
      TabWidth = 8;

--- 1066,1072 -----
    if (!TS_fwd_scroll)
      TS_fwd_scroll = Down;
  
!   _PC = TS_pad_char ? *TS_pad_char : 0;
  
    if (TabWidth < 0)
      TabWidth = 8;
diff -rcN dist-18.55/src/termcap.c emacs/src/termcap.c
*** dist-18.55/src/termcap.c	Sat Jun 18 06:19:41 1988
--- emacs/src/termcap.c	Tue Aug 14 14:59:16 1990
***************
*** 295,301
  /* Outputting a string with padding */
  
  short ospeed;
! char PC;
  
  /* Actual baud rate if positive;
     - baud rate / 100 if negative.  */

--- 295,301 -----
  /* Outputting a string with padding */
  
  short ospeed;
! char _PC;
  
  /* Actual baud rate if positive;
     - baud rate / 100 if negative.  */
***************
*** 351,357
      }
  
    while (padcount-- > 0)
!     (*outfun) (PC);
  }
  
  /* Finding the termcap entry in the termcap data base */

--- 351,357 -----
      }
  
    while (padcount-- > 0)
!     (*outfun) (_PC);
  }
  
  /* Finding the termcap entry in the termcap data base */
diff -rcN dist-18.55/src/terminfo.c emacs/src/terminfo.c
*** dist-18.55/src/terminfo.c	Fri Jun 12 18:41:15 1987
--- emacs/src/terminfo.c	Tue Aug 14 14:59:38 1990
***************
*** 22,28
     so that we do not need to conditionalize the places in Emacs
     that set them.  */
  
! char *UP, *BC, PC;
  short ospeed;
  
  static buffer[512];

--- 22,28 -----
     so that we do not need to conditionalize the places in Emacs
     that set them.  */
  
! char *UP, *BC, _PC;
  short ospeed;
  
  static buffer[512];
diff -rcN dist-18.55/src/s-aux.h emacs/src/s-aux.h
*** dist-18.55/src/s-aux.h	Tue Aug 14 17:09:41 1990
--- emacs/src/s-aux.h	Tue Aug 14 17:09:17 1990
***************
*** 28,33 ****
--- 28,34 ----
  #define UNIPLUS
  #define USG5
  #define USG
+ #define AUX
  
  /* #define HPUX */
  /* #define UMAX */
--
Chet Wood                       ~                         (408)727-3357 X269
   chet at Advansoft.Com    .  Advansoft Research Corporation
     arc!chet at apple.COM    .      4301 Great America Parkway, 6th floor
            apple!arc!chet   .            Santa Clara, CA 95054, USA



More information about the Comp.unix.aux mailing list