| 1 | BEGIN {
|
|---|
| 2 | # Get function prototypes
|
|---|
| 3 | require 'regen_lib.pl';
|
|---|
| 4 | }
|
|---|
| 5 | #use Fatal qw(open close rename chmod unlink);
|
|---|
| 6 | open DESC, 'regcomp.sym';
|
|---|
| 7 | $ind = 0;
|
|---|
| 8 |
|
|---|
| 9 | while (<DESC>) {
|
|---|
| 10 | next if /^\s*($|\#)/;
|
|---|
| 11 | $ind++;
|
|---|
| 12 | chomp;
|
|---|
| 13 | ($name[$ind], $desc, $rest[$ind]) = split /\t+/, $_, 3;
|
|---|
| 14 | ($type[$ind], $code[$ind], $args[$ind], $longj[$ind])
|
|---|
| 15 | = split /[,\s]\s*/, $desc, 4;
|
|---|
| 16 | }
|
|---|
| 17 | close DESC;
|
|---|
| 18 | $tot = $ind;
|
|---|
| 19 |
|
|---|
| 20 | $tmp_h = 'tmp_reg.h';
|
|---|
| 21 |
|
|---|
| 22 | unlink $tmp_h if -f $tmp_h;
|
|---|
| 23 |
|
|---|
| 24 | open OUT, ">$tmp_h";
|
|---|
| 25 | binmode OUT;
|
|---|
| 26 |
|
|---|
| 27 | print OUT <<EOP;
|
|---|
| 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!
|
|---|
| 32 | */
|
|---|
|
|---|