diff options
| author | Dan Nicolaescu | 2008-07-23 08:29:24 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-23 08:29:24 +0000 |
| commit | 7a14f2a03e95f5ac10d5603da6fa52777f16968e (patch) | |
| tree | 458d3141171de03a79258e34d4bc8930fb709a9a /src | |
| parent | 5fa8e472948b7e7fe3903c73ed39b28109f22216 (diff) | |
| download | emacs-7a14f2a03e95f5ac10d5603da6fa52777f16968e.tar.gz emacs-7a14f2a03e95f5ac10d5603da6fa52777f16968e.zip | |
* s/usg5-4.h (ADDR_CORRECT): Remove, unused.
* unexaix.c (ADDR_CORRECT): Remove conditional, the only user
defines it.
* unexec.c (ADDR_CORRECT): Define unconditionally.
* m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/m/ibmrs6000.h | 3 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 4 | ||||
| -rw-r--r-- | src/unexaix.c | 8 | ||||
| -rw-r--r-- | src/unexec.c | 11 |
5 files changed, 7 insertions, 26 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8651558ad9e..be233c512f5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * s/usg5-4.h (ADDR_CORRECT): Remove, unused. | ||
| 4 | * unexaix.c (ADDR_CORRECT): Remove conditional, the only user | ||
| 5 | defines it. | ||
| 6 | * unexec.c (ADDR_CORRECT): Define unconditionally. | ||
| 7 | |||
| 8 | * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove. | ||
| 9 | |||
| 3 | * unexec.c: Remove code depending on !COFF and USG, the file is | 10 | * unexec.c: Remove code depending on !COFF and USG, the file is |
| 4 | not used for such systems. | 11 | not used for such systems. |
| 5 | 12 | ||
diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h index 90fd21b5cd1..2d8681185ad 100644 --- a/src/m/ibmrs6000.h +++ b/src/m/ibmrs6000.h | |||
| @@ -83,9 +83,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 83 | #define LIBS_MACHINE | 83 | #define LIBS_MACHINE |
| 84 | #endif /* USG5_4 */ | 84 | #endif /* USG5_4 */ |
| 85 | 85 | ||
| 86 | #undef ADDR_CORRECT | ||
| 87 | #define ADDR_CORRECT(x) ((int)(x)) | ||
| 88 | |||
| 89 | #define START_FILES | 86 | #define START_FILES |
| 90 | /*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/ | 87 | /*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/ |
| 91 | #define BROKEN_FIONREAD | 88 | #define BROKEN_FIONREAD |
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index 7ce4790fb76..c729203b671 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h | |||
| @@ -85,10 +85,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 85 | #define rindex strrchr | 85 | #define rindex strrchr |
| 86 | #endif /* ! defined (HAVE_RINDEX) */ | 86 | #endif /* ! defined (HAVE_RINDEX) */ |
| 87 | 87 | ||
| 88 | /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */ | ||
| 89 | |||
| 90 | #define ADDR_CORRECT(x) (x) | ||
| 91 | |||
| 92 | /* Use terminfo instead of termcap. */ | 88 | /* Use terminfo instead of termcap. */ |
| 93 | 89 | ||
| 94 | #define TERMINFO | 90 | #define TERMINFO |
diff --git a/src/unexaix.c b/src/unexaix.c index c8395101f62..ac9743f8c4b 100644 --- a/src/unexaix.c +++ b/src/unexaix.c | |||
| @@ -103,14 +103,6 @@ static int adjust_lnnoptrs (int, int, char *); | |||
| 103 | 103 | ||
| 104 | static int pagemask; | 104 | static int pagemask; |
| 105 | 105 | ||
| 106 | /* Correct an int which is the bit pattern of a pointer to a byte | ||
| 107 | into an int which is the number of a byte. | ||
| 108 | This is a no-op on ordinary machines, but not on all. */ | ||
| 109 | |||
| 110 | #ifndef ADDR_CORRECT /* Let m-*.h files override this definition */ | ||
| 111 | #define ADDR_CORRECT(x) ((char *)(x) - (char*)0) | ||
| 112 | #endif | ||
| 113 | |||
| 114 | #ifdef emacs | 106 | #ifdef emacs |
| 115 | #include "lisp.h" | 107 | #include "lisp.h" |
| 116 | 108 | ||
diff --git a/src/unexec.c b/src/unexec.c index a1f962bd606..e3381d6d6ae 100644 --- a/src/unexec.c +++ b/src/unexec.c | |||
| @@ -117,15 +117,6 @@ the bits that must be zero on such a boundary. | |||
| 117 | This macro can be used to generate statements to adjust or | 117 | This macro can be used to generate statements to adjust or |
| 118 | initialize nonstandard fields in the file header | 118 | initialize nonstandard fields in the file header |
| 119 | 119 | ||
| 120 | * ADDR_CORRECT(ADDR) | ||
| 121 | |||
| 122 | Macro to correct an int which is the bit pattern of a pointer to a byte | ||
| 123 | into an int which is the number of a byte. | ||
| 124 | |||
| 125 | This macro has a default definition which is usually right. | ||
| 126 | This default definition is a no-op on most machines (where a | ||
| 127 | pointer looks like an int) but not on all machines. | ||
| 128 | |||
| 129 | */ | 120 | */ |
| 130 | 121 | ||
| 131 | #ifndef emacs | 122 | #ifndef emacs |
| @@ -209,9 +200,7 @@ static int pagemask; | |||
| 209 | into an int which is the number of a byte. | 200 | into an int which is the number of a byte. |
| 210 | This is a no-op on ordinary machines, but not on all. */ | 201 | This is a no-op on ordinary machines, but not on all. */ |
| 211 | 202 | ||
| 212 | #ifndef ADDR_CORRECT /* Let m-*.h files override this definition */ | ||
| 213 | #define ADDR_CORRECT(x) ((char *)(x) - (char*)0) | 203 | #define ADDR_CORRECT(x) ((char *)(x) - (char*)0) |
| 214 | #endif | ||
| 215 | 204 | ||
| 216 | #ifdef emacs | 205 | #ifdef emacs |
| 217 | 206 | ||