Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Add some organizational comments
details: https://anonhg.NetBSD.org/src/rev/91aad04cdb53
branches: trunk
changeset: 777994:91aad04cdb53
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Mar 11 20:02:55 2012 +0000
description:
Add some organizational comments
diffstat:
usr.bin/config/util.c | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diffs (74 lines):
diff -r af57c703d555 -r 91aad04cdb53 usr.bin/config/util.c
--- a/usr.bin/config/util.c Sun Mar 11 19:39:36 2012 +0000
+++ b/usr.bin/config/util.c Sun Mar 11 20:02:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.11 2012/03/11 08:21:53 dholland Exp $ */
+/* $NetBSD: util.c,v 1.12 2012/03/11 20:02:55 dholland Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -62,6 +62,12 @@
static void cfgvxmsg(const char *, int, const char *, const char *, va_list)
__printflike(4, 0);
+/************************************************************/
+
+/*
+ * Prefix stack
+ */
+
/*
* Push a prefix onto the prefix stack.
*/
@@ -136,6 +142,16 @@
return (cp);
}
+/************************************************************/
+
+/*
+ * Data structures
+ */
+
+/*
+ * nvlist
+ */
+
struct nvlist *
newnv(const char *name, const char *str, void *ptr, long long i, struct nvlist *next)
{
@@ -188,6 +204,10 @@
return nv1;
}
+/*
+ * Attribute lists
+ */
+
struct attrlist *
attrlist_create(void)
{
@@ -234,6 +254,10 @@
}
/*
+ * Condition expressions
+ */
+
+/*
* Create an expression node.
*/
struct condexpr *
@@ -302,6 +326,12 @@
free(expr);
}
+/************************************************************/
+
+/*
+ * Diagnostic messages
+ */
+
void
cfgwarn(const char *fmt, ...)
{
Home |
Main Index |
Thread Index |
Old Index