… | |
… | |
1797 | .Sp |
1797 | .Sp |
1798 | The usage in rxvt-unicode is simpler. It has a \fIev_cpp.h\fR header file |
1798 | The usage in rxvt-unicode is simpler. It has a \fIev_cpp.h\fR header file |
1799 | that everybody includes and which overrides some autoconf choices: |
1799 | that everybody includes and which overrides some autoconf choices: |
1800 | .Sp |
1800 | .Sp |
1801 | .Vb 4 |
1801 | .Vb 4 |
1802 | \& #define EV_USE_POLL 0 |
1802 | \& #define EV_USE_POLL 0 |
1803 | \& #define EV_MULTIPLICITY 0 |
1803 | \& #define EV_MULTIPLICITY 0 |
1804 | \& #define EV_PERIODICS 0 |
1804 | \& #define EV_PERIODICS 0 |
1805 | \& #define EV_CONFIG_H <config.h> |
1805 | \& #define EV_CONFIG_H <config.h> |
1806 | .Ve |
1806 | .Ve |
1807 | .Sp |
1807 | .Sp |
1808 | .Vb 1 |
1808 | .Vb 1 |
1809 | \& #include "ev++.h" |
1809 | \& #include "ev++.h" |
1810 | .Ve |
1810 | .Ve |
1811 | .Sp |
1811 | .Sp |
1812 | And a \fIev_cpp.C\fR implementation file that contains libev proper and is compiled: |
1812 | And a \fIev_cpp.C\fR implementation file that contains libev proper and is compiled: |
1813 | .Sp |
1813 | .Sp |
1814 | .Vb 1 |
|
|
1815 | \& #include "rxvttoolkit.h" |
|
|
1816 | .Ve |
|
|
1817 | .Sp |
|
|
1818 | .Vb 2 |
1814 | .Vb 2 |
1819 | \& /* darwin has problems with its header files in C++, requiring this namespace juggling */ |
1815 | \& #include "ev_cpp.h" |
1820 | \& using namespace ev; |
|
|
1821 | .Ve |
|
|
1822 | .Sp |
|
|
1823 | .Vb 1 |
|
|
1824 | \& #include "ev.c" |
1816 | \& #include "ev.c" |
1825 | .Ve |
1817 | .Ve |
1826 | .SH "AUTHOR" |
1818 | .SH "AUTHOR" |
1827 | .IX Header "AUTHOR" |
1819 | .IX Header "AUTHOR" |
1828 | Marc Lehmann <libev@schmorp.de>. |
1820 | Marc Lehmann <libev@schmorp.de>. |