diff options
| author | Glenn Morris | 2012-08-06 16:22:22 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-08-06 16:22:22 -0400 |
| commit | 1c6f11f42ac2afa209124ce06e64b7a0461d7bdd (patch) | |
| tree | 7932edfc1548795b2217cb737843c7781e3bf3a9 /src | |
| parent | ea3768613f759f3802a9dd9826b238c46b46ce67 (diff) | |
| download | emacs-1c6f11f42ac2afa209124ce06e64b7a0461d7bdd.tar.gz emacs-1c6f11f42ac2afa209124ce06e64b7a0461d7bdd.zip | |
Remove GNU_LIBRARY_PENDING_OUTPUT_COUNT
* configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
(PENDING_OUTPUT_COUNT): Absorb GNU_LIBRARY_PENDING_OUTPUT_COUNT.
(DISPNEW_NEEDS_STDIO_EXT): New define.
* src/dispnew.c (GNU_LIBRARY_PENDING_OUTPUT_COUNT, PENDING_OUTPUT_COUNT):
Let configure handle it.
(stdio_ext.h) [DISPNEW_NEEDS_STDIO_EXT]: Include it.
* nt/config.nt (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
(PENDING_OUTPUT_COUNT): Define it as dispnew.c used to.
* admin/CPP-DEFINES (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/dispnew.c | 25 |
2 files changed, 7 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d08802f5f56..ec3f08fc6a0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-08-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (GNU_LIBRARY_PENDING_OUTPUT_COUNT, PENDING_OUTPUT_COUNT): | ||
| 4 | Let configure handle it. | ||
| 5 | (stdio_ext.h) [DISPNEW_NEEDS_STDIO_EXT]: Include it. | ||
| 6 | |||
| 1 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | 7 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 8 | ||
| 3 | Use GCALIGNMENT where appropriate. | 9 | Use GCALIGNMENT where appropriate. |
diff --git a/src/dispnew.c b/src/dispnew.c index 10206ecd43b..d06ab594b2f 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -65,33 +65,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 65 | #include "systime.h" | 65 | #include "systime.h" |
| 66 | #include <errno.h> | 66 | #include <errno.h> |
| 67 | 67 | ||
| 68 | /* Get number of chars of output now in the buffer of a stdio stream. | 68 | #ifdef DISPNEW_NEEDS_STDIO_EXT |
| 69 | This ought to be built in stdio, but it isn't. Some s- files | ||
| 70 | override this because their stdio internals differ. */ | ||
| 71 | #ifdef __GNU_LIBRARY__ | ||
| 72 | |||
| 73 | /* The s- file might have overridden the definition with one that | ||
| 74 | works for the system's C library. But we are using the GNU C | ||
| 75 | library, so this is the right definition for every system. */ | ||
| 76 | #ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT | ||
| 77 | #define PENDING_OUTPUT_COUNT GNU_LIBRARY_PENDING_OUTPUT_COUNT | ||
| 78 | #else | ||
| 79 | #undef PENDING_OUTPUT_COUNT | ||
| 80 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) | ||
| 81 | #endif | ||
| 82 | |||
| 83 | /* not __GNU_LIBRARY__ and no PENDING_OUTPUT_COUNT defined */ | ||
| 84 | #elif !defined (PENDING_OUTPUT_COUNT) | ||
| 85 | |||
| 86 | #if HAVE_STDIO_EXT_H && HAVE___FPENDING | ||
| 87 | #include <stdio_ext.h> | 69 | #include <stdio_ext.h> |
| 88 | #define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE) | ||
| 89 | #else | ||
| 90 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) | ||
| 91 | #endif | 70 | #endif |
| 92 | 71 | ||
| 93 | #endif /* not __GNU_LIBRARY__ and no PENDING_OUTPUT_COUNT defined */ | ||
| 94 | |||
| 95 | #if defined (HAVE_TERM_H) && defined (GNU_LINUX) | 72 | #if defined (HAVE_TERM_H) && defined (GNU_LINUX) |
| 96 | #include <term.h> /* for tgetent */ | 73 | #include <term.h> /* for tgetent */ |
| 97 | #endif | 74 | #endif |