diff options
| author | Glenn Morris | 2010-06-02 22:29:02 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-06-02 22:29:02 -0700 |
| commit | 0d4bcf4ddd512e29e414fe1b6f804dcbaa871e72 (patch) | |
| tree | a0e0d8200221c2572eaf63210057b1abe7212f27 | |
| parent | dd2c3c9241142e3d8d855a25319467292a418072 (diff) | |
| download | emacs-0d4bcf4ddd512e29e414fe1b6f804dcbaa871e72.tar.gz emacs-0d4bcf4ddd512e29e414fe1b6f804dcbaa871e72.zip | |
NOT_C_CODE is always true now.
* configure.in (AH_BOTTOM): Remove NOT_C_CODE test, it is always true.
* m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
Remove NOT_C_CODE tests, it is always true now.
* nt/config.nt: Remove NOT_C_CODE tests, it is always true now.
* admin/CPP-DEFINES: Remove NOT_C_CODE.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | admin/CPP-DEFINES | 1 | ||||
| -rw-r--r-- | configure.in | 14 | ||||
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/config.nt | 12 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/m/ia64.h | 4 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 2 | ||||
| -rw-r--r-- | src/s/gnu.h | 2 | ||||
| -rw-r--r-- | src/s/netbsd.h | 2 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 2 |
11 files changed, 19 insertions, 33 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-06-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (AH_BOTTOM): Remove NOT_C_CODE test, it is always true. | ||
| 4 | |||
| 1 | 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | Fix alloca definition when using gcc on non-gnu systems. | 7 | Fix alloca definition when using gcc on non-gnu systems. |
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index cffbcf95e80..d3fddbc4526 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -227,7 +227,6 @@ MIN_PTY_KERNEL_VERSION -- only used on Mac | |||
| 227 | MODE_LINE_BINARY_TEXT | 227 | MODE_LINE_BINARY_TEXT |
| 228 | MUST_UNDEF__STDC__ | 228 | MUST_UNDEF__STDC__ |
| 229 | NLIST_STRUCT | 229 | NLIST_STRUCT |
| 230 | NOT_C_CODE | ||
| 231 | NO_ABORT | 230 | NO_ABORT |
| 232 | NO_EDITRES | 231 | NO_EDITRES |
| 233 | NO_MATHERR | 232 | NO_MATHERR |
diff --git a/configure.in b/configure.in index 2e31641f25f..9c006f56a21 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3546,13 +3546,8 @@ SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ | |||
| 3546 | 3546 | ||
| 3547 | /* Some of the files of Emacs which are intended for use with other | 3547 | /* Some of the files of Emacs which are intended for use with other |
| 3548 | programs assume that if you have a config.h file, you must declare | 3548 | programs assume that if you have a config.h file, you must declare |
| 3549 | the type of getenv. | 3549 | the type of getenv. */ |
| 3550 | |||
| 3551 | This declaration shouldn't appear when alloca.s or Makefile.in | ||
| 3552 | includes config.h. */ | ||
| 3553 | #ifndef NOT_C_CODE | ||
| 3554 | extern char *getenv (); | 3550 | extern char *getenv (); |
| 3555 | #endif | ||
| 3556 | 3551 | ||
| 3557 | /* These default definitions are good for almost all machines. | 3552 | /* These default definitions are good for almost all machines. |
| 3558 | The exceptions override them in m/MACHINE.h. */ | 3553 | The exceptions override them in m/MACHINE.h. */ |
| @@ -3593,17 +3588,18 @@ extern char *getenv (); | |||
| 3593 | # endif /* GCC. */ | 3588 | # endif /* GCC. */ |
| 3594 | #endif /* __P */ | 3589 | #endif /* __P */ |
| 3595 | 3590 | ||
| 3596 | /* Don't include "string.h" or <stdlib.h> in non-C code. */ | ||
| 3597 | #ifndef NOT_C_CODE | ||
| 3598 | #ifdef HAVE_STRING_H | 3591 | #ifdef HAVE_STRING_H |
| 3599 | #include "string.h" | 3592 | #include "string.h" |
| 3600 | #endif | 3593 | #endif |
| 3594 | |||
| 3601 | #ifdef HAVE_STRINGS_H | 3595 | #ifdef HAVE_STRINGS_H |
| 3602 | #include "strings.h" /* May be needed for bcopy & al. */ | 3596 | #include "strings.h" /* May be needed for bcopy & al. */ |
| 3603 | #endif | 3597 | #endif |
| 3598 | |||
| 3604 | #ifdef HAVE_STDLIB_H | 3599 | #ifdef HAVE_STDLIB_H |
| 3605 | #include <stdlib.h> | 3600 | #include <stdlib.h> |
| 3606 | #endif | 3601 | #endif |
| 3602 | |||
| 3607 | #ifdef HAVE_ALLOCA_H | 3603 | #ifdef HAVE_ALLOCA_H |
| 3608 | # include <alloca.h> | 3604 | # include <alloca.h> |
| 3609 | #elif defined __GNUC__ | 3605 | #elif defined __GNUC__ |
| @@ -3617,10 +3613,10 @@ extern "C" | |||
| 3617 | # endif | 3613 | # endif |
| 3618 | void *alloca (size_t); | 3614 | void *alloca (size_t); |
| 3619 | #endif | 3615 | #endif |
| 3616 | |||
| 3620 | #ifndef HAVE_SIZE_T | 3617 | #ifndef HAVE_SIZE_T |
| 3621 | typedef unsigned size_t; | 3618 | typedef unsigned size_t; |
| 3622 | #endif | 3619 | #endif |
| 3623 | #endif /* NOT_C_CODE */ | ||
| 3624 | 3620 | ||
| 3625 | /* Define HAVE_X_I18N if we have usable i18n support. */ | 3621 | /* Define HAVE_X_I18N if we have usable i18n support. */ |
| 3626 | 3622 | ||
diff --git a/nt/ChangeLog b/nt/ChangeLog index 6db0eb744c9..1f13c17cfb6 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-06-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * config.nt: Remove NOT_C_CODE tests, it is always true now. | ||
| 4 | |||
| 1 | 2010-05-13 Glenn Morris <rgm@gnu.org> | 5 | 2010-05-13 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * config.nt (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Remove undefs. | 7 | * config.nt (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Remove undefs. |
diff --git a/nt/config.nt b/nt/config.nt index 7ec98fb7666..c2a933ecbce 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -365,14 +365,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 365 | #ifndef WINDOWSNT | 365 | #ifndef WINDOWSNT |
| 366 | /* Some of the files of Emacs which are intended for use with other | 366 | /* Some of the files of Emacs which are intended for use with other |
| 367 | programs assume that if you have a config.h file, you must declare | 367 | programs assume that if you have a config.h file, you must declare |
| 368 | the type of getenv. | 368 | the type of getenv. */ |
| 369 | |||
| 370 | This declaration shouldn't appear when alloca.s or Makefile.in | ||
| 371 | includes config.h. */ | ||
| 372 | #ifndef NOT_C_CODE | ||
| 373 | extern char *getenv (); | 369 | extern char *getenv (); |
| 374 | #endif | 370 | #endif |
| 375 | #endif | ||
| 376 | 371 | ||
| 377 | #endif /* EMACS_CONFIG_H */ | 372 | #endif /* EMACS_CONFIG_H */ |
| 378 | 373 | ||
| @@ -414,8 +409,6 @@ extern char *getenv (); | |||
| 414 | #endif | 409 | #endif |
| 415 | #endif | 410 | #endif |
| 416 | 411 | ||
| 417 | /* Don't include <string.h> during configure. */ | ||
| 418 | #ifndef NOT_C_CODE | ||
| 419 | #ifdef HAVE_STRING_H | 412 | #ifdef HAVE_STRING_H |
| 420 | #include "string.h" | 413 | #include "string.h" |
| 421 | #endif | 414 | #endif |
| @@ -425,7 +418,6 @@ extern char *getenv (); | |||
| 425 | #ifdef HAVE_STDLIB_H | 418 | #ifdef HAVE_STDLIB_H |
| 426 | #include <stdlib.h> | 419 | #include <stdlib.h> |
| 427 | #endif | 420 | #endif |
| 428 | #endif | ||
| 429 | 421 | ||
| 430 | #ifndef NO_RETURN | 422 | #ifndef NO_RETURN |
| 431 | #if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR >= 5)) | 423 | #if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR >= 5)) |
| @@ -436,12 +428,10 @@ extern char *getenv (); | |||
| 436 | #endif | 428 | #endif |
| 437 | 429 | ||
| 438 | /* Redefine abort. */ | 430 | /* Redefine abort. */ |
| 439 | #ifndef NOT_C_CODE | ||
| 440 | #ifdef HAVE_NTGUI | 431 | #ifdef HAVE_NTGUI |
| 441 | #define abort w32_abort | 432 | #define abort w32_abort |
| 442 | void w32_abort (void) NO_RETURN; | 433 | void w32_abort (void) NO_RETURN; |
| 443 | #endif | 434 | #endif |
| 444 | #endif | ||
| 445 | 435 | ||
| 446 | /* Prevent accidental use of features unavailable in | 436 | /* Prevent accidental use of features unavailable in |
| 447 | older Windows versions we still support. */ | 437 | older Windows versions we still support. */ |
diff --git a/src/ChangeLog b/src/ChangeLog index 44807660415..24a7dc7de0b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-06-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h: | ||
| 4 | Remove NOT_C_CODE tests, it is always true now. | ||
| 5 | |||
| 1 | 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | Fix config.h includes. | 8 | Fix config.h includes. |
diff --git a/src/m/ia64.h b/src/m/ia64.h index 03ec37b4269..76e2bb87d80 100644 --- a/src/m/ia64.h +++ b/src/m/ia64.h | |||
| @@ -48,8 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | 48 | /* Convert that into an integer that is 100 for a load average of 1.0 */ |
| 49 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | 49 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) |
| 50 | 50 | ||
| 51 | #ifndef NOT_C_CODE | ||
| 52 | |||
| 53 | #ifdef REL_ALLOC | 51 | #ifdef REL_ALLOC |
| 54 | #ifndef _MALLOC_INTERNAL | 52 | #ifndef _MALLOC_INTERNAL |
| 55 | /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it | 53 | /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it |
| @@ -60,8 +58,6 @@ extern void r_alloc_free (); | |||
| 60 | #endif /* not _MALLOC_INTERNAL */ | 58 | #endif /* not _MALLOC_INTERNAL */ |
| 61 | #endif /* REL_ALLOC */ | 59 | #endif /* REL_ALLOC */ |
| 62 | 60 | ||
| 63 | #endif /* not NOT_C_CODE */ | ||
| 64 | |||
| 65 | #define HAVE_TEXT_START | 61 | #define HAVE_TEXT_START |
| 66 | 62 | ||
| 67 | /* arch-tag: 9b8e9fb2-2e49-4c22-b68f-11a488e77c66 | 63 | /* arch-tag: 9b8e9fb2-2e49-4c22-b68f-11a488e77c66 |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 674f00f1d09..f1ec7d99a4b 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -29,7 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | It sets the Lisp variable system-type. */ | 29 | It sets the Lisp variable system-type. */ |
| 30 | #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */ | 30 | #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */ |
| 31 | 31 | ||
| 32 | #ifndef NOT_C_CODE | ||
| 33 | #ifdef emacs | 32 | #ifdef emacs |
| 34 | #ifdef HAVE_LINUX_VERSION_H | 33 | #ifdef HAVE_LINUX_VERSION_H |
| 35 | #include <linux/version.h> | 34 | #include <linux/version.h> |
| @@ -40,7 +39,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 40 | #endif /* LINUX_VERSION_CODE >= 0x20400 */ | 39 | #endif /* LINUX_VERSION_CODE >= 0x20400 */ |
| 41 | #endif /* HAVE_LINUX_VERSION_H */ | 40 | #endif /* HAVE_LINUX_VERSION_H */ |
| 42 | #endif /* emacs */ | 41 | #endif /* emacs */ |
| 43 | #endif /* NOT_C_CODE */ | ||
| 44 | 42 | ||
| 45 | #if defined HAVE_GRANTPT | 43 | #if defined HAVE_GRANTPT |
| 46 | #define UNIX98_PTYS | 44 | #define UNIX98_PTYS |
diff --git a/src/s/gnu.h b/src/s/gnu.h index 4567f4e9f4f..95b8017ddc1 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -34,9 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | 34 | ||
| 35 | /* Some losing code fails to include this and then assumes | 35 | /* Some losing code fails to include this and then assumes |
| 36 | that because it is braindead that O_RDONLY==0. */ | 36 | that because it is braindead that O_RDONLY==0. */ |
| 37 | #ifndef NOT_C_CODE | ||
| 38 | #include <fcntl.h> | 37 | #include <fcntl.h> |
| 39 | #endif | ||
| 40 | 38 | ||
| 41 | #ifdef emacs | 39 | #ifdef emacs |
| 42 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ | 40 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index af8fd00a6bd..6f5b24bcfa6 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -31,9 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | /* Greg A. Woods <woods@weird.com> says we must include signal.h | 31 | /* Greg A. Woods <woods@weird.com> says we must include signal.h |
| 32 | before syssignal.h is included, to work around interface conflicts | 32 | before syssignal.h is included, to work around interface conflicts |
| 33 | that are handled with CPP __RENAME() macro in signal.h. */ | 33 | that are handled with CPP __RENAME() macro in signal.h. */ |
| 34 | #ifndef NOT_C_CODE | ||
| 35 | #include <signal.h> | 34 | #include <signal.h> |
| 36 | #endif | ||
| 37 | 35 | ||
| 38 | /* Don't close pty in process.c to make it as controlling terminal. | 36 | /* Don't close pty in process.c to make it as controlling terminal. |
| 39 | It is already a controlling terminal of subprocess, because we did | 37 | It is already a controlling terminal of subprocess, because we did |
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index 85499fb1124..864ace33d50 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h | |||
| @@ -77,9 +77,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 77 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. | 77 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
| 78 | But get <termio.h> first to make sure ttold.h doesn't interfere. | 78 | But get <termio.h> first to make sure ttold.h doesn't interfere. |
| 79 | And don't try to use SIGIO yet. */ | 79 | And don't try to use SIGIO yet. */ |
| 80 | #ifndef NOT_C_CODE | ||
| 81 | #include <sys/wait.h> | 80 | #include <sys/wait.h> |
| 82 | #endif | ||
| 83 | 81 | ||
| 84 | #ifdef emacs | 82 | #ifdef emacs |
| 85 | #include <sys/filio.h> | 83 | #include <sys/filio.h> |