Changeset 144 in openpam for trunk


Ignore:
Timestamp:
May 9, 2002, 7:50:54 PM (17 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add support for marking up variable names and values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/misc/gendoc.pl

    r139 r144  
    3333# SUCH DAMAGE.
    3434#
    35 # $P4: //depot/projects/openpam/misc/gendoc.pl#13 $
     35# $P4: //depot/projects/openpam/misc/gendoc.pl#14 $
    3636#
    3737
     
    202202        s/\s*=$argnames\b\s*/\n.Va $1\n/gs;
    203203        s/\s*=(struct \w+(?: \*)?)\b\s*/\n.Vt $1\n/gs;
     204        s/\s*:([a-z_]+)\b\s*/\n.Va $1\n/gs;
     205        s/\s*;([a-z_]+)\b\s*/\n.Dv $1\n/gs;
    204206        if (s/\s*=([a-z_]+)\b\s*/\n.Xr $1 3\n/gs) {
    205207            ++$xref{"$1 3"};
     
    379381    $fn = "$func->{'name'}.3";
    380382    if (sysopen(FILE, $fn, O_RDWR|O_CREAT|O_TRUNC)) {
    381         print(FILE $mdoc);
    382         close(FILE);
     383        print(FILE $mdoc);
     384        close(FILE);
    383385    } else {
    384386        warn("$fn: open(): $!\n");
Note: See TracChangeset for help on using the changeset viewer.