changeset 1676:e8b3c6b52c1e

* 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.
author Jim Blandy <jimb@redhat.com>
date Sat, 12 Dec 1992 15:25:18 +0000
parents 2d6fee9f818d
children bf8ee433f4d2
files lib-src/make-docfile.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/make-docfile.c	Sat Dec 12 15:24:50 1992 +0000
+++ b/lib-src/make-docfile.c	Sat Dec 12 15:25:18 1992 +0000
@@ -200,6 +200,7 @@
   register int c;
   register int commas;
   register int defunflag;
+  register int defvarperbufferflag;
   register int defvarflag;
   int minargs, maxargs;
 
@@ -239,8 +240,22 @@
 	  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 @@
 
       if (defunflag)
 	commas = 5;
+      else if (defvarperbufferflag)
+	commas = 2;
       else if (defvarflag)
 	commas = 1;
       else  /* For DEFSIMPLE and DEFPRED */