2 # Get function prototypes
3 require 'regen_lib.pl';
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;
28 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
29 This file is built by regcomp.pl from regcomp.sym.
30 Any changes made here will be lost!
36 while (++$ind <= $tot) {
38 $hind = sprintf "%#4x", $oind;
40 #define $name[$ind] $oind /* $hind $rest[$ind] */
47 EXTCONST U8 PL_regkind[];
49 EXTCONST U8 PL_regkind[] = {
53 while (++$ind <= $tot) {
55 $type[$ind], /* $name[$ind] */
65 static const U8 regarglen[] = {
69 while (++$ind <= $tot) {
71 $size = "EXTRA_SIZE(struct regnode_$args[$ind])" if $args[$ind];
74 $size, /* $name[$ind] */
81 static const char reg_off_by_arg[] = {
85 while (++$ind <= $tot) {
86 $size = $longj[$ind] || 0;
89 $size, /* $name[$ind] */
97 static const char * const reg_name[] = {
101 while (++$ind <= $tot) {
102 $hind = sprintf "%#4x", $ind-1;
103 $size = $longj[$ind] || 0;
106 "$name[$ind]", /* $hind */
113 static const int reg_num = $tot;
115 #endif /* DEBUGGING */
116 #endif /* REG_COMP_C */
120 close OUT or die "close $tmp_h: $!";
122 safer_rename $tmp_h, 'regnodes.h';