Mercurial > hg > xemacs-beta
changeset 5455:7ebbe334061e
Merge with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Fri, 14 Jan 2011 23:16:18 +0100 |
parents | 03545aab8874 (current diff) c9d31263ab7d (diff) |
children | fe82be65969e |
files | lisp/ChangeLog lisp/dialog.el lwlib/ChangeLog lwlib/lwlib-fonts.c src/ChangeLog src/mc-alloc.c |
diffstat | 6 files changed, 27 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Fri Jan 07 23:35:53 2011 +0100 +++ b/lisp/ChangeLog Fri Jan 14 23:16:18 2011 +0100 @@ -1,3 +1,8 @@ +2011-01-10 Aidan Kehoe <kehoea@parhasard.net> + + * dialog.el (make-dialog-box): Correct a misplaced parenthesis + here, thank you Mats Lidell in 87zkr9gqrh.fsf@mail.contactor.se ! + 2011-01-02 Aidan Kehoe <kehoea@parhasard.net> * dialog.el (make-dialog-box):
--- a/lisp/dialog.el Fri Jan 07 23:35:53 2011 +0100 +++ b/lisp/dialog.el Fri Jan 14 23:16:18 2011 +0100 @@ -661,9 +661,9 @@ (remf rest :modal) (if modal (dialog-box-modal-loop `(make-dialog-box-internal ',type ',rest)) - (make-dialog-box-internal type rest)))) - (t - (make-dialog-box-internal type rest)))) + (make-dialog-box-internal type rest))) + (t + (make-dialog-box-internal type rest))))) (defun dialog-box-finish (result) "Exit a modal dialog box, returning RESULT.
--- a/lwlib/ChangeLog Fri Jan 07 23:35:53 2011 +0100 +++ b/lwlib/ChangeLog Fri Jan 14 23:16:18 2011 +0100 @@ -1,3 +1,10 @@ +2011-01-11 Aidan Kehoe <kehoea@parhasard.net> + + * lwlib-fonts.c (xft_open_font_by_name): + Replace the POSIX index(3), not universally available even today, + with the C89 strchr(3), hopefully fixing a few of the buildbots' + problems. + 2010-06-13 Stephen J. Turnbull <stephen@xemacs.org> * lwlib-internal.h: Correct FSF address in permission notice.
--- a/lwlib/lwlib-fonts.c Fri Jan 07 23:35:53 2011 +0100 +++ b/lwlib/lwlib-fonts.c Fri Jan 14 23:16:18 2011 +0100 @@ -74,7 +74,7 @@ int count = 0; char *pos = name; /* extra parens shut up gcc */ - while ((pos = index (pos, '-'))) + while ((pos = strchr (pos, '-'))) { count++; pos++; @@ -84,7 +84,7 @@ if (count == 14 /* fully-qualified XLFD */ || (count < 14 /* heuristic for wildcarded XLFD */ && count >= 5 - && index (name, '*'))) + && strchr (name, '*'))) res = XftFontOpenXlfd (dpy, DefaultScreen (dpy), name); else res = XftFontOpenName (dpy, DefaultScreen (dpy), name);
--- a/src/ChangeLog Fri Jan 07 23:35:53 2011 +0100 +++ b/src/ChangeLog Fri Jan 14 23:16:18 2011 +0100 @@ -1,3 +1,8 @@ +2011-01-10 Aidan Kehoe <kehoea@parhasard.net> + + * mc-alloc.c (get_used_list_index): + Replace some C++ comments with C-style /* comments. + 2011-01-02 Aidan Kehoe <kehoea@parhasard.net> * fns.c (FdeleteX, FremoveX, Fnsubstitute, Fsubstitute, syms_of_fns):
--- a/src/mc-alloc.c Fri Jan 07 23:35:53 2011 +0100 +++ b/src/mc-alloc.c Fri Jan 14 23:16:18 2011 +0100 @@ -1146,18 +1146,18 @@ { if (size <= USED_LIST_MIN_OBJECT_SIZE) { - // printf ("size %d -> index %d\n", size, 0); + /* printf ("size %d -> index %d\n", size, 0); */ return 0; } if (size <= (size_t) USED_LIST_UPPER_THRESHOLD) { - // printf ("size %d -> index %d\n", size, - // ((size - USED_LIST_MIN_OBJECT_SIZE - 1) - // / USED_LIST_LIN_STEP) + 1); + /* printf ("size %d -> index %d\n", size, */ + /* ((size - USED_LIST_MIN_OBJECT_SIZE - 1) */ + /* / USED_LIST_LIN_STEP) + 1); */ return ((size - USED_LIST_MIN_OBJECT_SIZE - 1) / USED_LIST_LIN_STEP) + 1; } - // printf ("size %d -> index %d\n", size, N_USED_PAGE_LISTS - 1); + /* printf ("size %d -> index %d\n", size, N_USED_PAGE_LISTS - 1); */ return N_USED_PAGE_LISTS - 1; }