Browse Source

Add back original PERL-based script under new name

tags/v0.3.21
Martin Kroeker GitHub 3 years ago
parent
commit
f1c570a5f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      interface/create.pl

+ 22
- 0
interface/create.pl View File

@@ -0,0 +1,22 @@
#!/usr/bin/env perl

$count = 0;

foreach (@ARGV) {
print "#define\tinterface_", $_, "\t\t", $count, "\n";
$count ++;
}

print "#ifdef USE_FUNCTABLE\n";

print "#define MAX_PROF_TABLE ", $count, "\n";

print "static char *func_table[] = {\n";

foreach (@ARGV) {
print "\"", $_, "\",\n";
}

print "};\n";
print "#endif\n";


Loading…
Cancel
Save