Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys - comma at the end of an enum list is illegal in ansi c
details: https://anonhg.NetBSD.org/src/rev/00b14e00bb90
branches: trunk
changeset: 543252:00b14e00bb90
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 20 20:57:56 2003 +0000
description:
- comma at the end of an enum list is illegal in ansi c
- provide a list of unit names, so that programs don't have to provide their own
diffstat:
sys/sys/envsys.h | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 0c16a27c18d9 -r 00b14e00bb90 sys/sys/envsys.h
--- a/sys/sys/envsys.h Thu Feb 20 20:57:08 2003 +0000
+++ b/sys/sys/envsys.h Thu Feb 20 20:57:56 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: envsys.h,v 1.6 2002/12/31 05:27:29 explorer Exp $ */
+/* $NetBSD: envsys.h,v 1.7 2003/02/20 20:57:56 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -95,9 +95,16 @@
ENVSYS_SAMPHOUR,
ENVSYS_INDICATOR, /* boolean indicator */
ENVSYS_INTEGER, /* generic integer return */
- ENVSYS_NSENSORS,
+ ENVSYS_NSENSORS
};
+#ifdef ENVSYSUNITNAMES
+static const char *envsysunitnames[] = {
+ "degC", "RPM", "VAC", "V", "Ohms", "W",
+ "A", "Wh", "Ah", "bool", "integer", "Unk"
+};
+#endif
+
/* flags for validflags */
#define ENVSYS_FVALID 0x00000001 /* sensor is valid */
#define ENVSYS_FCURVALID 0x00000002 /* cur for this sens is valid */
Home |
Main Index |
Thread Index |
Old Index