… | |
… | |
4 | <head> |
4 | <head> |
5 | <title>libev</title> |
5 | <title>libev</title> |
6 | <meta name="description" content="Pod documentation for libev" /> |
6 | <meta name="description" content="Pod documentation for libev" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
9 | <meta name="created" content="Sat Nov 24 11:10:25 2007" /> |
9 | <meta name="created" content="Sat Nov 24 11:15:15 2007" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
12 | <body> |
12 | <body> |
13 | <div class="pod"> |
13 | <div class="pod"> |
14 | <!-- INDEX START --> |
14 | <!-- INDEX START --> |
… | |
… | |
1670 | interface) and <cite>EV.xs</cite> (implementation) files. Only the <cite>EV.xs</cite> file |
1670 | interface) and <cite>EV.xs</cite> (implementation) files. Only the <cite>EV.xs</cite> file |
1671 | will be compiled. It is pretty complex because it provides its own header |
1671 | will be compiled. It is pretty complex because it provides its own header |
1672 | file.</p> |
1672 | file.</p> |
1673 | <p>The usage in rxvt-unicode is simpler. It has a <cite>ev_cpp.h</cite> header file |
1673 | <p>The usage in rxvt-unicode is simpler. It has a <cite>ev_cpp.h</cite> header file |
1674 | that everybody includes and which overrides some autoconf choices:</p> |
1674 | that everybody includes and which overrides some autoconf choices:</p> |
1675 | <pre> #define EV_USE_POLL 0 |
1675 | <pre> #define EV_USE_POLL 0 |
1676 | #define EV_MULTIPLICITY 0 |
1676 | #define EV_MULTIPLICITY 0 |
1677 | #define EV_PERIODICS 0 |
1677 | #define EV_PERIODICS 0 |
1678 | #define EV_CONFIG_H <config.h> |
1678 | #define EV_CONFIG_H <config.h> |
1679 | |
1679 | |
1680 | #include "ev++.h" |
1680 | #include "ev++.h" |
1681 | |
1681 | |
1682 | </pre> |
1682 | </pre> |
1683 | <p>And a <cite>ev_cpp.C</cite> implementation file that contains libev proper and is compiled:</p> |
1683 | <p>And a <cite>ev_cpp.C</cite> implementation file that contains libev proper and is compiled:</p> |
1684 | <pre> #include "rxvttoolkit.h" |
1684 | <pre> #include "ev_cpp.h" |
1685 | |
|
|
1686 | /* darwin has problems with its header files in C++, requiring this namespace juggling */ |
|
|
1687 | using namespace ev; |
|
|
1688 | |
|
|
1689 | #include "ev.c" |
1685 | #include "ev.c" |
1690 | |
|
|
1691 | |
|
|
1692 | |
|
|
1693 | |
1686 | |
1694 | </pre> |
1687 | </pre> |
1695 | |
1688 | |
1696 | </div> |
1689 | </div> |
1697 | <h1 id="AUTHOR">AUTHOR</h1><p><a href="#TOP" class="toplink">Top</a></p> |
1690 | <h1 id="AUTHOR">AUTHOR</h1><p><a href="#TOP" class="toplink">Top</a></p> |