Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so Turn bool, true and false into an enumerat...
details: https://anonhg.NetBSD.org/src/rev/c109642f29b3
branches: trunk
changeset: 473710:c109642f29b3
user: kleink <kleink%NetBSD.org@localhost>
date: Wed Jun 16 15:41:24 1999 +0000
description:
Turn bool, true and false into an enumeration and enumeration constants to
avoid integer promotion warnings.
diffstat:
libexec/ld.elf_so/rtld.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r 9cb61d6000a3 -r c109642f29b3 libexec/ld.elf_so/rtld.h
--- a/libexec/ld.elf_so/rtld.h Wed Jun 16 14:24:11 1999 +0000
+++ b/libexec/ld.elf_so/rtld.h Wed Jun 16 15:41:24 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.h,v 1.11 1999/05/31 14:48:16 kleink Exp $ */
+/* $NetBSD: rtld.h,v 1.12 1999/06/16 15:41:24 kleink Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -77,9 +77,10 @@
* C++ has mandated the use of the following keywords for its new boolean
* type. We might as well follow their lead.
*/
-typedef unsigned char bool;
-#define false 0
-#define true 1
+typedef enum {
+ false = 0,
+ true = 1
+} bool;
struct Struct_Obj_Entry;
Home |
Main Index |
Thread Index |
Old Index