emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r108434: Remove obsolete '#define sta


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108434: Remove obsolete '#define static' cruft.
Date: Wed, 30 May 2012 22:08:37 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108434
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Wed 2012-05-30 22:08:37 -0700
message:
  Remove obsolete '#define static' cruft.
  
  * etc/PROBLEMS: Remove obsolete '#define static' cruft.
  * lwlib/xlwmenu.c [emacs]: Include "bitmaps/gray.xbm".
  (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]:
  Remove; all uses replaced with definiens.
  * src/s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef.
  This #undef was "temporary" in 2000; it is no longer needed
  now that '#define static' has gone away.
  * src/xfns.c, src/xterm.h (gray_bitmap_width, gray_bitmap_height)
  (gray_bitmap_bits): Remove; no longer needed.
  All uses replaced with definiens.
  * src/xterm.c: Include "bitmaps/gray.xbm".
modified:
  etc/ChangeLog
  etc/PROBLEMS
  lwlib/ChangeLog
  lwlib/xlwmenu.c
  src/ChangeLog
  src/s/hpux10-20.h
  src/xfns.c
  src/xterm.c
  src/xterm.h
=== modified file 'etc/ChangeLog'
--- a/etc/ChangeLog     2012-05-07 22:53:17 +0000
+++ b/etc/ChangeLog     2012-05-31 05:08:37 +0000
@@ -1,3 +1,7 @@
+2012-05-31  Paul Eggert  <address@hidden>
+
+       * PROBLEMS: Remove obsolete '#define static' cruft.
+
 2012-05-07  Glenn Morris  <address@hidden>
 
        * forms/forms-d2.el, forms/forms-pass.el: Move here from ../lisp.

=== modified file 'etc/PROBLEMS'
--- a/etc/PROBLEMS      2012-04-04 07:30:02 +0000
+++ b/etc/PROBLEMS      2012-05-31 05:08:37 +0000
@@ -2778,19 +2778,11 @@
 
 *** The dumped Emacs crashes when run, trying to write pure data.
 
-Two causes have been seen for such problems.
-
-1) On a system where getpagesize is not a system call, it is defined
+On a system where getpagesize is not a system call, it is defined
 as a macro.  If the definition (in both unex*.c and malloc.c) is wrong,
 it can cause problems like this.  You might be able to find the correct
 value in the man page for a.out (5).
 
-2) Some systems allocate variables declared static among the
-initialized variables.  Emacs makes all initialized variables in most
-of its files pure after dumping, but the variables declared static and
-not initialized are not supposed to be pure.  On these systems you
-may need to add "#define static" to config.h.
-
 * Runtime problems on legacy systems
 
 This section covers bugs reported on very old hardware or software.

=== modified file 'lwlib/ChangeLog'
--- a/lwlib/ChangeLog   2012-04-18 16:45:13 +0000
+++ b/lwlib/ChangeLog   2012-05-31 05:08:37 +0000
@@ -1,3 +1,10 @@
+2012-05-31  Paul Eggert  <address@hidden>
+
+       Remove obsolete '#define static' cruft.
+       * xlwmenu.c [emacs]: Include "bitmaps/gray.xbm".
+       (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]:
+       Remove; all uses replaced with definiens.
+
 2012-04-18  Paul Eggert  <address@hidden>
 
        configure: new option --enable-gcc-warnings (Bug#11207)

=== modified file 'lwlib/xlwmenu.c'
--- a/lwlib/xlwmenu.c   2012-01-19 07:21:25 +0000
+++ b/lwlib/xlwmenu.c   2012-05-31 05:08:37 +0000
@@ -49,22 +49,12 @@
 
 #ifdef emacs
 
-/* Defined in xfns.c.  When config.h defines `static' as empty, we get
-   redefinition errors when gray_bitmap is included more than once, so
-   we're referring to the one include in xfns.c here.  */
-
-extern int gray_bitmap_width;
-extern int gray_bitmap_height;
-extern char *gray_bitmap_bits;
-
 #include <xterm.h>
+#include "bitmaps/gray.xbm"
 
 #else /* not emacs */
 
 #include <X11/bitmaps/gray>
-#define gray_bitmap_width      gray_width
-#define gray_bitmap_height     gray_height
-#define gray_bitmap_bits       gray_bits
 
 #endif /* not emacs */
 
@@ -1918,8 +1908,8 @@
   mw->menu.cursor = mw->menu.cursor_shape;
 
   mw->menu.gray_pixmap
-    = XCreatePixmapFromBitmapData (display, window, gray_bitmap_bits,
-                                  gray_bitmap_width, gray_bitmap_height,
+    = XCreatePixmapFromBitmapData (display, window, gray_bits,
+                                  gray_width, gray_height,
                                   (unsigned long)1, (unsigned long)0, 1);
 
 #ifdef HAVE_XFT

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-05-30 19:23:37 +0000
+++ b/src/ChangeLog     2012-05-31 05:08:37 +0000
@@ -1,3 +1,14 @@
+2012-05-31  Paul Eggert  <address@hidden>
+
+       Remove obsolete '#define static' cruft.
+       * s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef.
+       This #undef was "temporary" in 2000; it is no longer needed
+       now that '#define static' has gone away.
+       * xfns.c, xterm.h (gray_bitmap_width, gray_bitmap_height)
+       (gray_bitmap_bits): Remove; no longer needed.
+       All uses replaced with definiens.
+       * xterm.c: Include "bitmaps/gray.xbm".
+
 2012-05-30  Paul Eggert  <address@hidden>
 
        Clean up __executable_start, monstartup when --enable-profiling.

=== modified file 'src/s/hpux10-20.h'
--- a/src/s/hpux10-20.h 2012-04-14 06:18:49 +0000
+++ b/src/s/hpux10-20.h 2012-05-31 05:08:37 +0000
@@ -95,12 +95,6 @@
 #define HAVE_XRMSETDATABASE
 #endif
 
-/* 2000-11-21: Temporarily disable Unix 98 large file support found by
-   configure.  It fails on HPUX 11, at least, because it enables
-   header sections which lose when `static' is defined away, as it is
-   on HP-UX.  (You get duplicate symbol errors on linking). */
-#undef _FILE_OFFSET_BITS
-
 /* 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

=== modified file 'src/xfns.c'
--- a/src/xfns.c        2012-05-25 18:19:24 +0000
+++ b/src/xfns.c        2012-05-31 05:08:37 +0000
@@ -126,14 +126,6 @@
 
 #define MAXREQUEST(dpy) (XMaxRequestSize (dpy))
 
-/* The gray bitmap `bitmaps/gray'.  This is done because xterm.c uses
-   it, and including `bitmaps/gray' more than once is a problem when
-   config.h defines `static' as an empty replacement string.  */
-
-int gray_bitmap_width = gray_width;
-int gray_bitmap_height = gray_height;
-char *gray_bitmap_bits = gray_bits;
-
 /* Nonzero if using X.  */
 
 int x_in_use;

=== modified file 'src/xterm.c'
--- a/src/xterm.c       2012-05-25 18:19:24 +0000
+++ b/src/xterm.c       2012-05-31 05:08:37 +0000
@@ -139,6 +139,8 @@
 #endif
 #endif
 
+#include "bitmaps/gray.xbm"
+
 /* Default to using XIM if available.  */
 #ifdef USE_XIM
 int use_xim = 1;
@@ -10383,8 +10385,7 @@
   {
     dpyinfo->gray
       = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window,
-                                    gray_bitmap_bits,
-                                    gray_bitmap_width, gray_bitmap_height,
+                                    gray_bits, gray_width, gray_height,
                                     1, 0, 1);
   }
 

=== modified file 'src/xterm.h'
--- a/src/xterm.h       2012-05-25 18:19:24 +0000
+++ b/src/xterm.h       2012-05-31 05:08:37 +0000
@@ -939,8 +939,6 @@
 struct frame *check_x_frame (Lisp_Object);
 EXFUN (Fx_display_grayscale_p, 1);
 extern void x_free_gcs (struct frame *);
-extern int gray_bitmap_width, gray_bitmap_height;
-extern char *gray_bitmap_bits;
 
 /* From xrdb.c.  */
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]