Changeset 845 in openpam for trunk/misc/gendoc.pl


Ignore:
Timestamp:
Dec 11, 2014, 1:56:51 PM (6 years ago)
Author:
Dag-Erling Smørgrav
Message:

Recognize enums and unions as well as structs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/misc/gendoc.pl

    r728 r845  
    293293        s/\s*=($func)\b\s*/\n.Fn $1\n/gs;
    294294        s/\s*=($argnames)\b\s*/\n.Fa $1\n/gs;
    295         s/\s*=(struct \w+(?: \*)?)\b\s*/\n.Vt $1\n/gs;
     295        s/\s*=((?:enum|struct|union) \w+(?: \*)?)\b\s*/\n.Vt $1\n/gs;
    296296        s/\s*:([a-z][0-9a-z_]+)\b\s*/\n.Va $1\n/gs;
    297297        s/\s*;([a-z][0-9a-z_]+)\b\s*/\n.Dv $1\n/gs;
Note: See TracChangeset for help on using the changeset viewer.