Mercurial > hg > xemacs-beta
annotate lwlib/lwlib-Xlw.h @ 5272:66dbef5f8076
Be better about bounds-checking, #'subseq, #'fill; add same, #'reduce.
2010-09-16 Aidan Kehoe <kehoea@parhasard.net>
* fns.c (Fsubseq):
Change the string code to better fit in with the rest of this
function (it still uses get_string_range_char(), though, which *may*
diverge algorithmically from what we're doing).
If dealing with a cons, only call #'length if we have reason to
believe that the START and END arguments are badly specified, and
check for circular lists ourselves when that's appropriate.
If dealing with a vector, call Fvector() on the appropriate subset
of the old vector's data directly, don't initialise the result
with nil and then copy.
(Ffill):
Only check the range arguments for a cons SEQUENCE if we have good
reason to think they were badly specified.
(Freduce):
Handle multiple values properly. Add bounds checking to this
function, as specificied by ANSI Common Lisp.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 16 Sep 2010 18:46:05 +0100 |
parents | 98528da0b7fc |
children | ade4c7e2c6cb |
rev | line source |
---|---|
0 | 1 #ifndef LWLIB_XLW_H |
2 #define LWLIB_XLW_H | |
3 | |
4 #include "lwlib-internal.h" | |
5 | |
450 | 6 extern const widget_creation_entry xlw_creation_table []; |
0 | 7 extern widget_creation_function xlw_create_dialog; |
8 | |
9 Boolean | |
10 lw_lucid_widget_p (Widget widget); | |
11 | |
12 void | |
13 xlw_update_one_widget (widget_instance* instance, Widget widget, | |
14 widget_value* val, Boolean deep_p); | |
15 | |
16 void | |
17 xlw_update_one_value (widget_instance* instance, Widget widget, | |
18 widget_value* val); | |
19 | |
20 void | |
21 xlw_destroy_instance (widget_instance* instance); | |
22 | |
23 void | |
24 xlw_pop_instance (widget_instance* instance, Boolean up); | |
25 | |
26 void | |
27 xlw_popup_menu (Widget widget, XEvent *event); | |
28 | |
29 #endif /* LWLIB_XLW_H */ |