2 # Get function prototypes
5 #use Fatal qw(open close rename chmod unlink);
6 open DESC, 'regcomp.sym';
13 ($name[$ind], $desc, $rest[$ind]) = split /\t+/, $_, 3;
14 ($type[$ind], $code[$ind], $args[$ind], $longj[$ind])
15 = split /[,\s]\s*/, $desc, 4;
22 unlink $tmp_h if -f $tmp_h;
27 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
28 This file is built by regcomp.pl from regcomp.sym.
29 Any changes made here will be lost!
35 while (++$ind <= $tot) {
37 $hind = sprintf "%#4x", $oind;
39 #define $name[$ind] $oind /* $hind $rest[$ind] */
46 EXTCONST U8 PL_regkind[];
48 EXTCONST U8 PL_regkind[] = {
52 while (++$ind <= $tot) {
54 $type[$ind], /* $name[$ind] */
64 static const U8 regarglen[] = {
68 while (++$ind <= $tot) {
70 $size = "EXTRA_SIZE(struct regnode_$args[$ind])" if $args[$ind];
73 $size, /* $name[$ind] */
80 static const char reg_off_by_arg[] = {
84 while (++$ind <= $tot) {
85 $size = $longj[$ind] || 0;
88 $size, /* $name[$ind] */
96 static const char * const reg_name[] = {
100 while (++$ind <= $tot) {
101 $hind = sprintf "%#4x", $ind-1;
102 $size = $longj[$ind] || 0;
105 "$name[$ind]", /* $hind */
112 static const int reg_num = $tot;
114 #endif /* DEBUGGING */
115 #endif /* REG_COMP_C */
119 close OUT or die "close $tmp_h: $!";
121 safer_rename $tmp_h, 'regnodes.h';