diff options
author | Steve Bennett <steveb@workware.net.au> | 2014-01-11 21:13:16 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2014-01-21 16:10:19 +1000 |
commit | fcfb8169cfa5fefe5610bcc4297500ead2dfaf42 (patch) | |
tree | 01f5b859d134e7f164a3b6935bffe9607d6fb05b /jim-eventloop.h | |
parent | 30a78d4c698c3d47ecf2d399cd553d9e4340c788 (diff) | |
download | jimtcl-fcfb8169cfa5fefe5610bcc4297500ead2dfaf42.zip jimtcl-fcfb8169cfa5fefe5610bcc4297500ead2dfaf42.tar.gz jimtcl-fcfb8169cfa5fefe5610bcc4297500ead2dfaf42.tar.bz2 |
many comment changes, some small code changes
Sweep through and clean up all (most) of the comments in the code.
While there, adjust some variable and function names to be more consistent,
and make a few small code changes - again, mostly for consistency.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-eventloop.h')
-rw-r--r-- | jim-eventloop.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/jim-eventloop.h b/jim-eventloop.h index 52ec4e8..3e20e6f 100644 --- a/jim-eventloop.h +++ b/jim-eventloop.h @@ -36,20 +36,18 @@ * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. **/ + /* ------ USAGE ------- - * - * In order to use this file from other extensions include it in every - * file where you need to call the eventloop API, also in the init - * function of your extension call Jim_ImportEventloopAPI(interp) - * after the Jim_InitExtension() call. - * - * See the UDP extension as example. + * See jim-aio.c as an example of an event provider. */ - #ifndef __JIM_EVENTLOOP_H__ #define __JIM_EVENTLOOP_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include <stdio.h> typedef int Jim_FileProc(Jim_Interp *interp, void *clientData, int mask); @@ -84,4 +82,8 @@ JIM_EXPORT int Jim_EvalObjBackground (Jim_Interp *interp, Jim_Obj *scriptObjPtr) int Jim_eventloopInit(Jim_Interp *interp); +#ifdef __cplusplus +} +#endif + #endif /* __JIM_EVENTLOOP_H__ */ |