Mercurial > hg > xemacs-beta
annotate etc/toolbar/workshop-cap-xx.xpm @ 4329:d9eb5ea14f65
Provide %b in #'format; use it for converting between ints and bit vectors.
lisp/ChangeLog addition:
2007-12-17 Aidan Kehoe <kehoea@parhasard.net>
* subr.el (integer-to-bit-vector): New.
* subr.el (bit-vector-to-integer): New.
Provide naive implementations using the Lisp reader for these.
src/ChangeLog addition:
2007-12-17 Aidan Kehoe <kehoea@parhasard.net>
* doprnt.c (emacs_doprnt_1):
Add support for formatted printing of both longs and bignums as
base 2.
* editfns.c (Fformat):
Document the new %b escape for #'format.
* lisp.h:
Make ulong_to_bit_string available beside long_to_string.
* lread.c:
Fix a bug where the integer base was being ignored in certain
contexts; thank you Sebastian Freundt. This is necessary for
correct behaviour of #'integer-to-bit-vector and
#'bit-vector-to-integer, just added to subr.el
* print.c (ulong_to_bit_string): New.
Analagous to long_to_string, but used all the time when %b is
encountered, since we can't pass that to sprintf.
man/ChangeLog addition:
2007-12-17 Aidan Kehoe <kehoea@parhasard.net>
* lispref/strings.texi (Formatting Strings):
Document %b for binary output.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 17 Dec 2007 08:44:14 +0100 |
parents | 3ecd8885ac67 |
children | 7910031dd78a |
rev | line source |
---|---|
428 | 1 /* XPM */ |
2 static char * xemacs-cap-workshop-xx_xpm[] = { | |
3 "33 33 8 1", | |
4 " c #BDBDBDBDBDBD s backgroundToolBarColor", | |
5 ". c #BDBDBDBDBDBD", | |
6 "X c #737373737373", | |
7 "o c #737373737373", | |
8 "O c #737373737373", | |
9 "+ c #BDBDBDBDBDBD", | |
10 "@ c #ADADADADADAD", | |
11 "# c #737373737373", | |
12 " ", | |
13 " ", | |
14 " ", | |
15 " .... ..... .. ", | |
16 " .XXXX ..XXXo OX. ", | |
17 " +XXo.. @XXO @@. ", | |
18 " XXX. .XXX O.. ", | |
19 " OXX+ @XXX O. ", | |
20 " @XXo. o@XXO.@@. XXX. . ", | |
21 " XXX..@ XXX.o.@X.. oX@ ", | |
22 " OXX@O oXX@O.X@.. .X@ ", | |
23 " .XXXO +XXX@+XO. @@ ", | |
24 " XXX XXX @XXO ", | |
25 " OXX OXO XXXX@ ", | |
26 " .X# @X@ @XXXXX@ ", | |
27 " X X .XXXXX@ ", | |
28 " .@XXXX ", | |
29 " @ .OXX ", | |
30 " @#. XX ", | |
31 " @X X ", | |
32 " @oo@..X@ ", | |
33 " ..XXX ", | |
34 " ", | |
35 " ", | |
36 " X X ", | |
37 " X X X X XX X ", | |
38 " X X X X X X XXX XX XXX ", | |
39 " X X X X X XX X X X X X X ", | |
40 " X X X XX X X X X X X X ", | |
41 " X X X X X X X X X X X ", | |
42 " X X X X XX X X XX XXX ", | |
43 " X ", | |
44 " "}; |