ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/update_ev_wrap
(Generate patch)

Comparing libev/update_ev_wrap (file contents):
Revision 1.3 by root, Wed Dec 19 01:59:29 2007 UTC vs.
Revision 1.4 by root, Thu Dec 20 07:12:57 2007 UTC

1#!/bin/sh 1#!/bin/sh
2 2
3( 3(
4 echo '#define VAR(name,decl) define name ((loop)->name)' 4 echo '#define VAR(name,decl) name'
5 echo '#define EV_GENWRAP 1' 5 echo '#define EV_GENWRAP 1'
6 cat ev_vars.h 6 cat ev_vars.h
7) | cc -E -o - - | sed -n -e 's/define/#define/p' | ( 7) | cc -E -o - - | perl -ne '
8 while (<>) {
9 push @syms, $1 if /(^\w+)/;
10 }
8 echo "/* DO NOT EDIT, automatically generated by update_ev_wrap */" 11 print "/* DO NOT EDIT, automatically generated by update_ev_wrap */\n",
9 cat 12 "#ifndef EV_WRAP_H\n",
13 "#define EV_WRAP_H\n",
14 (map "#define $_ ((loop)->$_)\n", @syms),
15 "#else\n",
16 "#undef EV_WRAP_H\n",
17 (map "#undef $_\n", @syms),
18 "#endif\n";
10) > ev_wrap.h 19' >ev_wrap.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines