diff options
| author | Glenn Morris | 2012-07-10 15:04:14 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-10 15:04:14 -0400 |
| commit | c59592b32f5b5808c12720bfd37ea73b473fa1db (patch) | |
| tree | fa7ec1092246364913aa7e54aebfb09c5a48ee85 /src | |
| parent | 7d7bbefd049fc22cf3bf333592abf57a3bde8766 (diff) | |
| download | emacs-c59592b32f5b5808c12720bfd37ea73b473fa1db.tar.gz emacs-c59592b32f5b5808c12720bfd37ea73b473fa1db.zip | |
* dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]: Clarify fallback case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/dispnew.c | 15 |
2 files changed, 13 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 677b78ccbfb..84703fcdc2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]: | ||
| 4 | Clarify fallback case. | ||
| 5 | |||
| 1 | 2012-07-10 Dmitry Antipov <dmantipov@yandex.ru> | 6 | 2012-07-10 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 7 | ||
| 3 | Use XCAR and XCDR instead of Fcar and Fcdr where possible. | 8 | Use XCAR and XCDR instead of Fcar and Fcdr where possible. |
diff --git a/src/dispnew.c b/src/dispnew.c index 5c6ea0123be..0d34147e035 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -65,28 +65,29 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 65 | /* Get number of chars of output now in the buffer of a stdio stream. | 65 | /* Get number of chars of output now in the buffer of a stdio stream. |
| 66 | This ought to be built in stdio, but it isn't. Some s- files | 66 | This ought to be built in stdio, but it isn't. Some s- files |
| 67 | override this because their stdio internals differ. */ | 67 | override this because their stdio internals differ. */ |
| 68 | |||
| 69 | #ifdef __GNU_LIBRARY__ | 68 | #ifdef __GNU_LIBRARY__ |
| 70 | 69 | ||
| 71 | /* The s- file might have overridden the definition with one that | 70 | /* The s- file might have overridden the definition with one that |
| 72 | works for the system's C library. But we are using the GNU C | 71 | works for the system's C library. But we are using the GNU C |
| 73 | library, so this is the right definition for every system. */ | 72 | library, so this is the right definition for every system. */ |
| 74 | |||
| 75 | #ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT | 73 | #ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT |
| 76 | #define PENDING_OUTPUT_COUNT GNU_LIBRARY_PENDING_OUTPUT_COUNT | 74 | #define PENDING_OUTPUT_COUNT GNU_LIBRARY_PENDING_OUTPUT_COUNT |
| 77 | #else | 75 | #else |
| 78 | #undef PENDING_OUTPUT_COUNT | 76 | #undef PENDING_OUTPUT_COUNT |
| 79 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) | 77 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer) |
| 80 | #endif | 78 | #endif |
| 81 | #else /* not __GNU_LIBRARY__ */ | 79 | |
| 82 | #if !defined (PENDING_OUTPUT_COUNT) && HAVE_STDIO_EXT_H && HAVE___FPENDING | 80 | /* not __GNU_LIBRARY__ and no PENDING_OUTPUT_COUNT defined */ |
| 81 | #elif !defined (PENDING_OUTPUT_COUNT) | ||
| 82 | |||
| 83 | #if HAVE_STDIO_EXT_H && HAVE___FPENDING | ||
| 83 | #include <stdio_ext.h> | 84 | #include <stdio_ext.h> |
| 84 | #define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE) | 85 | #define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE) |
| 85 | #endif | 86 | #else |
| 86 | #ifndef PENDING_OUTPUT_COUNT | ||
| 87 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) | 87 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) |
| 88 | #endif | 88 | #endif |
| 89 | #endif /* not __GNU_LIBRARY__ */ | 89 | |
| 90 | #endif /* not __GNU_LIBRARY__ and no PENDING_OUTPUT_COUNT defined */ | ||
| 90 | 91 | ||
| 91 | #if defined (HAVE_TERM_H) && defined (GNU_LINUX) | 92 | #if defined (HAVE_TERM_H) && defined (GNU_LINUX) |
| 92 | #include <term.h> /* for tgetent */ | 93 | #include <term.h> /* for tgetent */ |