Mention that the 'free' module, LIA-1.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 May 2004 07:29:34 +0000 (07:29 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 May 2004 07:29:34 +0000 (07:29 +0000)
ChangeLog
README

index f7a30443153b66833c24d70d42f4dc580f0d0b73..2c7c0aea8856509c0b9e77afa7290a5644da4d6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * README: Mention that the 'free' module works around the
+       problem with 'free (0)'.
+       Mention LIA-1 and C99.
+       Add a copyright notice.
+
 2004-05-17  Derek R. Price  <derek@ximbiot.com>
            Paul Eggert  <eggert@cs.ucla.edu>
 
diff --git a/README b/README
index ea528bd9b54f0a5e834ce4d842e306bf21d1ed4a..221aa9f829e2a49dc21d86adbbaf59b0e272c4c5 100644 (file)
--- a/README
+++ b/README
@@ -112,6 +112,8 @@ should use fixincludes or fix their include files manually.
 Even if the include files conform to C89, the library itself may not.
 For example, SunOS 4's (free (NULL)) can dump core, so GNULib code
 must avoid freeing a null pointer, even though C89 allows it.
+You can work around some of these problems by requiring the relevant
+modules, e.g., the GNULib 'free' module supplies a conforming 'free'.
 
 The GNU coding standards allow one departure from strict C99: GNULib
 code can assume that standard internal types like size_t are no wider
@@ -120,7 +122,9 @@ require 'int' to be at least 32 bits wide, so GNULib code assumes this
 as well.  GNULib code makes the following additional assumptions:
 
  * Signed integer arithmetic is two's complement, without runtime
-   overflow checking.
+   overflow checking.  This is the traditional behavior, and is
+   supported by C99 implementations that conform to ISO/IEC 10967-1
+   (LIA-1) and that define signed integer types as being modulo.
 
  * There are no "holes" in integer values: all the bits of an integer
    contribute to its value in the usual way.
@@ -174,3 +178,21 @@ $ cvs -d :pserver:anoncvs@cvs.gnu.org:/cvsroot/gnulib login
 (Just hit Enter or Return when prompt for a password)
 $ cvs -d :pserver:anoncvs@cvs.gnu.org:/cvsroot/gnulib checkout gnulib
 
+
+-----
+
+Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software Foundation,
+Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */