emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116813: * internals.texi (C Integer Types): Prefer


From: Paul Eggert
Subject: [Emacs-diffs] trunk r116813: * internals.texi (C Integer Types): Prefer 'false' and 'true'
Date: Thu, 20 Mar 2014 17:58:06 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116813
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Thu 2014-03-20 10:58:01 -0700
message:
  * internals.texi (C Integer Types): Prefer 'false' and 'true'
  
  to '0' and '1' for booleans.
modified:
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/internals.texi     
internals.texi-20091113204419-o5vbwnq5f7feedwu-6188
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2014-03-19 21:21:01 +0000
+++ b/doc/lispref/ChangeLog     2014-03-20 17:58:01 +0000
@@ -1,3 +1,8 @@
+2014-03-20  Paul Eggert  <address@hidden>
+
+       * internals.texi (C Integer Types): Prefer 'false' and 'true'
+       to '0' and '1' for booleans.
+
 2014-03-19  Paul Eggert  <address@hidden>
 
        * numbers.texi: Improve and clarify a bit, and fix some minor bugs.

=== modified file 'doc/lispref/internals.texi'
--- a/doc/lispref/internals.texi        2014-03-18 01:19:03 +0000
+++ b/doc/lispref/internals.texi        2014-03-20 17:58:01 +0000
@@ -1620,10 +1620,10 @@
 int} so that their values are 0 and 1.
 
 @item
-In C, Emacs commonly uses @code{bool}, 1, and 0 for boolean values.
-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
address@hidden, 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]