aat

git mirror of https://ccx.te2000.cz/bzr/aat
git clone https://ccx.te2000.cz/git/aat
Log | Files | Refs | README

commit a668eeab1eb16e4b4e131d379704723359fe0723
parent 807a36200cf27322edc0d97853ec697ec2a2fb8d
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Wed, 13 Aug 2014 13:28:19 +0200

fix @filename macro
Diffstat:
Mbin/aat.awk | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/aat.awk b/bin/aat.awk @@ -155,8 +155,9 @@ function call_macro(name, args, file_old) { # Macro to insert source filename as a variable into produced code else if(name == "filename"){ tok_type=T_AWK - token("filename = \"" gsub(/["\\]/, "\\&", args) "\n") - close(filename) + args = filename + gsub(/["\\]/, "\\&", args) + token("filename = \"" args "\"\n") } # Macro to read content of a file into a variable