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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 my $class = ref($proto) || $proto;
27 bless ($self, $class);
34 my $file = \
${$self->{FILE
}};
38 if(defined($_)) { $$file = $_; }
43 sub debug_channels
($$) {
45 my $debug_channels = \
${$self->{DEBUG_CHANNELS
}};
49 if(defined($_)) { $$debug_channels = $_; }
51 return $$debug_channels;
54 sub documentation_line
($$) {
56 my $documentation_line = \
${$self->{DOCUMENTATION_LINE
}};
60 if(defined($_)) { $$documentation_line = $_; }
62 return $$documentation_line;
65 sub documentation
($$) {
67 my $documentation = \
${$self->{DOCUMENTATION
}};
71 if(defined($_)) { $$documentation = $_; }
73 return $$documentation;
76 sub function_line
($$) {
78 my $function_line = \
${$self->{FUNCTION_LINE
}};
82 if(defined($_)) { $$function_line = $_; }
84 return $$function_line;
89 my $linkage = \
${$self->{LINKAGE
}};
93 if(defined($_)) { $$linkage = $_; }
100 my $return_type = \
${$self->{RETURN_TYPE
}};
104 if(defined($_)) { $$return_type = $_; }
106 return $$return_type;
109 sub calling_convention
($$) {
111 my $calling_convention = \
${$self->{CALLING_CONVENTION
}};
115 if(defined($_)) { $$calling_convention = $_; }
117 return $$calling_convention;
120 sub internal_name
($$) {
122 my $internal_name = \
${$self->{INTERNAL_NAME
}};
126 if(defined($_)) { $$internal_name = $_; }
128 return $$internal_name;
131 sub argument_types
($$) {
133 my $argument_types = \
${$self->{ARGUMENT_TYPES
}};
137 if(defined($_)) { $$argument_types = $_; }
139 return $$argument_types;
142 sub argument_names
($$) {
144 my $argument_names = \
${$self->{ARGUMENT_NAMES
}};
148 if(defined($_)) { $$argument_names = $_; }
150 return $$argument_names;
153 sub argument_documentations
($$) {
155 my $argument_documentations = \
${$self->{ARGUMENT_DOCUMENTATIONS
}};
159 if(defined($_)) { $$argument_documentations = $_; }
161 return $$argument_documentations;
164 sub statements_line
($$) {
166 my $statements_line = \
${$self->{STATEMENTS_LINE
}};
170 if(defined($_)) { $$statements_line = $_; }
172 return $$statements_line;
177 my $statements = \
${$self->{STATEMENTS
}};
181 if(defined($_)) { $$statements = $_; }