summaryrefslogtreecommitdiff
path: root/lwlib
Commit message (Collapse)AuthorAgeFilesLines
* Use ASCII tests for character types.Paul Eggert2012-08-164-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add c-ctype. * lwlib/lwlib-Xaw.c, lwlib/lwlib.c, lwlib/xlwmenu.c: Don't include <ctype.h>; no longer needed. * lwlib/lwlib-Xaw.c (openFont): * lwlib/xlwmenu.c (openXftFont): Test just for ASCII digits. * src/category.c, src/dispnew.c, src/doprnt.c, src/editfns.c, src/syntax.c * src/term.c, src/xfns.c, src/xterm.c: Don't include <ctype.h>; was not needed. * src/charset.c, src/doc.c, src/fileio.c, src/font.c, src/frame.c: * src/gtkutil.c, src/image.c, src/sysdep.c, src/xfaces.c: Include <c-ctype.h> instead of <ctype.h>. * src/nsterm.m: Include <c-ctype.h>. * src/charset.c (read_hex): * src/doc.c (Fsnarf_documentation): * src/fileio.c (IS_DRIVE) [WINDOWSNT]: (DRIVE_LETTER) [DOS_NT]: (Ffile_name_directory, Fexpand_file_name) (Fsubstitute_in_file_name): * src/font.c (font_parse_xlfd, font_parse_fcname): * src/frame.c (x_set_font_backend): * src/gtkutil.c (xg_get_font): * src/image.c (xbm_scan, xpm_scan, pbm_scan_number): * src/nsimage.m (hexchar): * src/nsterm.m (ns_xlfd_to_fontname): * src/sysdep.c (system_process_attributes): * src/xfaces.c (hash_string_case_insensitive): Use C-locale tests instead of locale-specific tests for character types, since we want the ASCII interpretation here, not the interpretation suitable for whatever happens to be the current locale.
* * lwlib/Makefile.in (config_h): Add conf_post.h.Glenn Morris2012-08-012-1/+5
|
* Miscellaneous fixes for non-default X toolkits.Dmitry Antipov2012-07-312-2/+6
| | | | | | | | | | | * configure.ac (MOTIF): Check for /usr/include/openmotif and /usr/(lib|lib64)/openmotif if --with-x-toolkit=motif. * lwlib/lwlib-Xm.c (make_menu_in_widget): Remove unused variable. * src/xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings. * src/xterm.c (x_frame_of_widget): Remove redundant prototype. Move under #ifdef USE_LUCID. (x_create_toolkit_scroll_bar): Adjust scroll_bar_name definition and usage to avoid warnings.
* Fix typos in ChangeLogs.Juanma Barranquero2012-07-141-1/+1
|
* Use c_strcasecmp for ASCII case-insensitive comparison.Paul Eggert2012-07-062-26/+8
| | | | Fixes: debbugs:11786
* Clean out last vestiges of the old HAVE_CONFIG_H stuff.Paul Eggert2012-06-258-30/+25
|
* * configure.in (AC_CHECK_FUNCS): Detect library functionsDmitry Antipov2012-06-252-3/+12
| | | | | | | | | | | strcasecmp and strncasecmp. * lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to library functions strcasecmp and strncasecmp if available. * lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which may be defined to library function strcasecmp if available. * src/dispextern.c (xstrcasecmp): Define to library function strcasecmp if available. * src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
* Switch from NO_RETURN to C11's _Noreturn.Paul Eggert2012-06-242-2/+8
| | | | Fixes: debbugs:11750
* Remove obsolete '#define static' cruft.Paul Eggert2012-05-302-13/+10
| | | | | | | | | | | | | | * 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".
* Merge from trunk.Paul Eggert2012-04-181-1/+1
|\
* \ Merge from trunk.Paul Eggert2012-04-171-1/+1
|\ \ | |/
* | Merge from trunk.Paul Eggert2012-04-132-7/+10
|\ \ | |/
| * Repurpose C_SWITCH_X_SYSTEM as GNUSTEP_CFLAGSGlenn Morris2012-04-102-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the only thing left that uses it. * configure.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM. * src/Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM. * lwlib/Makefile.in (C_SWITCH_X_SYSTEM): Remove. (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM. * oldXMenu/Makefile.in (C_SWITCH_X_SYSTEM): Remove. (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM. * msdos/sedlibmk.inp, msdos/sed1v2.inp: GNUSTEP_CFLAGS replaces C_SWITCH_X_SYSTEM.
* | Merge from trunk; add Bug#.Paul Eggert2012-04-091-1/+1
|\ \ | |/
* | configure: new option --enable-gcc-warningsPaul Eggert2012-04-092-2/+11
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have been using this change for many months in my private copy of Emacs, and have used it to find several bugs. It's mature enough to publish now. * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings. * configure.in: Support --enable-gcc-warnings, in the style of other GNU packages such as coreutils. (C_WARNINGS_SWITCH): Remove, replacing with... (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable. (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I, when including system files with GCC. * etc/NEWS: Mention --enable-gcc-warnings. * lib/Makefile.am (AM_CFLAGS): New macro. * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib. * lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (BASE_CFLAGS): Use new macros rather than old. * lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * src/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904. * src/regex.c: Ignore -Wstrict-overflow. If !emacs, also ignore -Wunused-but-set-variable, -Wunused-function, -Wunused-macros, -Wunused-result, -Wunused-variable. This should go away once the Emacs and Gnulib regex code is merged. (xmalloc, xrealloc): Now static.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-0512-12/+12
|
* Fix typos.Juanma Barranquero2011-11-241-3/+3
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-181-1/+1
|
* Use xfree, not free, to avoid crash with --enable-checking=xmallocoverrun.Dmitry Antipov2011-10-136-18/+28
|
* lwlib/Makefile.in (ALL_CFLAGS): Add -I../lib for generated header files in ↵YAMAMOTO Mitsuharu2011-06-272-1/+6
| | | | out-of-tree build.
* Merge: Cons<->int and similar integer overflow fixes.Paul Eggert2011-06-062-5/+11
|\
| * * Makefile.in (ALL_CFLAGS): Add -I$(srcdir)/../lib.Paul Eggert2011-06-062-5/+11
|/ | | | This is needed because lisp.h includes intprops.h now.
* Static checks with GCC 4.6.0 and non-default toolkits.Paul Eggert2011-04-166-58/+48
|\
| * * lwlib-utils.c (XtCompositeChildren): Likewise.Paul Eggert2011-04-162-1/+2
| |
| * * lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.Paul Eggert2011-04-162-6/+9
| | | | | | | | (make_menu_in_widget): Add cast to avoid warning.
| * * lwlib.c (first_child) [USE_MOTIF]: Protoize.Paul Eggert2011-04-162-1/+2
| |
| * * lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".Paul Eggert2011-04-152-3/+6
| |
| * * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.Paul Eggert2011-04-153-29/+2
| |
| * * xlwmenu.c (MINL): Define only if not emacs.Paul Eggert2011-04-152-0/+3
| |
| * * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.Paul Eggert2011-04-152-18/+22
|/
* Update and split ChangeLogs.Juanma Barranquero2011-04-061-0/+4
|
* Use *font for Xft font names for Lucid menus and dialogs.Jan Djärv2011-02-145-49/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/xresources.texi (X Resources): Remove *faceName and replace it with *font for Lucid. * lwlib/lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts. Try XLoadQueryFont first and then Xft fonts. * lwlib/xlwmenu.c (xlwmenu_default_font): Remove, does not work for multi-display. (xlwMenuResources): Remove XtNfaceName and XtNdefaultFace. Make XtNFont a String resource. (make_windows_if_needed): Call XFlush so later changes are seen by the X server. (remap_menubar): Use XtMoveWidget and then XtResizeWidget/XtResizeWindow after XtPopup. Works better with Compiz. (make_drawing_gcs): Check if mw->menu.font is set. (getDefaultXftFont): New function. (openXftFont): faceName is now fontName. Try XLoadQueryFont first and then XftFontOpenName. (XlwMenuInitialize): Initialize mw->menu.font with XLoadQueryFont. (XlwMenuClassInitialize): Remove initialization of xlwmenu_default_font. (fontname_changed): Renamed from facename_changed. (XlwMenuSetValues): Use facename_changed. * lwlib/xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace. * lwlib/xlwmenuP.h (_XlwMenu_part): Remove faceName. Add fontName. * src/xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font. (apply_systemfont_to_menu): Set resources *menubar*font and *popup*font. Remove defflt. (set_frame_menubar, create_and_show_popup_menu): Call apply_systemfont_to_menu before lw_create_widget. * src/xrdb.c (x_load_resources): For LUCID and XFT, don't put a resource that specifies helvetica for menus and dialogs.
* lwlib trivia.Glenn Morris2011-02-122-7/+5
| | | | | * lwlib/lwlib-utils.c (index, rindex): Don't undef (neither used in lwlib/, nor set in config.h).
* lwlib/Makefile.in misc cleanup.Glenn Morris2011-02-102-23/+42
| | | | | | | | | | | | | | | | * lwlib/Makefile.in (USE_X_TOOLKIT, RM, TOOLKIT_DEFINES): Remove. (ALL_CFLAGS): Remove -I. (config_h, lisp_h, src_h): New variables. (globals_h): Rename from $globals. ($(globals_h)): Check cd exit status. (lwlib.o): Remove special rule. (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o, xlwmenu.o): Add lisp.h and config.h to prereqs. (lwlib-utils.o): Add lwlib.h to prereqs. (lwlib.o): Add lwlib-utils.h and lwlib-Xm.h to prereqs. (lwlib-Xlw.o): Add xlwmenu.h to prereqs. (xlwmenu.o): Add ../src/xterm.h to prereqs. (mostlyclean): Forget about "core" files.
* * lwlib/Makefile.in: Standardize on $(), not ${}.Glenn Morris2011-02-101-3/+3
|
* lwlib/ trivia.Glenn Morris2011-02-097-16/+20
| | | | | * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c, xlwmenu.c: Standardize on <> for includes from the ../src directory.
* Update lucid toolkit build for src/globals.h being a generated file.Glenn Morris2011-02-082-6/+20
| | | | | | | * lwlib/Makefile.in (@SET_MAKE@): New, set by configure. (globals): New variable and rule. (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o) (xlwmenu.o): Add dependency on src/globals.h.
* Use xmalloc instead of malloc.Jan D2011-01-314-8/+14
| | | | | | | | * lwlib-Xm.c (make_destroyed_instance): * lwlib-utils.c (XtApplyToWidgets): * lwlib.c (safe_strdup, malloc_widget_value) (allocate_widget_info, allocate_widget_instance): Use xmalloc instead of malloc.
* Refill some long/short copyright headers.Glenn Morris2011-01-263-7/+7
|
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-2412-24/+12
|
* Merge from emacs-23.Glenn Morris2011-01-242-1/+6
|\ | | | | | | Note setting of CANNOT_DUMP on ia64 hpux is still to be merged manually.
| * * lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference (Bug#7690).Werner Meisner2011-01-232-1/+6
| |
* | Refill some copyright headers.Glenn Morris2011-01-151-2/+2
| |
* | Nuke arch-tags.Glenn Morris2011-01-1515-29/+0
| |
* | Merge from emacs-23Stefan Monnier2011-01-1412-13/+13
|\ \ | |/
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-0212-12/+12
| |
* | Use const for some pointer arguments.Dan Nicolaescu2010-09-263-13/+21
| | | | | | | | | | | | | | * lwlib/lwlib.h (my_strcasecmp, safe_strcmp, name_to_widget) (find_in_table, dialog_spec_p, lw_separator_p): * lwlib/lwlib.c (my_strcasecmp, safe_strcmp, name_to_widget) (find_in_table, dialog_spec_p, lw_separator_p): Use const.
* | Use const for constant arguments.Dan Nicolaescu2010-09-203-12/+18
| | | | | | | | | | | | * lwlib/lwlib.h (lw_register_widget, lw_create_widget): * lwlib/lwlib.c (allocate_widget_info, lw_register_widget) (lw_create_widget, separator_table): Use const.
* | * lwlib/xlwmenu.c (abort_gracefully): Mark as NO_RETURN.Dan Nicolaescu2010-07-282-1/+5
| |