Give the code generators the ability to process command line arguments (before the parsing begins)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5431 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-07-09 12:46:53 +00:00
parent 3f0b1959f2
commit 40742f8d8a
4 changed files with 14 additions and 0 deletions

View File

@ -193,6 +193,10 @@ sub printHdrGuard
$$output .= "__INCLUDED_DB_TEMPLATE_SCHEMA_STRUCTDEF_${name}_H__";
}
sub processCmdLine()
{
}
sub startFile()
{
my ($output, $name) = @_;

View File

@ -143,6 +143,8 @@ sub parseStruct
}
}
CG::processCmdLine(\@ARGV);
my @curComment = ();
# Read and parse the file

View File

@ -135,6 +135,10 @@ sub printStruct()
$$output .= ";\n\n";
}
sub processCmdLine()
{
}
sub startFile()
{
my ($output, $name) = @_;

View File

@ -145,6 +145,10 @@ sub printStruct()
$$output .= ");\n\n";
}
sub processCmdLine()
{
}
sub startFile()
{
my ($output, $name) = @_;