From 5010870994df355cb2c51bd81ceb00ff20419344 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Nov 2007 10:10:26 +0000 Subject: include embedding doc in main doc --- ev.html | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'ev.html') diff --git a/ev.html b/ev.html index 9dd27c1..d6ae9cb 100644 --- a/ev.html +++ b/ev.html @@ -6,7 +6,7 @@ - + @@ -1672,24 +1672,17 @@ will be compiled. It is pretty complex because it provides its own header file.

The usage in rxvt-unicode is simpler. It has a ev_cpp.h header file that everybody includes and which overrides some autoconf choices:

-
   #define EV_USE_POLL 0
-   #define EV_MULTIPLICITY 0
-   #define EV_PERIODICS 0
-   #define EV_CONFIG_H <config.h>
+
  #define EV_USE_POLL 0
+  #define EV_MULTIPLICITY 0
+  #define EV_PERIODICS 0
+  #define EV_CONFIG_H <config.h>
 
-   #include "ev++.h"
+  #include "ev++.h"
 
 

And a ev_cpp.C implementation file that contains libev proper and is compiled:

-
   #include "rxvttoolkit.h"
-
-   /* darwin has problems with its header files in C++, requiring this namespace juggling */
-   using namespace ev;
-
-   #include "ev.c"
-
-
-
+
  #include "ev_cpp.h"
+  #include "ev.c"
 
 
-- cgit v1.2.3