sub process_file {
+#print STDERR "ICANHAZSTDERR\n";
# Allow for $package->process_file(%hash) in the future
my ($pkg, %options) = @_ % 2 ? @_ : (__PACKAGE__, @_);
$only_C_inlist{$_} = 1 if $out_type eq "OUTLIST";
# $name in line below appears to a global not previously declared or
# defined
- push @outlist, $name if $out_type =~ /OUTLIST$/;
+# push @outlist, $name if $out_type =~ /OUTLIST$/;
+ if ($out_type =~ /OUTLIST$/) {
+ print STDERR "matched OUTLIST, pushing \$name\n";
+ if (defined $name) {
+ print STDERR "name: $name\n";
+ push @outlist, $name;
+ }
+ else {
+ print STDERR "\$name is undefined\n";
+ push @outlist, undef;
+ }
+ }
$in_out{$_} = $out_type;
}
}
if (s/^([^=]*)\blength\(\s*(\w+)\s*\)\s*$/$1 XSauto_length_of_$2=NO_INIT/x) {
print "\tSTRLEN\tSTRLEN_length_of_$2;\n";
# $name in line below is global ?
- $lengthof{$2} = $name;
- # $islengthof{$name} = $1;
+# $lengthof{$2} = $name;
+ print STDERR "Inside INPUT_handler\n";
+ if (defined $name) {
+ print STDERR "name: $name\n";
+ $lengthof{$2} = $name;
+ }
+ else {
+ print STDERR "\$name is undefined\n";
+ $lengthof{$2} = undef;
+ }
$deferred .= "\n\tXSauto_length_of_$2 = STRLEN_length_of_$2;\n";
}