source: trunk/essentials/dev-lang/perl/regcomp.pl@ 3186

Last change on this file since 3186 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 1.9 KB
Line 
1BEGIN {
2 # Get function prototypes
3 require 'regen_lib.pl';
4}
5#use Fatal qw(open close rename chmod unlink);
6open DESC, 'regcomp.sym';
7$ind = 0;
8
9while (<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}
17close DESC;
18$tot = $ind;
19
20$tmp_h = 'tmp_reg.h';
21
22unlink $tmp_h if -f $tmp_h;
23
24open OUT, ">$tmp_h";
25binmode OUT;
26
27print 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*/