]> git.eshelyaron.com Git - emacs.git/commitdiff
Move PENDING_OUTPUT_COUNT from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Tue, 10 Jul 2012 07:37:17 +0000 (00:37 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 10 Jul 2012 07:37:17 +0000 (00:37 -0700)
* configure.ac (PENDING_OUTPUT_COUNT): Move here from src/s.

* src/s/cygwin.h, src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
* src/s/unixware.h: Move PENDING_OUTPUT_COUNT definition to configure.

ChangeLog
configure.ac
src/ChangeLog
src/s/cygwin.h
src/s/darwin.h
src/s/freebsd.h
src/s/netbsd.h
src/s/unixware.h

index 4504739928be5c7c2c7af56e447cedd1d45a0c85..e3b546d32f4e073237fed79c64916d15f2638f64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2012-07-10  Glenn Morris  <rgm@gnu.org>
 
-       * configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s.
+       * configure.ac (DATA_START, DATA_SEG_BITS, PENDING_OUTPUT_COUNT):
+       Move here from src/s.
 
 2012-07-09  Andreas Schwab  <schwab@linux-m68k.org>
 
index 20b149f58e2a6b68fbb6bc41e515538873da98ca..028706af8e59406c4ce351df66d8b6fd353e6743 100644 (file)
@@ -3154,7 +3154,19 @@ AH_TEMPLATE(DATA_SEG_BITS, [Extra bits to be or'd in with any pointers
 stored in a Lisp_Object.])
 dnl if Emacs uses fewer than 32 bits for the value field of a LISP_OBJECT.
 
+dnl Used in dispnew.c
+AH_TEMPLATE(PENDING_OUTPUT_COUNT, [Number of chars of output in the
+buffer of a stdio stream.])
+
 case $opsys in
+  cygwin | darwin | freebsd | netbsd | openbsd )
+    AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->_p - (FILE)->_bf._base)])
+    ;;
+
+  unixware)
+    AC_DEFINE(PENDING_OUTPUT_COUNT(FILE), [((FILE)->__ptr - (FILE)->__base)])
+    ;;
+
   gnu)
     dnl libc defines data_start.
     AC_DEFINE(DATA_START, [({ extern int data_start; (char *) &data_start; })])
index cbfc1245c13d4a2c425e580561ca9277a9dad4b6..de0f729f915c96ae8731ac147091f2dac421ff04 100644 (file)
@@ -11,6 +11,9 @@
 
 2012-07-10  Glenn Morris  <rgm@gnu.org>
 
+       * s/cygwin.h, s/darwin.h, s/freebsd.h, s/netbsd.h, s/unixware.h:
+       Move PENDING_OUTPUT_COUNT definition to configure.
+
        * s/irix6-5.h (DATA_START, DATA_SEG_BITS):
        * s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
        * s/gnu.h (DATA_START): Move definitions to configure.
index 9b437341324523b8c75fbd7cf724903749f1db89..0bbdab0cca136f2c74e0474a3dd5024fea5b63c7 100644 (file)
@@ -74,8 +74,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Used in various places to enable cygwin-specific code changes.  */
 #define CYGWIN 1
 
-#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
-
 #define HAVE_SOCKETS
 
 /* Emacs supplies its own malloc, but glib (part of Gtk+) calls
index b042630ee91a34d1a11ba22a1d25c9bb2a081762..6b3e680c5d94408699eb05f933af5ac08da40da1 100644 (file)
@@ -92,9 +92,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    also the name of a Mach system call.  */
 #define init_process emacs_init_process
 
-/* Used in dispnew.c.  Copied from freebsd.h. */
-#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
-
 /* System uses OXTABS instead of the expected TAB3.  (Copied from bsd386.h.)  */
 #define TAB3 OXTABS
 
index 05be07695cb89ad60a62ee113dc0a4d910129ccc..04e9a19bdf865eae24ba5e131b5889e9c83bd920 100644 (file)
@@ -23,8 +23,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Get most of the stuff from bsd-common */
 #include "bsd-common.h"
 
-#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
-
 /* This silences a few compilation warnings.  */
 #undef BSD_SYSTEM
 #if __FreeBSD__ == 1
index ce3b2afa1bb6193e4f75d0dbd5a16dbff852287f..23e72541920614b0452678a9725b6e71e785147c 100644 (file)
@@ -21,8 +21,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Get most of the stuff from bsd-common.  */
 #include "bsd-common.h"
 
-#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
-
 #define DEFAULT_SOUND_DEVICE "/dev/audio"
 
 /* Greg A. Woods <woods@weird.com> says we must include signal.h
index 1f35287f6d13be484d253e1fb79af8e7b991c97f..e9ebb63f30ac70ff5b4e3269075eaa8813e0bf5d 100644 (file)
@@ -44,8 +44,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
     pty_name[sizeof(pty_name) - 1] = 0;                \
   }
 
-#define        PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)
-
 /* Conservative garbage collection has not been tested, so for now
    play it safe and stick with the old-fashioned way of marking.  */
 #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE