The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / deps / libev / update_ev_wrap @ c5183738

History | View | Annotate | Download (496 Bytes)

1
#!/bin/sh
2

    
3
(
4
   echo '#define VAR(name,decl) name'
5
   echo '#define EV_GENWRAP 1'
6
   cat ev_vars.h
7
) | 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
         (map "#define $_ ((loop)->$_)\n", @syms),
15
         "#else\n",
16
         "#undef EV_WRAP_H\n",
17
         (map "#undef $_\n", @syms),
18
         "#endif\n";
19
' >ev_wrap.h