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-861f7616d084master
parent
3f0b1959f2
commit
40742f8d8a
|
@ -193,6 +193,10 @@ sub printHdrGuard
|
|||
$$output .= "__INCLUDED_DB_TEMPLATE_SCHEMA_STRUCTDEF_${name}_H__";
|
||||
}
|
||||
|
||||
sub processCmdLine()
|
||||
{
|
||||
}
|
||||
|
||||
sub startFile()
|
||||
{
|
||||
my ($output, $name) = @_;
|
||||
|
|
|
@ -143,6 +143,8 @@ sub parseStruct
|
|||
}
|
||||
}
|
||||
|
||||
CG::processCmdLine(\@ARGV);
|
||||
|
||||
my @curComment = ();
|
||||
|
||||
# Read and parse the file
|
||||
|
|
|
@ -135,6 +135,10 @@ sub printStruct()
|
|||
$$output .= ";\n\n";
|
||||
}
|
||||
|
||||
sub processCmdLine()
|
||||
{
|
||||
}
|
||||
|
||||
sub startFile()
|
||||
{
|
||||
my ($output, $name) = @_;
|
||||
|
|
|
@ -145,6 +145,10 @@ sub printStruct()
|
|||
$$output .= ");\n\n";
|
||||
}
|
||||
|
||||
sub processCmdLine()
|
||||
{
|
||||
}
|
||||
|
||||
sub startFile()
|
||||
{
|
||||
my ($output, $name) = @_;
|
||||
|
|
Loading…
Reference in New Issue