1. 01 Jan, 2020 1 commit
  2. 01 Jan, 2019 1 commit
  3. 01 Jan, 2018 1 commit
  4. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  5. 10 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Tweak X toolkit code to pacify modern GCC · ec168376
      Paul Eggert authored
      * lwlib/lwlib-Xaw.c, lwlib/lwlib-Xm.c, lwlib/lwlib.c:
      Don’t include <stdlib.h>, since this code now calls emacs_abort
      rather than abort.
      * lwlib/lwlib-Xaw.c (make_dialog, xaw_generic_callback)
      (wm_delete_window):
      * lwlib/lwlib-Xm.c (make_menu_in_widget, do_call):
      * lwlib/lwlib.c (instantiate_widget_instance, lw_make_widget):
      * lwlib/xlwmenu.c (abort_gracefully, draw_separator)
      (separator_height, XlwMenuInitialize):
      Use emacs_abort, not abort.  Without this change, some calls
      to ‘abort’ were invalid, as stdlib.h was not always included.
      * src/widget.c (resources, emacsFrameClassRec):
      * src/xfns.c (x_window) [USE_X_TOOLKIT]:
      * src/xmenu.c (create_and_show_popup_menu) [USE_X_TOOLKIT]:
      * src/xterm.c (emacs_options) [USE_X_TOOLKIT}:
      (x_term_init) [USE_X_TOOLKIT]:
      Cast string constants to char * to pacify --enable-gcc-warnings.
      ec168376
  6. 01 Jan, 2017 1 commit
  7. 30 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Limit <config.h>’s includes · f4eb8900
      Paul Eggert authored
      This follows up on recent problems with the fact that config.h
      includes stdlib.h etc.; some files need to include stdlib.h later.
      config.h generally should limit itself to includes that are
      universally safe; outside of MS-Windows, only stdbool.h makes
      the cut among the files currently included.  So, move the
      other includes to just the files that need them (Bug#24506).
      * configure.ac (config_opsysfile): Remove, as this generic hook
      is no longer needed.
      * lib-src/etags.c, src/unexmacosx.c, src/w32.c, src/w32notify.c:
      * src/w32proc.c (_GNU_SOURCE):
      Remove, as it’s OK for config.h to do this now.
      * src/conf_post.h: Include <ms-w32.h>, instead of the generic
      config_opsysfile, for simplicity as this old way of configuring is
      now done only for the MS-Windows port.  Do not include <ms-w32.h>
      if DEFER_MS_W32_H, for the benefit of the few files that want its
      effects later.  Do not include <alloca.h>, <string.h>, or
      <stdlib.h>.  Other files modified to include these headers as
      needed, or to not include headers that are no longer needed.
      * src/lisp.h: Include <alloca.h> and <string.h> here, since
      some of the inline functions need them.
      * src/regex.c: Include <alloca.h> if not emacs.  (If emacs,
      we can rely on SAFE_ALLOCA.)  There is no longer any need to
      worry about HAVE_ALLOCA_H.
      * src/unexmacosx.c: Rely on config.h not including stdlib.h.
      * src/w32.c, src/w32notify.c, src/w32proc.c (DEFER_MS_W32_H):
      Define before including <config.h> first, and include <ms-w32.h>
      after the troublesome headers.
      f4eb8900
  8. 01 Jan, 2016 1 commit
  9. 01 Jan, 2015 2 commits
  10. 17 Jun, 2014 1 commit
    • Paul Eggert's avatar
      Omit redundant extern decls. · 73bfe891
      Paul Eggert authored
      Most of this patch is from Dmitry Antipov, in:
      http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
      * configure.ac (WERROR_CFLAGS): Add -Wredundant-decls.
      * lib-src/emacsclient.c (getenv): Remove decl.
      * lib-src/make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
      Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.
      * lwlib/lwlib-Xm.c (lw_motif_widget_p, xm_update_one_value)
      (xm_create_dialog, xm_destroy_instance, xm_popup_menu)
      (xm_set_keyboard_focus, xm_set_main_areas): Remove decls.
      * src/commands.h (update_mode_lines):
      * src/frame.h (Qbackground_color, Qforeground_color)
      (x_set_menu_bar_lines):
      * src/ftfont.c (ftfont_font_format):
      * src/intervals.h (Qkeymap, Qfont):
      * src/keyboard.c (timer_check, safe_run_hooks, Qregion_extract_function):
      * src/lisp.h (Ffboundp, Qnil, Qt, Qlambda, Qintegerp, Qwholenump)
      (Qsymbolp, Qlisp, Qconsp, Qstringp, Qarrayp, Qbufferp, Qmarkerp)
      (Qvectorp, Qbuffer_or_string_p, Qchar_table_p, Qvector_or_char_table_p)
      (Qfloatp, Qnumberp, Qfont_spec, Qfont_entity, Qfont_object)
      (Fbyteorder, wrong_type_argument, Fmax_char, syms_of_composite)
      (Fidentity, extract_float, init_display, syms_of_display, Qdisplay):
      (Qimage, Qbox, redisplay_preserve_echo_area, char_table_ref)
      (char_table_set, char_table_translate, Qautoload, Qbottom, Qtop)
      (Qvisible, Qfont, Qfront_sticky, Qrear_nonsticky, init_sigio)
      (Qtool_bar, Qheader_line):
      * src/macros.c (Fexecute_kbd_macro):
      * src/xdisp.c (Ftool_bar_height, Ftool_bar_height):
      * src/xterm.c (x_delete_terminal, XSetIMValues):
      * src/xterm.h (x_set_window_size, x_query_color, x_get_focus_frame)
      (x_implicitly_set_name, popup_activated)
      (widget_store_internal_border):
      Remove redundant decls.
      * src/frame.c [USE_X_TOOLKIT]: Include widget.h.
      * src/keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit):
      Remove _Noreturn, as make-docfile now does that for us.
      * src/lisp.h (DEFUN): Don't declare fnname here; rely on make-docfile.
      (Qregion_extract_function): New decl.
      * src/window.c, src/xfns.c: Include menu.h.
      73bfe891
  11. 30 May, 2014 1 commit
    • Dmitry Antipov's avatar
      Use common string allocation and freeing functions where applicable. · a0845323
      Dmitry Antipov authored
      * lwlib.h (safe_strdup): Remove prototype.
      * lwlib.c (safe_strdup, safe_free_str): Remove.
      (copy_widget_value_tree, allocate_widget_info, free_widget_info):
      (merge_widget_value): Prefer xstrdup, xfree and dupstring.
      * lwlib-Xm.c (make_destroyed_instance, xm_update_one_value): Ditto.
      a0845323
  12. 01 Jan, 2014 1 commit
  13. 01 Jan, 2013 1 commit
  14. 31 Dec, 2012 1 commit
  15. 31 Jul, 2012 1 commit
    • Dmitry Antipov's avatar
      Miscellaneous fixes for non-default X toolkits. · c09bfb2f
      Dmitry Antipov authored
      * 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.
      c09bfb2f
  16. 26 Jun, 2012 1 commit
  17. 11 Jan, 2012 1 commit
  18. 05 Jan, 2012 1 commit
  19. 13 Oct, 2011 1 commit
  20. 16 Apr, 2011 1 commit
  21. 10 Feb, 2011 1 commit
    • Glenn Morris's avatar
      lwlib/ trivia. · 67f02b82
      Glenn Morris authored
      * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c, xlwmenu.c:
      Standardize on <> for includes from the ../src directory.
      67f02b82
  22. 31 Jan, 2011 1 commit
    • Jan D's avatar
      Use xmalloc instead of malloc. · 3370edca
      Jan D authored
      * 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.
      3370edca
  23. 26 Jan, 2011 1 commit
  24. 25 Jan, 2011 1 commit
  25. 23 Jan, 2011 1 commit
  26. 15 Jan, 2011 1 commit
  27. 02 Jan, 2011 1 commit
  28. 08 Jul, 2010 2 commits
    • Jan D's avatar
      Change function definition from K&R to prototype. Fix prototype warnings. · c825c0b6
      Jan D authored
      * lwlib-Xaw.c (xaw_generic_callback, command_reset)
      (xaw_update_one_value): Reformat.
      (xaw_update_one_widget): Reformat and remove dead code.
      (xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar)
      (xaw_update_scrollbar): Remove (not used).
      (make_dialog): Change from K&R to prototype. Remove dead code.
      (xaw_creation_table): Remove scrollbar entry.
      
      * lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to
      prototype.
      (xlw_update_one_value): Reformat.
      
      * lwlib-Xm.c (x_print_complete_resource_name)
      (make_destroyed_instance, free_destroyed_instance, first_child)
      (lw_motif_widget_p, resource_motif_string, destroy_all_children)
      (xm_arm_callback, xm_update_label, xm_update_list)
      (xm_update_pushbutton, xm_update_cascadebutton)
      (xm_update_toggle, xm_update_radiobox, make_menu_in_widget)
      (update_one_menu_entry, xm_update_menu, xm_update_text)
      (xm_update_text_field, xm_update_one_widget)
      (xm_update_one_value, activate_button, dialog_key_cb)
      (make_dialog, mark_dead_instance_destroyed)
      (find_matching_instance, recenter_widget, recycle_instance)
      (xm_create_dialog, make_menubar, remove_grabs, make_popup_menu)
      (make_main, xm_destroy_instance, xm_popup_menu)
      (set_min_dialog_size, xm_pop_instance, do_call)
      (xm_internal_update_other_instances, xm_generic_callback)
      (xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback)
      (xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change
      from K&R to prototype.
      
      * lwlib-int.h (widget_creation_function): Fix prototype.
      
      * lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R
      to prototype.
      (lw_internal_update_other_instances, merge_widget_value): Reformat.
      
      * xlwmenu.c (size_menu_item): Change from K&R to prototype.
      Change label_width and height to int.
      (draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus)
      (draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu)
      (map_event_to_widget_value): Reformat.
      (display_menu_item): Change from K&R to prototype.
      c825c0b6
    • Dan Nicolaescu's avatar
      Remove alternative K&R declarations. · d8825aa3
      Dan Nicolaescu authored
      * lwlib/lwlib.c (allocate_widget_instance, get_widget_info)
      (get_widget_instance, find_instance, set_one_value)
      (update_one_widget_instance, update_all_widget_values)
      (lw_modify_all_widgets, lw_get_widget, lw_make_widget)
      (lw_create_widget, lw_pop_all_widgets, lw_show_busy)
      (lw_refigure_widget, lw_allow_resizing): Remove alternative K&R
      declarations.
      * lwlib/lwlib-Xlw.c (xlw_update_one_widget):
      (xlw_pop_instance): Likewise.
      * lwlib/lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance):
      Likewise.
      * lwlib/lwlib-Xm.c (P_): Remove.
      
      * src/xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
      d8825aa3
  29. 02 Jul, 2010 1 commit
    • Jan D's avatar
      Remove __P and P_ from .c and .m files and definition of P_ · f57e2426
      Jan D authored
      * lisp.h:
      * atimer.h: Remove define for P_.
      
      * alloc.c: Remove __P and P_ from .c and .m files.
      * atimer.c:
      * buffer.c:
      * callint.c:
      * category.c:
      * charset.c:
      * chartab.c:
      * cm.c:
      * coding.c:
      * composite.c:
      * data.c:
      * dired.c:
      * dispnew.c:
      * doc.c:
      * editfns.c:
      * emacs.c:
      * eval.c:
      * fileio.c:
      * filelock.c:
      * fns.c:
      * font.c:
      * fontset.c:
      * frame.c:
      * ftfont.c:
      * ftxfont.c:
      * gmalloc.c:
      * gtkutil.c:
      * image.c:
      * indent.c:
      * intervals.c:
      * keyboard.c:
      * keymap.c:
      * lread.c:
      * marker.c:
      * menu.c:
      * minibuf.c:
      * print.c:
      * process.c:
      * scroll.c:
      * search.c:
      * sound.c:
      * strftime.c:
      * syntax.c:
      * sysdep.c:
      * term.c:
      * terminal.c:
      * textprop.c:
      * unexalpha.c:
      * w32console.c:
      * w32fns.c:
      * w32font.c:
      * w32menu.c:
      * w32term.c:
      * w32uniscribe.c:
      * window.c:
      * xdisp.c:
      * xfaces.c:
      * xfns.c:
      * xfont.c:
      * xftfont.c:
      * xmenu.c:
      * xselect.c:
      * xterm.c: Likewise.
      
      * ebrowse.c: Remove P_ and __P.
      * etags.c:
      * movemail.c:
      * pop.c:
      * update-game-score.c: Likewise.
      f57e2426
  30. 13 Jan, 2010 1 commit
  31. 19 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * alloc.c: Do not define struct catchtag. · d7306fe6
      Dan Nicolaescu authored
      * eval.c: Move struct catchtag definition ...
      * lisp.h: ... here.
      
      * image.c: Move png.h #include earlier to avoid warnings.
      
      * xterm.c:
      * xsmfns.c:
      * xselect.c:
      * xrdb.c:
      * xmenu.c:
      * xftfont.c:
      * xfont.c:
      * xfns.c:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * widget.c:
      * w32xfns.c:
      * w32uniscribe.c:
      * w32term.c:
      * w32select.c:
      * w32reg.c:
      * w32proc.c:
      * w32menu.c:
      * w32inevt.c:
      * w32heap.c:
      * w32font.c:
      * w32fns.c:
      * w32console.c:
      * w32.c:
      * w16select.c:
      * vm-limit.c:
      * unexsol.c:
      * unexec.c:
      * unexcw.c:
      * unexaix.c:
      * undo.c:
      * tparam.c:
      * textprop.c:
      * terminfo.c:
      * terminal.c:
      * termcap.c:
      * term.c:
      * syntax.c:
      * sound.c:
      * sheap.c:
      * search.c:
      * scroll.c:
      * region-cache.c:
      * regex.c:
      * ralloc.c:
      * process.c:
      * print.c:
      * msdos.c:
      * minibuf.c:
      * menu.c:
      * marker.c:
      * macros.c:
      * keymap.c:
      * keyboard.c:
      * intervals.c:
      * insdel.c:
      * indent.c:
      * gtkutil.c:
      * ftxfont.c:
      * ftfont.c:
      * fringe.c:
      * frame.c:
      * fontset.c:
      * font.c:
      * fns.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c:
      * editfns.c:
      * dosfns.c:
      * doprnt.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * dbusbind.c:
      * data.c:
      * composite.c:
      * coding.c:
      * cmds.c:
      * cm.c:
      * chartab.c:
      * charset.c:
      * character.c:
      * ccl.c:
      * category.c:
      * casetab.c:
      * casefiddle.c:
      * callproc.c:
      * callint.c:
      * bytecode.c:
      * buffer.c:
      * atimer.c: Include setjmp.h.  (Bug#4643)
      
      * xlwmenu.c:
      * lwlib.c:
      * lwlib-utils.c:
      * lwlib-Xm.c:
      * lwlib-Xlw.c:
      * lwlib-Xaw.c: Include setjmp.h.
      d7306fe6
  32. 08 Jan, 2009 1 commit
  33. 02 Jun, 2008 1 commit
    • Jim Meyering's avatar
      remove useless if-before-free tests · c2cd06e6
      Jim Meyering authored
      * lib-src/ebrowse.c (xfree): Likewise.
      * lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise.
      (popclass_above, Prolog_functions, Erlang_functions): Likewise.
      * lib-src/pop.c (pop_quit): Likewise.
      * lwlib/lwlib-Xm.c (xm_update_one_value): Likewise.
      * lwlib/lwlib.c (safe_free_str, free_widget_value_tree): Likewise.
      * src/editfns.c (Fset_time_zone_rule): Likewise.
      * src/lread.c (nosuffix): Likewise.
      * src/ralloc.c (get_bloc): Likewise.
      * src/regex.c (reg_free): Likewise.
      * src/xftfont.c (xftfont_open, xftfont_close): Likewise.
      * src/xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
      * src/xsmfns.c (smc_save_yourself_CB): Likewise.
      c2cd06e6
  34. 07 Jan, 2008 1 commit
  35. 28 Feb, 2007 1 commit
  36. 21 Jan, 2007 1 commit
  37. 05 Feb, 2006 1 commit
  38. 07 Aug, 2005 1 commit