mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-29 10:01:53 +02:00
prod/doc/hmac.pl: updated copyright; cleaned up declaration of local variables
This commit is contained in:
parent
be2e8b18fb
commit
838b8e1ace
@ -2,8 +2,14 @@
|
||||
#
|
||||
# hmac.pl - Simple macro pre-processor for HTML
|
||||
#
|
||||
# Written 2001 by Werner Almesberger
|
||||
# Written 2001, 2011 by Werner Almesberger
|
||||
# Copyright 2001 EPFL DSC-ICA, Network Robots
|
||||
# Copyright 2001, 2011 Werner Almesberger
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -148,6 +154,7 @@ sub define_macro
|
||||
{
|
||||
local ($in) = @_;
|
||||
local ($a,$b,$c,$d);
|
||||
local ($name, $need, $prm, %arg);
|
||||
|
||||
$in =~ s/<MACRO\b/$BM/gi;
|
||||
$in =~ s|</MACRO>|$EM|gi;
|
||||
@ -210,7 +217,8 @@ sub define_macro
|
||||
sub expand_macro
|
||||
{
|
||||
local ($in) = @_;
|
||||
local ($found,$a,$b,$c);
|
||||
local ($a,$b,$c);
|
||||
local ($mac, $done, $prm, %arg);
|
||||
|
||||
undef $a;
|
||||
for $mac (keys %mac) {
|
||||
|
Loading…
Reference in New Issue
Block a user