Revision: | 1.6 |
Committed: | Sun May 6 13:09:29 2012 UTC (12 years, 10 months ago) by root |
Branch: | MAIN |
CVS Tags: | EV-rel-4_28, EV-rel-4_29, EV-rel-4_27, EV-rel-4_22, rel-4_33, rel-4_23, rel-4_22, rel-4_20, rel-4_27, rel-4_25, rel-4_24, rxvt-unicode-rel-9_16, EV-rel-4_31, EV-rel-4_30, rel-4_31, rel-4_15, rel-4_18, rel-4_19, HEAD |
Changes since 1.5: | +1 -1 lines |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | root | 1.1 | #!/bin/sh |
2 | |||
3 | ( | ||
4 | root | 1.4 | echo '#define VAR(name,decl) name' |
5 | root | 1.1 | echo '#define EV_GENWRAP 1' |
6 | cat ev_vars.h | ||
7 | root | 1.4 | ) | cc -E -o - - | perl -ne ' |
8 | while (<>) { | ||
9 | push @syms, $1 if /(^\w+)/; | ||
10 | } | ||
11 | print "/* DO NOT EDIT, automatically generated by update_ev_wrap */\n", | ||
12 | "#ifndef EV_WRAP_H\n", | ||
13 | "#define EV_WRAP_H\n", | ||
14 | root | 1.5 | (map "#define $_ ((loop)->$_)\n", sort @syms), |
15 | root | 1.4 | "#else\n", |
16 | "#undef EV_WRAP_H\n", | ||
17 | root | 1.6 | (map "#undef $_\n", sort @syms), |
18 | root | 1.4 | "#endif\n"; |
19 | ' >ev_wrap.h |