diff options
| author | Paul Eggert | 2012-07-05 11:35:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-05 11:35:48 -0700 |
| commit | 38182d901d030c7d65f4aa7a49b583afb30eb9b7 (patch) | |
| tree | a69e1a571495d6ca1c034359d7c995639774ab9b /src/ChangeLog | |
| parent | 6dd5a677dbf794eedaa8325c46d57ac041373361 (diff) | |
| download | emacs-38182d901d030c7d65f4aa7a49b583afb30eb9b7.tar.gz emacs-38182d901d030c7d65f4aa7a49b583afb30eb9b7.zip | |
More xmalloc and related cleanup.
* alloc.c, bidi.c, buffer.c, buffer.h, bytecode.c, callint.c:
* callproc.c, charset.c, coding.c, composite.c, data.c, dispnew.c:
* doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fns.c:
* font.c, fontset.c, frame.c, fringe.c, ftfont.c, ftxfont.c, gmalloc.c:
* gtkutil.c, image.c, keyboard.c, keymap.c, lread.c, macros.c, menu.c:
* nsfns.m, nsfont.m, nsmenu.m, nsterm.m, print.c, process.c, ralloc.c:
* regex.c, region-cache.c, scroll.c, search.c, sound.c, syntax.c:
* sysdep.c, term.c, termcap.c, unexmacosx.c, window.c, xdisp.c:
* xfaces.c, xfns.c, xftfont.c, xgselect.c, xmenu.c, xrdb.c, xselect.c:
* xterm.c:
Omit needless casts involving void * pointers and allocation.
Prefer "P = xmalloc (sizeof *P)" to "P = xmalloc (sizeof (TYPE_OF_P))",
as the former is more robust if P's type is changed.
Prefer xzalloc to xmalloc + memset 0.
Simplify malloc-or-realloc to realloc.
Don't worry about xmalloc returning a null pointer.
Prefer xstrdup to xmalloc + strcpy.
* editfns.c (Fmessage_box): Grow message_text by at least 80 when
growing it.
* keyboard.c (apply_modifiers_uncached): Prefer local array to
alloca of a constant.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1fdeee52f7f..d3035fe22a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2012-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | More xmalloc and related cleanup. | ||
| 4 | * alloc.c, bidi.c, buffer.c, buffer.h, bytecode.c, callint.c: | ||
| 5 | * callproc.c, charset.c, coding.c, composite.c, data.c, dispnew.c: | ||
| 6 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fns.c: | ||
| 7 | * font.c, fontset.c, frame.c, fringe.c, ftfont.c, ftxfont.c, gmalloc.c: | ||
| 8 | * gtkutil.c, image.c, keyboard.c, keymap.c, lread.c, macros.c, menu.c: | ||
| 9 | * nsfns.m, nsfont.m, nsmenu.m, nsterm.m, print.c, process.c, ralloc.c: | ||
| 10 | * regex.c, region-cache.c, scroll.c, search.c, sound.c, syntax.c: | ||
| 11 | * sysdep.c, term.c, termcap.c, unexmacosx.c, window.c, xdisp.c: | ||
| 12 | * xfaces.c, xfns.c, xftfont.c, xgselect.c, xmenu.c, xrdb.c, xselect.c: | ||
| 13 | * xterm.c: | ||
| 14 | Omit needless casts involving void * pointers and allocation. | ||
| 15 | Prefer "P = xmalloc (sizeof *P)" to "P = xmalloc (sizeof (TYPE_OF_P))", | ||
| 16 | as the former is more robust if P's type is changed. | ||
| 17 | Prefer xzalloc to xmalloc + memset 0. | ||
| 18 | Simplify malloc-or-realloc to realloc. | ||
| 19 | Don't worry about xmalloc returning a null pointer. | ||
| 20 | Prefer xstrdup to xmalloc + strcpy. | ||
| 21 | * editfns.c (Fmessage_box): Grow message_text by at least 80 when | ||
| 22 | growing it. | ||
| 23 | * keyboard.c (apply_modifiers_uncached): Prefer local array to | ||
| 24 | alloca of a constant. | ||
| 25 | |||
| 1 | 2012-07-05 Eli Zaretskii <eliz@gnu.org> | 26 | 2012-07-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 27 | ||
| 3 | * xdisp.c (display_line): Fix horizontal pixel coordinates when | 28 | * xdisp.c (display_line): Fix horizontal pixel coordinates when |