aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-05-30 22:08:37 -0700
committerPaul Eggert2012-05-30 22:08:37 -0700
commitba93a18774352c97d6dd73c73141cbff6305581b (patch)
treeb53eed3c4caf927d4099fcddc1c97d286dfd13e5 /src
parent500fcedc32199750ee61ce6caba3914fe204e629 (diff)
downloademacs-ba93a18774352c97d6dd73c73141cbff6305581b.tar.gz
emacs-ba93a18774352c97d6dd73c73141cbff6305581b.zip
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".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/s/hpux10-20.h6
-rw-r--r--src/xfns.c8
-rw-r--r--src/xterm.c5
-rw-r--r--src/xterm.h2
5 files changed, 14 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 767dfa47036..32bd9e2d18c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12012-05-31 Paul Eggert <eggert@cs.ucla.edu>
2
3 Remove obsolete '#define static' cruft.
4 * s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef.
5 This #undef was "temporary" in 2000; it is no longer needed
6 now that '#define static' has gone away.
7 * xfns.c, xterm.h (gray_bitmap_width, gray_bitmap_height)
8 (gray_bitmap_bits): Remove; no longer needed.
9 All uses replaced with definiens.
10 * xterm.c: Include "bitmaps/gray.xbm".
11
12012-05-30 Paul Eggert <eggert@cs.ucla.edu> 122012-05-30 Paul Eggert <eggert@cs.ucla.edu>
2 13
3 Clean up __executable_start, monstartup when --enable-profiling. 14 Clean up __executable_start, monstartup when --enable-profiling.
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index 3e25b1bd0d9..f1ae50c533a 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -95,12 +95,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
95#define HAVE_XRMSETDATABASE 95#define HAVE_XRMSETDATABASE
96#endif 96#endif
97 97
98/* 2000-11-21: Temporarily disable Unix 98 large file support found by
99 configure. It fails on HPUX 11, at least, because it enables
100 header sections which lose when `static' is defined away, as it is
101 on HP-UX. (You get duplicate symbol errors on linking). */
102#undef _FILE_OFFSET_BITS
103
104/* Conservative garbage collection has not been tested, so for now 98/* Conservative garbage collection has not been tested, so for now
105 play it safe and stick with the old-fashioned way of marking. */ 99 play it safe and stick with the old-fashioned way of marking. */
106#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE 100#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
diff --git a/src/xfns.c b/src/xfns.c
index 767507805fb..1f1d3d3ef0c 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -126,14 +126,6 @@ extern LWLIB_ID widget_id_tick;
126 126
127#define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) 127#define MAXREQUEST(dpy) (XMaxRequestSize (dpy))
128 128
129/* The gray bitmap `bitmaps/gray'. This is done because xterm.c uses
130 it, and including `bitmaps/gray' more than once is a problem when
131 config.h defines `static' as an empty replacement string. */
132
133int gray_bitmap_width = gray_width;
134int gray_bitmap_height = gray_height;
135char *gray_bitmap_bits = gray_bits;
136
137/* Nonzero if using X. */ 129/* Nonzero if using X. */
138 130
139int x_in_use; 131int x_in_use;
diff --git a/src/xterm.c b/src/xterm.c
index 0ebaf87c252..81726917efa 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -139,6 +139,8 @@ extern void _XEditResCheckMessages (Widget, XtPointer, XEvent *, Boolean *);
139#endif 139#endif
140#endif 140#endif
141 141
142#include "bitmaps/gray.xbm"
143
142/* Default to using XIM if available. */ 144/* Default to using XIM if available. */
143#ifdef USE_XIM 145#ifdef USE_XIM
144int use_xim = 1; 146int use_xim = 1;
@@ -10383,8 +10385,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10383 { 10385 {
10384 dpyinfo->gray 10386 dpyinfo->gray
10385 = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window, 10387 = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window,
10386 gray_bitmap_bits, 10388 gray_bits, gray_width, gray_height,
10387 gray_bitmap_width, gray_bitmap_height,
10388 1, 0, 1); 10389 1, 0, 1);
10389 } 10390 }
10390 10391
diff --git a/src/xterm.h b/src/xterm.h
index 8919b648371..68e0372b05a 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -939,8 +939,6 @@ void x_handle_property_notify (XPropertyEvent *);
939struct frame *check_x_frame (Lisp_Object); 939struct frame *check_x_frame (Lisp_Object);
940EXFUN (Fx_display_grayscale_p, 1); 940EXFUN (Fx_display_grayscale_p, 1);
941extern void x_free_gcs (struct frame *); 941extern void x_free_gcs (struct frame *);
942extern int gray_bitmap_width, gray_bitmap_height;
943extern char *gray_bitmap_bits;
944 942
945/* From xrdb.c. */ 943/* From xrdb.c. */
946 944