Mercurial > hg > xemacs-beta
annotate nt/x11.patch @ 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 | 15872534500d |
children |
rev | line source |
---|---|
169 | 1 *** X11.def.old Thu Apr 10 07:29:27 1997 |
2 --- X11.def Wed Jul 02 22:20:16 1997 | |
3 *************** | |
4 *** 5,15 **** | |
5 VERSION 6.1 | |
6 EXPORTS | |
7 _Xdebug_p=_Xdebug CONSTANT | |
8 - _XCreateMutex_fn_p=_XCreateMutex_fn CONSTANT | |
9 - _XFreeMutex_fn_p=_XFreeMutex_fn CONSTANT | |
10 - _XLockMutex_fn_p=_XLockMutex_fn CONSTANT | |
11 - _XUnlockMutex_fn_p=_XUnlockMutex_fn CONSTANT | |
12 - _Xglobal_lock_p=_Xglobal_lock CONSTANT | |
13 XActivateScreenSaver | |
14 XAddConnectionWatch | |
15 XAddExtension | |
16 --- 5,10 ---- | |
17 *************** | |
18 *** 623,630 **** | |
19 _XUnregisterFilter | |
20 _XUnregisterInternalConnection | |
21 _XVIDtoVisual | |
22 - _Xthread_init | |
23 - _Xthread_waiter | |
24 XkbIgnoreExtension | |
25 XkbOpenDisplay | |
26 XkbQueryExtension | |
27 --- 618,623 ---- |