chiark / gitweb /
lib/keyword.c (kw_parseempty): Use correct variable scanning `kwval' list.
[sod] / src / builtin.lisp
index d07f5399572e1f19bf24dffbf4f996b391ac3df1..63107419e58e6518bb3db5313e1e84243871edde 100644 (file)
@@ -278,6 +278,16 @@          (default (sod-initarg-default initarg)))
     list))
 
 (definst suppliedp-struct (stream) (flags var)
     list))
 
 (definst suppliedp-struct (stream) (flags var)
+  "Declare a `suppliedp' structure VAR containing a bit for each named FLAG.
+
+   The output looks like this:
+
+       struct {
+         unsigned FLAG: 1;
+         /* ... */
+       } VAR;
+
+   Note that this will not be valid C unless there is at least one flag."
   (format stream
          "~@<struct { ~2I~_~{unsigned ~A: 1;~^ ~_~} ~I~_} ~A;~:>"
          flags var))
   (format stream
          "~@<struct { ~2I~_~{unsigned ~A: 1;~^ ~_~} ~I~_} ~A;~:>"
          flags var))