Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4c073dab
Commit
4c073dab
authored
Mar 20, 2014
by
Paul Eggert
Browse files
* internals.texi (C Integer Types): Prefer 'false' and 'true'
to '0' and '1' for booleans.
parent
0df098bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+5
-0
doc/lispref/internals.texi
doc/lispref/internals.texi
+4
-4
No files found.
doc/lispref/ChangeLog
View file @
4c073dab
2014-03-20 Paul Eggert <eggert@cs.ucla.edu>
* internals.texi (C Integer Types): Prefer 'false' and 'true'
to '0' and '1' for booleans.
2014-03-19 Paul Eggert <eggert@cs.ucla.edu>
* numbers.texi: Improve and clarify a bit, and fix some minor bugs.
...
...
doc/lispref/internals.texi
View file @
4c073dab
...
...
@@ -1620,10 +1620,10 @@ might not be. Single-bit bit fields are invariably @code{unsigned
int} so that their values are 0 and 1.
@item
In C, Emacs commonly uses @code{bool}, 1, and 0
for boolean
value
s.
Using @code{bool}
for booleans
can make programs easier to read and a
bit faster than
using @code{int}. Although it is also OK to use
@code{
int
}, this older style is gradually being phased out. When
Prefer @code{bool}, @code{false} and @code{true}
for booleans.
Using @code{bool} can make programs easier to read and a
bit faster than
using @code{int}. Although it is also OK to use
@code{int}, @code{0}
and
@code{
1
}, this older style is gradually being phased out. When
using @code{bool}, respect the limitations of the replacement
implementation of @code{bool}, as documented in the source file
@file{lib/stdbool.in.h}, so that Emacs remains portable to pre-C99
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment