1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/textproc/c2man/files/patch-grammar.y
Li-Wen Hsu a11a3cd203 Add c2man, tool to generate documentation from C source code comments
Add with DEPRECATED but without EXPIRATION_DATE because it is not recommended
for use in new projects.  We still add this port because there is needed for
building GNU FriBidi from git snapshot.

PR:		226915
Submitted by:	Ting-Wei Lan <lantw44@gmail.com>
2018-05-06 12:31:02 +00:00

23 lines
515 B
Plaintext

--- grammar.y.orig 1998-09-30 01:29:13 UTC
+++ grammar.y
@@ -14,7 +14,7 @@
%token T_INLINE
/* type specifiers */
-%token T_CHAR T_DOUBLE T_FLOAT T_INT T_VOID
+%token T_CHAR T_DOUBLE T_FLOAT T_INT T_VOID T_VALIST
%token T_LONG T_SHORT T_SIGNED T_UNSIGNED
%token T_ENUM T_STRUCT T_UNION
@@ -374,6 +374,10 @@ type_specifier
{
new_decl_spec(&$$, "void", DS_NONE);
}
+ | T_VALIST
+ {
+ new_decl_spec(&$$, "va_list", DS_NONE);
+ }
| struct_or_union_specifier
| enum_specifier
| T_TYPEDEF_NAME