aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2006-03-10 23:46:54 +0000
committerMiles Bader2006-03-10 23:46:54 +0000
commit57216976c5a20643ba59f8436e1177f66eb17cb7 (patch)
treed8210e4d5d8e8502635922addf9355ccd6bf21e2 /src
parentd959f5123e8ac52035c899704954dfcf426529c9 (diff)
parentea8ae7654a60bf4598a6b6269fe75fb859b91651 (diff)
downloademacs-57216976c5a20643ba59f8436e1177f66eb17cb7.tar.gz
emacs-57216976c5a20643ba59f8436e1177f66eb17cb7.zip
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-42
Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 144-147) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 56) - Update from CVS
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog35
-rw-r--r--src/alloc.c12
2 files changed, 33 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a72b3fc7956..9ecb6e0ace1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,9 +1,23 @@
12006-03-10 Kim F. Storm <storm@cua.dk>
2
3 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
4
52006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * alloc.c (USE_POSIX_MEMALIGN): New macro.
8 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
9
102006-03-09 Kenichi Handa <handa@m17n.org>
11
12 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
13 ASCII component of a composition.
14
12006-03-08 Luc Teirlinck <teirllm@auburn.edu> 152006-03-08 Luc Teirlinck <teirllm@auburn.edu>
2 16
3 * window.c: Declare preserve_y as a static global variable. 17 * window.c: Declare preserve_y as a static global variable.
4 (window_scroll_pixel_based): No longer declare preserve_y; 18 (window_scroll_pixel_based): No longer declare preserve_y;
5 it is global now. 19 it is global now.
6 (syms_of_window): set preserve_y to -1. 20 (syms_of_window): Set preserve_y to -1.
7 21
82006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 222006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9 23
@@ -23,10 +37,10 @@
23 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines. 37 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
24 38
25 * macfns.c (x_default_scroll_bar_color_parameter) 39 * macfns.c (x_default_scroll_bar_color_parameter)
26 (x_set_scroll_bar_foreground, x_set_scroll_bar_background): Remove 40 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
27 unnecessary prototypes. 41 Remove unnecessary prototypes.
28 (x_set_scroll_bar_default_width): Use 42 (x_set_scroll_bar_default_width):
29 MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH. 43 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
30 (mac_set_scroll_bar_width): New function. 44 (mac_set_scroll_bar_width): New function.
31 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width. 45 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
32 46
@@ -38,7 +52,7 @@
38 (mac_handle_command_event, mac_handle_window_event) 52 (mac_handle_command_event, mac_handle_window_event)
39 (mac_handle_mouse_event): Check error code of GetEventParameter. 53 (mac_handle_mouse_event): Check error code of GetEventParameter.
40 (convert_fn_keycode) [MAC_OSX]: Likewise. 54 (convert_fn_keycode) [MAC_OSX]: Likewise.
41 55
422006-03-05 Andreas Schwab <schwab@suse.de> 562006-03-05 Andreas Schwab <schwab@suse.de>
43 57
44 * xselect.c (x_catch_errors_unwind): Fix missing return value. 58 * xselect.c (x_catch_errors_unwind): Fix missing return value.
@@ -52,9 +66,9 @@
52 lines, by distributing the rows evenly over the tool-bar screen area. 66 lines, by distributing the rows evenly over the tool-bar screen area.
53 (Vtool_bar_border): New variable. 67 (Vtool_bar_border): New variable.
54 (syms_of_xdisp): DEFVAR_LISP it. 68 (syms_of_xdisp): DEFVAR_LISP it.
55 (display_tool_bar_line): Add HEIGHT arg for desired row height. Make 69 (display_tool_bar_line): Add HEIGHT arg for desired row height.
56 tool-bar row the desired height. Use default face for border below 70 Make tool-bar row the desired height. Use default face for border
57 tool-bar. 71 below tool-bar.
58 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of 72 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
59 actual tool-bar rows. 73 actual tool-bar rows.
60 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially. 74 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
@@ -81,8 +95,7 @@
81 95
822006-02-26 Chong Yidong <cyd@stupidchicken.com> 962006-02-26 Chong Yidong <cyd@stupidchicken.com>
83 97
84 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary 98 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
85 argument.
86 99
87 * xterm.c: (x_load_font, x_term_init, XTmouse_position) 100 * xterm.c: (x_load_font, x_term_init, XTmouse_position)
88 (handle_one_xevent, x_connection_closed, x_list_fonts): No arg for 101 (handle_one_xevent, x_connection_closed, x_list_fonts): No arg for
diff --git a/src/alloc.c b/src/alloc.c
index ea52c98fd24..549f14625e6 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -883,6 +883,12 @@ lisp_free (block)
883/* The entry point is lisp_align_malloc which returns blocks of at most */ 883/* The entry point is lisp_align_malloc which returns blocks of at most */
884/* BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */ 884/* BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */
885 885
886/* Use posix_memalloc if the system has it and we're using the system's
887 malloc (because our gmalloc.c routines don't have posix_memalign although
888 its memalloc could be used). */
889#if defined (HAVE_POSIX_MEMALIGN) && defined (SYSTEM_MALLOC)
890#define USE_POSIX_MEMALIGN 1
891#endif
886 892
887/* BLOCK_ALIGN has to be a power of 2. */ 893/* BLOCK_ALIGN has to be a power of 2. */
888#define BLOCK_ALIGN (1 << 10) 894#define BLOCK_ALIGN (1 << 10)
@@ -948,7 +954,7 @@ struct ablocks
948#define ABLOCKS_BUSY(abase) ((abase)->blocks[0].abase) 954#define ABLOCKS_BUSY(abase) ((abase)->blocks[0].abase)
949 955
950/* Pointer to the (not necessarily aligned) malloc block. */ 956/* Pointer to the (not necessarily aligned) malloc block. */
951#ifdef HAVE_POSIX_MEMALIGN 957#ifdef USE_POSIX_MEMALIGN
952#define ABLOCKS_BASE(abase) (abase) 958#define ABLOCKS_BASE(abase) (abase)
953#else 959#else
954#define ABLOCKS_BASE(abase) \ 960#define ABLOCKS_BASE(abase) \
@@ -989,7 +995,7 @@ lisp_align_malloc (nbytes, type)
989 mallopt (M_MMAP_MAX, 0); 995 mallopt (M_MMAP_MAX, 0);
990#endif 996#endif
991 997
992#ifdef HAVE_POSIX_MEMALIGN 998#ifdef USE_POSIX_MEMALIGN
993 { 999 {
994 int err = posix_memalign (&base, BLOCK_ALIGN, ABLOCKS_BYTES); 1000 int err = posix_memalign (&base, BLOCK_ALIGN, ABLOCKS_BYTES);
995 if (err) 1001 if (err)
@@ -1105,7 +1111,7 @@ lisp_align_free (block)
1105 } 1111 }
1106 eassert ((aligned & 1) == aligned); 1112 eassert ((aligned & 1) == aligned);
1107 eassert (i == (aligned ? ABLOCKS_SIZE : ABLOCKS_SIZE - 1)); 1113 eassert (i == (aligned ? ABLOCKS_SIZE : ABLOCKS_SIZE - 1));
1108#ifdef HAVE_POSIX_MEMALIGN 1114#ifdef USE_POSIX_MEMALIGN
1109 eassert ((unsigned long)ABLOCKS_BASE (abase) % BLOCK_ALIGN == 0); 1115 eassert ((unsigned long)ABLOCKS_BASE (abase) % BLOCK_ALIGN == 0);
1110#endif 1116#endif
1111 free (ABLOCKS_BASE (abase)); 1117 free (ABLOCKS_BASE (abase));