mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Problem reported by Jonathan Mitchell (bug#81554). Also, clean up the const situation elsewhere, e.g., with Motif toolkit, and with no X toolkit. * configure.ac (_CONST_X_STRING): New macro, when using X11. This causes most X11 include files to use ‘const char *’ for readonly strings, rather than the ‘char *’ that was needed for K&R C. * lwlib/lwlib-Xaw.c (xaw_generic_callback): * lwlib/lwlib.c (lw_get_widget_value_for_widget) (lw_internal_update_other_instances): * lwlib/xlwmenu.c (openXftFont): * src/xdisp.c (update_redisplay_ticks): Use char const *, not char *, for readonly strings. * lwlib/lwlib-Xm.c (update_one_menu_entry): A cast is needed now that XtName returns char const *, in a context where Motif wants char *, not String. * lwlib/xlwmenu.c (openXftFont): Put newly allocated string into its own local variable, so that main local can be char const *. * src/emacs.c (android_emacs_init): * src/xterm.c (x_term_init): Pacify both -Wuseless-cast and -Wdiscarded-qualifiers. * src/widget.c (resources, emacsFrameClassRec): * src/xdisp.c (update_redisplay_ticks): * src/xfns.c (x_window): * src/xmenu.c (create_and_show_popup_menu): * src/xterm.c (emacs_options) [USE_X_TOOLKIT]: Omit now-useless casts. * src/xfns.c (Fx_file_dialog): Use char *, not String, for a mutable string. |
||
|---|---|---|
| .. | ||
| ChangeLog.1 | ||
| COPYING | ||
| deps.mk | ||
| lwlib-int.h | ||
| lwlib-utils.c | ||
| lwlib-utils.h | ||
| lwlib-widget.h | ||
| lwlib-Xaw.c | ||
| lwlib-Xaw.h | ||
| lwlib-Xlw.c | ||
| lwlib-Xlw.h | ||
| lwlib-Xm.c | ||
| lwlib-Xm.h | ||
| lwlib.c | ||
| lwlib.h | ||
| Makefile.in | ||
| README | ||
| xlwmenu.c | ||
| xlwmenu.h | ||
| xlwmenuP.h | ||
This subdirectory contains the Lucid Widget Library (lwlib), which provides a uniform interface to a few different X toolkits. The library was written by Lucid, Inc and released under the terms of the GPL version 1 (or later). It is not considered part of GNU Emacs. This version of the library differs from the original as described in the ChangeLog.1 file.