annotate etc/custom/folder.xpm @ 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 5a88923fcbfe
children 7910031dd78a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
1 /* XPM */
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
2 static char *folder[] = {
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
3 /* width height num_colors chars_per_pixel */
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
4 " 17 17 4 1",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
5 /* colors */
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
6 ". c #000000",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
7 "a c #a8b038",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
8 "b c #f8f800",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
9 "c s None c None",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
10 /* pixels */
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
11 "ccccccccccccccccc",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
12 "ccccccccccccccccc",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
13 "ccccccccccccccccc",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
14 "ccccccccccccccccc",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
15 "cccccccccaaaaaacc",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
16 "ccccccccaaaaaaacc",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
17 "cc......a.a.a.aac",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
18 "c.bbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
19 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
20 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
21 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
22 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
23 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
24 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
25 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
26 ".bbbbbbbbbbbbbb.c",
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
27 "a..............ac"
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
28 };