aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac12
-rw-r--r--src/ChangeLog3
-rw-r--r--src/s/cygwin.h2
-rw-r--r--src/s/darwin.h3
-rw-r--r--src/s/freebsd.h2
-rw-r--r--src/s/netbsd.h2
-rw-r--r--src/s/unixware.h2
8 files changed, 17 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 4504739928b..e3b546d32f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
12012-07-10 Glenn Morris <rgm@gnu.org> 12012-07-10 Glenn Morris <rgm@gnu.org>
2 2
3 * configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s. 3 * configure.ac (DATA_START, DATA_SEG_BITS, PENDING_OUTPUT_COUNT):
4 Move here from src/s.
4 5
52012-07-09 Andreas Schwab <schwab@linux-m68k.org> 62012-07-09 Andreas Schwab <schwab@linux-m68k.org>
6 7
diff --git a/configure.ac b/configure.ac
index 20b149f58e2..028706af8e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3154,7 +3154,19 @@ AH_TEMPLATE(DATA_SEG_BITS, [Extra bits to be or'd in with any pointers
3154stored in a Lisp_Object.]) 3154stored in a Lisp_Object.])
3155dnl if Emacs uses fewer than 32 bits for the value field of a LISP_OBJECT. 3155dnl if Emacs uses fewer than 32 bits for the value field of a LISP_OBJECT.
3156 3156
3157dnl Used in dispnew.c
3158AH_TEMPLATE(PENDING_OUTPUT_COUNT, [Number of chars of output in the
3159buffer of a stdio stream.])
3160
3157case $opsys in 3161case $opsys in
3162 cygwin | darwin | freebsd | netbsd | openbsd )
3163 AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->_p - (FILE)->_bf._base)])
3164 ;;
3165
3166 unixware)
3167 AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->__ptr - (FILE)->__base)])
3168 ;;
3169
3158 gnu) 3170 gnu)
3159 dnl libc defines data_start. 3171 dnl libc defines data_start.
3160 AC_DEFINE(DATA_START, [({ extern int data_start; (char *) &data_start; })]) 3172 AC_DEFINE(DATA_START, [({ extern int data_start; (char *) &data_start; })])
diff --git a/src/ChangeLog b/src/ChangeLog
index cbfc1245c13..de0f729f915 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -11,6 +11,9 @@
11 11
122012-07-10 Glenn Morris <rgm@gnu.org> 122012-07-10 Glenn Morris <rgm@gnu.org>
13 13
14 * s/cygwin.h, s/darwin.h, s/freebsd.h, s/netbsd.h, s/unixware.h:
15 Move PENDING_OUTPUT_COUNT definition to configure.
16
14 * s/irix6-5.h (DATA_START, DATA_SEG_BITS): 17 * s/irix6-5.h (DATA_START, DATA_SEG_BITS):
15 * s/hpux10-20.h (DATA_SEG_BITS, DATA_START): 18 * s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
16 * s/gnu.h (DATA_START): Move definitions to configure. 19 * s/gnu.h (DATA_START): Move definitions to configure.
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index 9b437341324..0bbdab0cca1 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -74,8 +74,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
74/* Used in various places to enable cygwin-specific code changes. */ 74/* Used in various places to enable cygwin-specific code changes. */
75#define CYGWIN 1 75#define CYGWIN 1
76 76
77#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
78
79#define HAVE_SOCKETS 77#define HAVE_SOCKETS
80 78
81/* Emacs supplies its own malloc, but glib (part of Gtk+) calls 79/* Emacs supplies its own malloc, but glib (part of Gtk+) calls
diff --git a/src/s/darwin.h b/src/s/darwin.h
index b042630ee91..6b3e680c5d9 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -92,9 +92,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
92 also the name of a Mach system call. */ 92 also the name of a Mach system call. */
93#define init_process emacs_init_process 93#define init_process emacs_init_process
94 94
95/* Used in dispnew.c. Copied from freebsd.h. */
96#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
97
98/* System uses OXTABS instead of the expected TAB3. (Copied from bsd386.h.) */ 95/* System uses OXTABS instead of the expected TAB3. (Copied from bsd386.h.) */
99#define TAB3 OXTABS 96#define TAB3 OXTABS
100 97
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 05be07695cb..04e9a19bdf8 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -23,8 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
23/* Get most of the stuff from bsd-common */ 23/* Get most of the stuff from bsd-common */
24#include "bsd-common.h" 24#include "bsd-common.h"
25 25
26#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
27
28/* This silences a few compilation warnings. */ 26/* This silences a few compilation warnings. */
29#undef BSD_SYSTEM 27#undef BSD_SYSTEM
30#if __FreeBSD__ == 1 28#if __FreeBSD__ == 1
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index ce3b2afa1bb..23e72541920 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -21,8 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21/* Get most of the stuff from bsd-common. */ 21/* Get most of the stuff from bsd-common. */
22#include "bsd-common.h" 22#include "bsd-common.h"
23 23
24#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
25
26#define DEFAULT_SOUND_DEVICE "/dev/audio" 24#define DEFAULT_SOUND_DEVICE "/dev/audio"
27 25
28/* Greg A. Woods <woods@weird.com> says we must include signal.h 26/* Greg A. Woods <woods@weird.com> says we must include signal.h
diff --git a/src/s/unixware.h b/src/s/unixware.h
index 1f35287f6d1..e9ebb63f30a 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -44,8 +44,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
44 pty_name[sizeof(pty_name) - 1] = 0; \ 44 pty_name[sizeof(pty_name) - 1] = 0; \
45 } 45 }
46 46
47#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)
48
49/* Conservative garbage collection has not been tested, so for now 47/* Conservative garbage collection has not been tested, so for now
50 play it safe and stick with the old-fashioned way of marking. */ 48 play it safe and stick with the old-fashioned way of marking. */
51#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE 49#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE