ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/gendef0
(Generate patch)

Comparing IO-AIO/gendef0 (file contents):
Revision 1.1 by root, Fri Apr 6 11:39:25 2012 UTC vs.
Revision 1.2 by root, Sat Jan 25 00:15:52 2014 UTC

4 or die "AIO.xs: $!"; 4 or die "AIO.xs: $!";
5 5
6open STDOUT, ">def0.h" 6open STDOUT, ">def0.h"
7 or die "def0.h: $!"; 7 or die "def0.h: $!";
8 8
9print <<EOF;
10/* GENERATED FILE */
11/* use ./gendef0 to regenerate this file */
12EOF
13
9while (<>) { 14while (<>) {
10 if (/^\s*const_iv\s*\((\S+)\)\s*$/ || /^\s*const_niv\s*\([^,]+,\s*(\S+)\)\s*$/) { 15 if (/^\s*const_iv\s*\((\S+)\)\s*$/ || /^\s*const_niv\s*\([^,]+,\s*(\S+)\)\s*$/) {
11 print "#ifndef $1\n", 16 print "#ifndef $1\n",
12 "#define $1 0\n", 17 "#define $1 0\n",
13 "#endif\n"; 18 "#endif\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines