summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-12-12 15:25:18 +0000
committerJim Blandy <jimb@redhat.com>1992-12-12 15:25:18 +0000
commit34236af73e6454e9a3b581e98149f464fa428a4c (patch)
tree2a75def97aa01e9773d7940fcde4f7a8432e9a34 /lib-src/make-docfile.c
parentca16b2bced329e411f9357e54d1925eafeca90ac (diff)
downloademacs-34236af73e6454e9a3b581e98149f464fa428a4c.tar.gz
* make-docfile.c (scan_c_file): Since DEFVAR_PER_BUFFER now takes
a different number of arguments than other DEFVARs, recognize it specially, and expect the right number of commas.
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 3b5d3a16052..83602f86e8a 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -200,6 +200,7 @@ scan_c_file (filename)
register int c;
register int commas;
register int defunflag;
+ register int defvarperbufferflag;
register int defvarflag;
int minargs, maxargs;
@@ -239,8 +240,22 @@ scan_c_file (filename)
c = getc (infile);
if (c != 'V')
continue;
+ c = getc (infile);
+ if (c != 'A')
+ continue;
+ c = getc (infile);
+ if (c != 'R')
+ continue;
+ c = getc (infile);
+ if (c != '_')
+ continue;
+
defvarflag = 1;
defunflag = 0;
+
+ c = getc (infile);
+ defvarperbufferflag = (c == 'P');
+
c = getc (infile);
}
else if (c == 'D')
@@ -271,6 +286,8 @@ scan_c_file (filename)
if (defunflag)
commas = 5;
+ else if (defvarperbufferflag)
+ commas = 2;
else if (defvarflag)
commas = 1;
else /* For DEFSIMPLE and DEFPRED */