bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] hash.c cleanup for stdbool.h


From: Paul Eggert
Subject: [Bug-gnulib] hash.c cleanup for stdbool.h
Date: 13 Mar 2003 11:54:20 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3

The following minor cleanup patch merges a change in Bison back into
gnulib.

2003-03-13  Paul Eggert  <address@hidden>

        * hash.c: Include <stdbool.h> unconditionally.

--- lib/hash.c  28 Nov 2002 00:34:24 -0000      1.30
+++ lib/hash.c  13 Mar 2003 19:44:25 -0000      1.31
@@ -1,5 +1,8 @@
 /* hash - hashing table processing.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software
+   Foundation, Inc.
+
    Written by Jim Meyering, 1992.
 
    This program is free software; you can redistribute it and/or modify
@@ -27,11 +30,8 @@
 #if HAVE_STDLIB_H
 # include <stdlib.h>
 #endif
-#if HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-typedef enum {false = 0, true = 1} bool;
-#endif
+
+#include <stdbool.h>
 #include <stdio.h>
 
 #ifndef HAVE_DECL_FREE




reply via email to

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