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 /* -*- buffer-read-only: t -*-
29 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
30 This file is built by regcomp.pl from regcomp.sym.
31 Any changes made here will be lost!
37 while (++$ind <= $tot) {
39 $hind = sprintf "%#4x", $oind;
41 #define $name[$ind] $oind /* $hind $rest[$ind] */
48 EXTCONST U8 PL_regkind[];
50 EXTCONST U8 PL_regkind[] = {
54 while (++$ind <= $tot) {
56 $type[$ind], /* $name[$ind] */
66 static const U8 regarglen[] = {
70 while (++$ind <= $tot) {
72 $size = "EXTRA_SIZE(struct regnode_$args[$ind])" if $args[$ind];
75 $size, /* $name[$ind] */
82 static const char reg_off_by_arg[] = {
86 while (++$ind <= $tot) {
87 $size = $longj[$ind] || 0;
90 $size, /* $name[$ind] */
98 static const char * const reg_name[] = {
102 while (++$ind <= $tot) {
103 $hind = sprintf "%#4x", $ind-1;
104 $size = $longj[$ind] || 0;
107 "$name[$ind]", /* $hind */
114 static const int reg_num = $tot;
116 #endif /* DEBUGGING */
117 #endif /* REG_COMP_C */
122 close OUT or die "close $tmp_h: $!";
124 safer_rename $tmp_h, 'regnodes.h';