1. 03 Jun, 2014 6 commits
    • Paul Eggert's avatar
      Do not require libXt-devel when building with gtk. · 181f08a7
      Paul Eggert authored
      * lwlib/lwlib-widget.h: New file, with contents taken from lwlib.h.
      (widget_value) [HAVE_NTGUI]: New member 'title'.
      * lwlib/lwlib.h: Include lwlib-widget.h.
      (change_type, enum button_type, widget_value):
      Move to lwlib-widget.h.
      * src/gtkutil.h, src/menu.h: Include lwlib-widget.h, not lwlib-h, to avoid
      dependency on libXt-devel.
      * src/menu.h [HAVE_NTGUI]: Include lwlib-widget.h in this case too.
      (enum button_type, widget_value) [HAVE_NTGUI]: Remove, as
      lwlib-widget.h now does this.
      * src/nsmenu.m (ns_menu_show): "enabled" -> "enable" to fix typo.
    • Paul Eggert's avatar
      If ENABLE_CHECKING, range-check args of FD_CLR, FD_ISSET, FD_SET. · 5897da1d
      Paul Eggert authored
      * process.c (add_read_fd, delete_read_fd, add_write_fd)
      (delete_write_fd, wait_reading_process_output):
      Remove now-redundant easserts.
      * sysselect.h (SYSSELECT_H): New macro, to avoid double-inclusion woes.
      (fd_CLR, fd_ISSET, fd_SET): New inline functions.
      (FD_CLR, FD_ISSET, FD_SET): Redefine in terms of these functions.
    • Eli Zaretskii's avatar
      More minor cleanups in src/w32heap.c. · 221e0a20
      Eli Zaretskii authored
       src/w32heap.c (calloc): Don't undef, it is never defined.
       (HEAP_ENTRY_SHIFT): Remove unused macro.
    • Eli Zaretskii's avatar
      Define the size of dumped data for MS-Windows locally on w32heap.c. · 89b36202
      Eli Zaretskii authored
       configure.ac (C_HEAP_SWITCH): Remove.
       src/w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h.  Don't use
       HEAPSIZE; instead, define separate values for the 32- and 64-bit
       src/Makefile.in (C_HEAP_SWITCH): Remove.
       (ALL_CFLAGS): Don't use $(C_HEAP_SWITCH).
    • Eli Zaretskii's avatar
      Fix MS-Windows build broken by menu changes on 2014-06-02. · 0031c953
      Eli Zaretskii authored
       src/w32menu.c (w32_menu_show): Fix a typo that broke compilation.
       src/menu.h (enum button_type, struct _widget_value) [HAVE_NTGUI]:
       Define instead of including ../lwlib/lwlib.h, which causes
       compilation errors due to missing X11 headers.
    • Paul Eggert's avatar
      * process.c (wait_reading_process_output): Omit incorrect test · 827a3c3d
      Paul Eggert authored
      of p->infd against zero.  Add easserts for infd having a plausible
  2. 02 Jun, 2014 6 commits
    • Dmitry Antipov's avatar
      Use common memory management functions for lwlib and refactor users. · 5668fb88
      Dmitry Antipov authored
      * lwlib/lwlib.h (widget_value): Do not maintain a free list any more.
      (malloc_widget_value, free_widget_value): Remove prototypes.
      * lwlib/lwlib.c (malloc_widget_value, free_widget_value):
      (widget_value_free_list, malloc_cpt): Remove.
      (free_widget_value_tree, copy_widget_value_tree): Adjust users.
      * src/menu.h (xmalloc_widget_value): Replaced by ...
      (make_widget_value): ... new prototype.
      * src/menu.c (xmalloc_widget_value): Replaced by ...
      (make_widget_value): ... new function.
      (free_menubar_widget_value_tree, digest_single_submenu): Adjust users.
      * src/gtkutil.c (malloc_widget_value, free_widget_value):
      (widget_value_free_list, malloc_cpt): Remove old lwlib-compatible code.
      * src/keyboard.h (enum button_type, struct _widget_value):
      * src/gtkutil.h, src/nsgui.h, src/w32gui.h (malloc_widget_value):
      (free_widget_value): Likewise.
      * src/nsmenu.m (ns_update_menubar, ns_menu_show):
      * src/w32menu.c (set_frame_menubar, w32_menu_show, w32_dialog_show):
      * src/xmenu.c (set_frame_menubar, xmenu_show, x_dialog_show): Adjust users.
      * src/xterm.h (XtParent) [USE_GTK]: Remove unused macro.
    • Dmitry Antipov's avatar
      * image.c (x_query_frame_background_color) · da11196a
      Dmitry Antipov authored
      Fix --enable-gcc-warnings compilation without image libraries.
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Minor improvement of sbrk emulation on MS-Windows. · 0dd0ad37
      Eli Zaretskii authored
       src/w32heap.c (malloc_after_dump, realloc_after_dump): Update the
       emulated break value only if it goes up.
       (sbrk): Add assertion that the INCREMENT argument is strictly
       zero.  Improve and correct the commentary.
    • Paul Eggert's avatar
      Improve AIX-related merge from emacs-24. · f34897e3
      Paul Eggert authored
      * conf_post.h (FLEXIBLE_ARRAY_MEMBER): Fix comment.
      * lisp.h (ENUMABLE) [!_AIX]: Don't define to 0 merely because we're
      not on AIX; since we're on the trunk we can use enums more broadly.
  3. 01 Jun, 2014 8 commits
  4. 31 May, 2014 3 commits
  5. 30 May, 2014 4 commits
    • Paul Eggert's avatar
      Fix port to 32-bit AIX with xlc. · 1915d8d6
      Paul Eggert authored
      This doesn't fix Bug#17598, but it does fix a regression since Emacs
      built with xlc until recently, and perhaps it'll help us fix Bug#17598.
      * configure.ac (GC_SETJMP_WORKS): Define for AIX, too.
      Merge from gnulib, incorporating:
      2014-05-30 ftoastr: work around compiler bug in IBM xlc 12.1
      * lib/ftoastr.c: Update from gnulib.
      * src/alloc.c (gdb_make_enums_visible): Remove FLOAT_TO_STRING_BUFSIZE.
      * src/conf_post.h (FLEXIBLE_ARRAY_MEMBER) [__IBMC__]: Don't define to empty.
      * src/lisp.h (FLOAT_TO_STRING_BUFSIZE): Make it a macro, instead of an enum,
      to work around a compiler bug in IBM xlc 12.1.
    • Eli Zaretskii's avatar
      Enhance error checking in heap allocation routines on MS-Windows. · 6c572f9a
      Eli Zaretskii authored
       src/w32heap.c (malloc_before_dump, malloc_after_dump)
       (malloc_before_dump, realloc_after_dump, realloc_before_dump)
       (mmap_alloc, mmap_realloc): Check for errors more thoroughly and
       set errno where appropriate to emulate CRT functions.
    • Dmitry Antipov's avatar
      Debugging facility to check whether 'const char *' points to · 8d3103b1
      Dmitry Antipov authored
      relocatable data of non-pure Lisp string.
      * alloc.c (maybe_lisp_pointer): New function, refactored out of ...
      (mark_maybe_pointer): ... adjusted user.
      (relocatable_string_data_p): New function.
      * lisp.h (relocatable_string_data_p): Add prototype.
      * xdisp.c (message_with_string): If ENABLE_CHECKING, make sure
      the pointer to relocatable Lisp data is not used.
    • Paul Eggert's avatar
      Don't let SIGINT handling block SIGCHLD indefinitely. · 8cf1e6e6
      Paul Eggert authored
      * atimer.c (block_atimers):
      * callproc.c (block_child_signal): Block SIGINT too;
      otherwise, its handler might now unblock signals that it shouldn't.
      * keyboard.c (read_char): Clear signal mask, since we may
      be in a SIGINT handler, and many signals may be masked.
      * keyboard.c (handle_interrupt):
      * sysdep.c (handle_arith_signal):
      Clear signal mask instead of just unblocking the signal that
      was received, since several signals may be blocked at this point.
      Fixes: debbugs:17561
  6. 29 May, 2014 10 commits
    • Eli Zaretskii's avatar
      Remove nt/addsection.c and don't build addsection.exe. · 7479dd3e
      Eli Zaretskii authored
       configure.ac (ADDSECTION, TEMACS_POST_LINK): Don't compute,
       nt/Makefile.in (DONT_INSTALL): Now empty.
       (addsection${EXEEXT}): Remove target.
       nt/addsection.c: File removed.
       src/Makefile.in (TEMACS_POST_LINK): Remove target.
       (emacs$(EXEEXT)): Remove $(ADDSECTION) from prerequisites.
       (temacs$(EXEEXT)): Remove $(TEMACS_POST_LINK) from the recipe.
    • Dmitry Antipov's avatar
      * xmenu.c (xdialog_show): Remove prototype, rename to · f1b44793
      Dmitry Antipov authored
      x_dialog_show, remove 2nd arg because it's always zero
      and simplify accordingly.
      (xw_popup_dialog): Adjust user.
      * w32menu.c (w32_dialog_show): Adjust prototype, remove
      2nd arg because it's always zero and simplify accordingly.
      (w32_popup_dialog): Adjust user.
    • Eli Zaretskii's avatar
      src/ChangeLog: Fix a recent log entry. · bd5b233d
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Fix bug #17588 with mouse highlight when an X frame is redisplayed frequently. · 60ae3d09
      Eli Zaretskii authored
       src/xterm.c (x_update_window_end): Don't invalidate the entire
       mouse-highlight info, just signal frame_up_to_date_hook that mouse
       highlight needs to be redisplayed.
    • Eli Zaretskii's avatar
      Add diagnostics for using private heap on MS-Windows during dumping. · d2ff520a
      Eli Zaretskii authored
       src/w32heap.c (report_temacs_memory_usage): New function.
       src/unexw32.c (unexec) [ENABLE_CHECKING]: Call report_temacs_memory_usage.
       src/w32heap.h (report_temacs_memory_usage): Add prototype.
    • Paul Eggert's avatar
      Don't substitute sigprocmask for pthread_sigmask. · 035159ed
      Paul Eggert authored
      sigprocmask isn't portable in a multithreaded process.
      * configure.ac (gl_THREADLIB): Remove dummy.
      Merge from gnulib, incorporating:
      2014-05-28 pthread_sigmask, timer-time: use gl_THREADLIB only if needed
      * m4/pthread_sigmask.m4, m4/timer_time.m4: Update from gnulib.
      * src/Makefile.in (LIB_PTHREAD_SIGMASK): Remove; all uses removed.
      Fixes: debbugs:17561
    • Eli Zaretskii's avatar
      Fix bug #17622 with crashes in mmap routines. · 0bbb27fc
      Eli Zaretskii authored
       src/buffer.c (init_buffer): Accept an argument 'initialized'.
       [USE_MMAP_FOR_BUFFERS]: If 'initialized' is non-zero, reset
       mmap_regions and mmap_fd, to avoid referencing stale data from the
       dump phase.  Add an assertion for buffer text of buffers created
       in temacs before this function is called.
       (mmap_regions_1, mmap_fd_1): Remove unused variables.
       src/lisp.h (init_buffer): Update prototype.
       src/emacs.c (main): Pass 'initialized' as the argument to init_buffer.
    • Dmitry Antipov's avatar
      * alloc.c (Fgarbage_collect): Fix compilation with · 609b06a0
      Dmitry Antipov authored
    • Paul Eggert's avatar
      Port the GDB-visible symbols to AIX. · 3c975a33
      Paul Eggert authored
      Without them, GDB doesn't work to debug Emacs, since the AIX linker
      optimizes away the relevant external symbols.  Use enums instead;
      this suffices for the AIX port, which is 32-bit-only anyway.
      * lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): New macros.
      New macros.
    • Paul Eggert's avatar
      * frame.c, frame.h (frame_char_to_pixel_position) · 6b5d3a51
      Paul Eggert authored
      (frame_set_mouse_position): Now static, and made private in
      frame.c rather than public in frame.h.
  7. 28 May, 2014 3 commits