Date:2011-05-27 16:21:13 (8 years 5 months ago)
Author:Werner Almesberger
Commit:838b8e1ace140934c659840f026a7020cf71550d
Message:prod/doc/hmac.pl: updated copyright; cleaned up declaration of local variables

Files: prod/doc/hmac.pl (3 diffs)

Change Details

prod/doc/hmac.pl
22#
33# hmac.pl - Simple macro pre-processor for HTML
44#
5# Written 2001 by Werner Almesberger
5# Written 2001, 2011 by Werner Almesberger
66# Copyright 2001 EPFL DSC-ICA, Network Robots
7# Copyright 2001, 2011 Werner Almesberger
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2 of the License, or
12# (at your option) any later version.
713#
814
915#------------------------------------------------------------------------------
...... 
148154{
149155    local ($in) = @_;
150156    local ($a,$b,$c,$d);
157    local ($name, $need, $prm, %arg);
151158
152159    $in =~ s/<MACRO\b/$BM/gi;
153160    $in =~ s|</MACRO>|$EM|gi;
...... 
210217sub expand_macro
211218{
212219    local ($in) = @_;
213    local ($found,$a,$b,$c);
220    local ($a,$b,$c);
221    local ($mac, $done, $prm, %arg);
214222
215223    undef $a;
216224    for $mac (keys %mac) {

Archive Download the corresponding diff file



interactive