1. 03 Jun, 2014 9 commits
  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.
      5668fb88
    • Dmitry Antipov's avatar
      * image.c (x_query_frame_background_color) · da11196a
      Dmitry Antipov authored
      [HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG]:
      Fix --enable-gcc-warnings compilation without image libraries.
      da11196a
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      e67cf8c6
    • 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.
      0dd0ad37
    • 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.
      f34897e3
  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.
      1915d8d6
    • 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.
      6c572f9a
    • 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.
      8d3103b1
    • 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
      8cf1e6e6
  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,
       unused.
      
       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.
      7479dd3e
    • 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.
      f1b44793
    • Eli Zaretskii's avatar
      src/ChangeLog: Fix a recent log entry. · bd5b233d
      Eli Zaretskii authored
      bd5b233d
    • 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.
      60ae3d09
    • 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.
      d2ff520a
    • 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
      035159ed
    • 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.
      0bbb27fc
    • Dmitry Antipov's avatar
      * alloc.c (Fgarbage_collect): Fix compilation with · 609b06a0
      Dmitry Antipov authored
      GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
      609b06a0
    • 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.
      (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.
      (ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
      New macros.
      3c975a33
    • 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.
      6b5d3a51