diff options
| author | Paul Eggert | 2012-08-14 10:45:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-14 10:45:25 -0700 |
| commit | f5d9e83a70335308d5c6d18d62a7ac94f4bd431c (patch) | |
| tree | fc8adfdc499d17f2cc5afba12a70a157d7463258 /admin | |
| parent | 4abcdac823a757bffc204f5eb074eb09ad69e58a (diff) | |
| download | emacs-f5d9e83a70335308d5c6d18d62a7ac94f4bd431c.tar.gz emacs-f5d9e83a70335308d5c6d18d62a7ac94f4bd431c.zip | |
Use bool for Emacs Lisp booleans.
This is more natural, and on my platform (GCC 4.7.1 x86-64) it
makes Emacs's text size .03% smaller and presumably a bit faster.
* admin/merge-gnulib (GNULIB_MODULES): Add stdbool. This documents a
new direct dependency; stdbool was already being used indirectly
via other gnulib modules.
* lib-src/make-docfile.c (enum global_type): Sort values roughly in
decreasing alignment, except put functions last.
(compare_globals): Use this new property of enum global_type.
(write_globals): Use bool, not int, for booleans.
* src/lisp.h: Include <stdbool.h>.
(struct Lisp_Boolfwd, defvar_bool):
* src/lread.c (defvar_bool): Use bool, not int, for Lisp booleans.
* src/regex.c [!emacs]: Include <stdbool.h>.
(false, true): Remove; <stdbool.h> does this for us now.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 7 | ||||
| -rwxr-xr-x | admin/merge-gnulib | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index 18bb44491a1..c579930d2bf 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-08-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Use bool for Emacs Lisp booleans. | ||
| 4 | * merge-gnulib (GNULIB_MODULES): Add stdbool. This documents a | ||
| 5 | new direct dependency; stdbool was already being used indirectly | ||
| 6 | via other gnulib modules. | ||
| 7 | |||
| 1 | 2012-08-11 Glenn Morris <rgm@gnu.org> | 8 | 2012-08-11 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * bzrmerge.el (bzrmerge-resolve): Disable local eval:. | 10 | * bzrmerge.el (bzrmerge-resolve): Disable local eval:. |
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 49d194c8033..c5b9eba5ee6 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -32,7 +32,7 @@ GNULIB_MODULES=' | |||
| 32 | filemode getloadavg getopt-gnu gettime gettimeofday | 32 | filemode getloadavg getopt-gnu gettime gettimeofday |
| 33 | ignore-value intprops largefile lstat | 33 | ignore-value intprops largefile lstat |
| 34 | manywarnings mktime pselect pthread_sigmask readlink | 34 | manywarnings mktime pselect pthread_sigmask readlink |
| 35 | socklen stat-time stdalign stdarg stdio | 35 | socklen stat-time stdalign stdarg stdbool stdio |
| 36 | strftime strtoimax strtoumax symlink sys_stat | 36 | strftime strtoimax strtoumax symlink sys_stat |
| 37 | sys_time time timespec-add timespec-sub utimens | 37 | sys_time time timespec-add timespec-sub utimens |
| 38 | warnings | 38 | warnings |