don't use the file header template if it isn't available in the c_structdef code generator

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5464 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-07-10 10:58:13 +00:00
parent faf8153b50
commit a80776b9fa
1 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,8 @@ sub startFile()
printHdrGuard($output, $outfile); printHdrGuard($output, $outfile);
$$output .= "\n\n"; $$output .= "\n\n";
return unless $startTpl;
$$output .= "#line 1 \"$startTpl\"\n"; $$output .= "#line 1 \"$startTpl\"\n";
open (TEMPL, $startTpl); open (TEMPL, $startTpl);
while (<TEMPL>) while (<TEMPL>)