2 # Copyright 1999, 2000, 2001 Patrik Stridvall
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 my $class = ref($proto) || $proto;
28 bless ($self, $class);
35 my $file = \
${$self->{FILE
}};
39 if(defined($_)) { $$file = $_; }
44 sub debug_channels
($$) {
46 my $debug_channels = \
${$self->{DEBUG_CHANNELS
}};
50 if(defined($_)) { $$debug_channels = $_; }
52 return $$debug_channels;
55 sub documentation_line
($$) {
57 my $documentation_line = \
${$self->{DOCUMENTATION_LINE
}};
61 if(defined($_)) { $$documentation_line = $_; }
63 return $$documentation_line;
66 sub documentation
($$) {
68 my $documentation = \
${$self->{DOCUMENTATION
}};
72 if(defined($_)) { $$documentation = $_; }
74 return $$documentation;
77 sub function_line
($$) {
79 my $function_line = \
${$self->{FUNCTION_LINE
}};
83 if(defined($_)) { $$function_line = $_; }
85 return $$function_line;
90 my $linkage = \
${$self->{LINKAGE
}};
94 if(defined($_)) { $$linkage = $_; }
101 my $return_type = \
${$self->{RETURN_TYPE
}};
105 if(defined($_)) { $$return_type = $_; }
107 return $$return_type;
110 sub calling_convention
($$) {
112 my $calling_convention = \
${$self->{CALLING_CONVENTION
}};
116 if(defined($_)) { $$calling_convention = $_; }
118 return $$calling_convention;
121 sub internal_name
($$) {
123 my $internal_name = \
${$self->{INTERNAL_NAME
}};
127 if(defined($_)) { $$internal_name = $_; }
129 return $$internal_name;
132 sub argument_types
($$) {
134 my $argument_types = \
${$self->{ARGUMENT_TYPES
}};
138 if(defined($_)) { $$argument_types = $_; }
140 return $$argument_types;
143 sub argument_names
($$) {
145 my $argument_names = \
${$self->{ARGUMENT_NAMES
}};
149 if(defined($_)) { $$argument_names = $_; }
151 return $$argument_names;
154 sub argument_documentations
($$) {
156 my $argument_documentations = \
${$self->{ARGUMENT_DOCUMENTATIONS
}};
160 if(defined($_)) { $$argument_documentations = $_; }
162 return $$argument_documentations;
165 sub statements_line
($$) {
167 my $statements_line = \
${$self->{STATEMENTS_LINE
}};
171 if(defined($_)) { $$statements_line = $_; }
173 return $$statements_line;
178 my $statements = \
${$self->{STATEMENTS
}};
182 if(defined($_)) { $$statements = $_; }