line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
#
|
3
|
|
|
|
|
|
|
# Interface Definition Language (OMG IDL CORBA v3.0)
|
4
|
|
|
|
|
|
|
#
|
5
|
|
|
|
|
|
|
# C Language Mapping Specification, New Edition June 1999
|
6
|
|
|
|
|
|
|
#
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package CORBA::XS::SkeletonCVisitor;
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
6
|
use strict;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
12
|
1
|
|
|
1
|
|
5
|
use warnings;
|
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
41
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.60';
|
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
|
950
|
use CORBA::C::SkeletonVisitor;
|
|
1
|
|
|
|
|
2137
|
|
|
1
|
|
|
|
|
30
|
|
17
|
1
|
|
|
1
|
|
6
|
use base qw(CORBA::C::SkeletonVisitor);
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
169
|
|
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
4
|
use File::Basename;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
49
|
|
20
|
1
|
|
|
1
|
|
4
|
use POSIX qw(ctime);
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# needs $node->{c_name} (CnameVisitor) and $node->{c_arg} (CincludeVisitor)
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub new {
|
25
|
0
|
|
|
0
|
0
|
|
my $proto = shift;
|
26
|
0
|
|
0
|
|
|
|
my $class = ref($proto) || $proto;
|
27
|
0
|
|
|
|
|
|
my $self = {};
|
28
|
0
|
|
|
|
|
|
bless $self, $class;
|
29
|
0
|
|
|
|
|
|
my ($parser, $prefix) = @_;
|
30
|
0
|
0
|
|
|
|
|
$prefix = 'skel_' if (!defined $prefix);
|
31
|
|
|
|
|
|
|
# $self->{prefix} = $prefix;
|
32
|
0
|
|
|
|
|
|
$self->{prefix} = q{};
|
33
|
0
|
|
|
|
|
|
$self->{srcname} = $parser->YYData->{srcname};
|
34
|
0
|
|
|
|
|
|
$self->{srcname_size} = $parser->YYData->{srcname_size};
|
35
|
0
|
|
|
|
|
|
$self->{srcname_mtime} = $parser->YYData->{srcname_mtime};
|
36
|
0
|
|
|
|
|
|
$self->{symbtab} = $parser->YYData->{symbtab};
|
37
|
0
|
|
|
|
|
|
my $filename = $prefix . basename($self->{srcname}, '.idl') . '.c';
|
38
|
0
|
|
|
|
|
|
$self->parse($filename);
|
39
|
0
|
|
|
|
|
|
$self->open_stream($filename);
|
40
|
0
|
|
|
|
|
|
$self->{done_hash} = {};
|
41
|
0
|
|
|
|
|
|
$self->{num_key} = 'num_skel_c';
|
42
|
0
|
|
|
|
|
|
return $self;
|
43
|
|
|
|
|
|
|
}
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1;
|
46
|
|
|
|
|
|
|
|