emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99844: Simplify code for HP machines


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99844: Simplify code for HP machines.
Date: Tue, 06 Apr 2010 23:11:45 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 99844
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Tue 2010-04-06 23:11:45 -0700
message:
  Simplify code for HP machines.
  * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
  for GNU_LINUX, not needed.
  (UNEXEC, NEED_BSDTTY): Move definitions...
  * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
modified:
  src/ChangeLog
  src/m/hp800.h
  src/s/hpux10-20.h
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-04-07 06:01:30 +0000
+++ b/src/ChangeLog     2010-04-07 06:11:45 +0000
@@ -1,5 +1,11 @@
 2010-04-07  Dan Nicolaescu  <address@hidden>
 
+       Simplify code for HP machines.
+       * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
+       for GNU_LINUX, not needed.
+       (UNEXEC, NEED_BSDTTY): Move definitions...
+       * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
+
        * m/iris4d.h (UNEXEC): Move definition ...
        * s/irix6-5.h (UNEXEC): ... here.
 

=== modified file 'src/m/hp800.h'
--- a/src/m/hp800.h     2010-03-30 02:47:23 +0000
+++ b/src/m/hp800.h     2010-04-07 06:11:45 +0000
@@ -41,9 +41,9 @@
 #define EXPLICIT_SIGN_EXTEND
 
 
-/* Common definitions for HPUX and GNU/Linux.  */
+/* Stuff for just HPUX.  */
 
-#if defined (__hpux) || defined (GNU_LINUX)
+#if defined (__hpux)
 
 /* Define NO_REMAP if memory segmentation makes it not work well
    to change the boundary between the text section and data section
@@ -52,26 +52,6 @@
 
 #define NO_REMAP
 
-#endif /* __hpux or GNU_LINUX */
-
-/* Stuff for just GNU/Linux.  */
-
-#ifdef GNU_LINUX
-
-/* Data type of load average, as read out of kmem.  */
-
-#define LOAD_AVE_TYPE long
-
-/* Convert that into an integer that is 100 for a load average of 1.0  */
-
-#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
-
-#endif /* GNU_LINUX */
-
-/* Stuff for just HPUX.  */
-
-#ifdef __hpux
-
 /* Define VIRT_ADDR_VARIES if the virtual addresses of
    pure and impure space as loaded can vary, and even their
    relative order cannot be relied on.
@@ -88,14 +68,6 @@
 #define DATA_START    0x40000000
 #define TEXT_START    0x00000000
 
-/* This machine requires completely different unexec code
-   which lives in a separate file.  Specify the file name.  */
-
-#define UNEXEC unexhp9k800.o
-
-/* Include the file bsdtty.h, since this machine has job control.  */
-#define NEED_BSDTTY
-
 /* Data type of load average, as read out of kmem.  */
 
 #define LOAD_AVE_TYPE double

=== modified file 'src/s/hpux10-20.h'
--- a/src/s/hpux10-20.h 2010-01-13 08:35:10 +0000
+++ b/src/s/hpux10-20.h 2010-04-07 06:11:45 +0000
@@ -89,6 +89,11 @@
 
 #define HAVE_PERROR  /* Delete this line for version 6.  */
 
+#define UNEXEC unexhp9k800.o
+
+/* Include the file bsdtty.h, since this machine has job control.  */
+#define NEED_BSDTTY
+
 /* This is how to get the device name of the tty end of a pty.  */
 #define PTY_TTY_NAME_SPRINTF \
             sprintf (pty_name, "/dev/pty/tty%c%x", c, i);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]