CORBA-IDLtree
view release on metacpan or search on metacpan
lib/CORBA/IDLtree.pm view on Meta::CPAN
my @remark = (); # Auxiliary to comment processing
my @post_comment = (); # Auxiliary to comment processing
my @global_items = (); # Auxiliary to sub unget_items
my $findnode_cache = new CORBA::IDLtree::Cache();
# Auxiliary to find_node_i(): cache for lookups
my $abstract = 0; # can also contain LOCAL (for interfaces)
my $currfile = -1;
my $starting_line_number_of_remark = 0; # 0 = there is no pre comment
my $line_number_of_post_comment = 0; # 0 = there is no post comment
my $emucpp = 1; # use C preprocessor emulation
my $locale_was_determined = 0;
my $locale = undef;
sub locate_executable {
# FIXME: this is probably another reinvention of the wheel.
# Should look for builtin Perl solution or CPAN module that does this.
my $executable = shift;
# my $pathsep = $Config{'path_sep'};
my $pathsep = ':';
my $fully_qualified_name = "";
my @dirs = split(/$pathsep/, $ENV{'PATH'});
foreach (@dirs) {
lib/CORBA/IDLtree.pm view on Meta::CPAN
@line_number = ();
$n_errors = 0; # auxiliary to sub error
@remark = (); # Auxiliary to comment processing
@post_comment = (); # Auxiliary to comment processing
$abstract = 0;
$currfile = -1;
$did_emucppmsg = 0; # auxiliary to sub emucppmsg
@scopestack = ();
@prev_symroots = ();
%active_defines = %defines;
unless ($locale_was_determined) {
foreach my $env ('LANG', 'LOCALE', 'LC_ALL') {
if (exists $ENV{$env}) {
my $lang = $ENV{$env};
if ($lang && $lang ne "C") {
$locale = $lang;
last;
}
}
}
$locale_was_determined = 1;
}
my $res = Parse_File_i($filename);
if ($cache_statistics) {
print "Node cache: " . $findnode_cache->ratio()."\n";
print "Include cache: " . $includecache->ratio()."\n";
}
if ($res && !@$res) {
warn "Warning: CORBA::IDLtree::Parse_File: $filename is empty\n";
$res = 0;
} elsif ($cache_trees) {
( run in 0.590 second using v1.01-cache-2.11-cpan-ceb78f64989 )