Skip to content

Commit f1c570a

Browse files
authored
Add back original PERL-based script under new name
1 parent 181b962 commit f1c570a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

interface/create.pl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env perl
2+
3+
$count = 0;
4+
5+
foreach (@ARGV) {
6+
print "#define\tinterface_", $_, "\t\t", $count, "\n";
7+
$count ++;
8+
}
9+
10+
print "#ifdef USE_FUNCTABLE\n";
11+
12+
print "#define MAX_PROF_TABLE ", $count, "\n";
13+
14+
print "static char *func_table[] = {\n";
15+
16+
foreach (@ARGV) {
17+
print "\"", $_, "\",\n";
18+
}
19+
20+
print "};\n";
21+
print "#endif\n";
22+

0 commit comments

Comments
 (0)