Module Name:    src
Committed By:   dholland
Date:           Sun Mar 11 20:02:55 UTC 2012

Modified Files:
        src/usr.bin/config: util.c

Log Message:
Add some organizational comments


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/config/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/config/util.c
diff -u src/usr.bin/config/util.c:1.11 src/usr.bin/config/util.c:1.12
--- src/usr.bin/config/util.c:1.11	Sun Mar 11 08:21:53 2012
+++ src/usr.bin/config/util.c	Sun Mar 11 20:02:55 2012
@@ -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 cfgvxwarn(const char *, int,
 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 @@ sourcepath(const char *file)
 	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 @@ nvcat(struct nvlist *nv1, struct nvlist 
 	return nv1;
 }
 
+/*
+ * Attribute lists
+ */
+
 struct attrlist *
 attrlist_create(void)
 {
@@ -234,6 +254,10 @@ attrlist_destroyall(struct attrlist *al)
 }
 
 /*
+ * Condition expressions
+ */
+
+/*
  * Create an expression node.
  */
 struct condexpr *
@@ -302,6 +326,12 @@ condexpr_destroy(struct condexpr *expr)
 	free(expr);
 }
 
+/************************************************************/
+
+/*
+ * Diagnostic messages
+ */
+
 void
 cfgwarn(const char *fmt, ...)
 {

Reply via email to