mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-28 10:56:36 +00:00
* 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.
This commit is contained in:
parent
c71beb7551
commit
84128dee7b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user