summaryrefslogtreecommitdiff
path: root/protos
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1994-10-17 23:00:00 +0000
committerLarry Wall <lwall@netlabs.com>1994-10-17 23:00:00 +0000
commita0d0e21ea6ea90a22318550944fe6cb09ae10cda (patch)
treefaca1018149b736b1142f487e44d1ff2de5cc1fa /protos
parent85e6fe838fb25b257a1b363debf8691c0992ef71 (diff)
downloadperl-a0d0e21ea6ea90a22318550944fe6cb09ae10cda.tar.gz
perl 5.000perl-5.000
[editor's note: this commit combines approximate 4 months of furious releases of Andy Dougherty and Larry Wall - see pod/perlhist.pod for details. Andy notes that; Alas neither my "Irwin AccuTrack" nor my DC 600A quarter-inch cartridge backup tapes from that era seem to be readable anymore. I guess 13 years exceeds the shelf life for that backup technology :-(. ]
Diffstat (limited to 'protos')
-rwxr-xr-xprotos42
1 files changed, 0 insertions, 42 deletions
diff --git a/protos b/protos
deleted file mode 100755
index ff399654c9..0000000000
--- a/protos
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/perl
-
-$/ = "\n{\n";
-
-while (<>) {
- chop; next unless chop($_) eq "{";
- s/[^\0]*\n\n//;
- $* = 1;
- s/^#.*\n//g;
- $* = 0;
- tr/\n/ /;
- s#\*/#\200#g;
- s#/\*[^\200]*\200##g;
- /\b\w+\(/ || next;
- $funtype = $`;
- $name = $&;
- $_ = $';
- /\)\s*/ || next;
- $args = $`;
- $types = $';
- $args =~ tr/ \t//d;
- @args = split(/,/,$args);
- @types = split(/;\s*/, $types);
- %type = ();
- foreach $type (@types) {
- $type =~ /.*\b(\w+)/;
- $type{$1} = $type;
- }
- foreach $arg (@args) {
- $arg = $type{$arg} || $arg;
- $arg =~ s/register //;
- }
- $funtype =~ s/\* $/*/;
- $funtype =~ s/^ *//;
- chop $name;
- if (@args) {
- print $funtype, $name, " P((", join(', ', @args), "));\n";
- }
- else {
- print $funtype, $name, " P((void));\n";
- }
-}