diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-03-03 15:43:34 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 11:02:47 +1000 |
commit | 5b72fc672cece4e426817a124e364b76da6f9704 (patch) | |
tree | 1e0236ba5e547cbda1278351f119f27bbaa12783 /jim-eventloop.c | |
parent | 52b1ccb6859a2029e5b5a6d885e26a2a757ba0b1 (diff) | |
download | jimtcl-5b72fc672cece4e426817a124e364b76da6f9704.zip jimtcl-5b72fc672cece4e426817a124e364b76da6f9704.tar.gz jimtcl-5b72fc672cece4e426817a124e364b76da6f9704.tar.bz2 |
Fix some build problems and add lost features
Add some missing files needed for autoconf
Make jim build standalone and without host jimsh
Use (FILE *) for eventloop file handle
Don't expect to support dynlib if no mmu
Re-add nvp and win32 support (untested)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-eventloop.c')
-rw-r--r-- | jim-eventloop.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/jim-eventloop.c b/jim-eventloop.c index 4c30ee5..1104b66 100644 --- a/jim-eventloop.c +++ b/jim-eventloop.c @@ -59,7 +59,7 @@ /* File event structure */ typedef struct Jim_FileEvent { - void *handle; + FILE *handle; int mask; /* one of JIM_EVENT_(READABLE|WRITABLE|EXCEPTION) */ Jim_FileProc *fileProc; Jim_EventFinalizerProc *finalizerProc; @@ -87,7 +87,7 @@ typedef struct Jim_EventLoop { Jim_TimeEvent *timeEventHead; } Jim_EventLoop; -void Jim_CreateFileHandler(Jim_Interp *interp, void *handle, int mask, +void Jim_CreateFileHandler(Jim_Interp *interp, FILE *handle, int mask, Jim_FileProc *proc, void *clientData, Jim_EventFinalizerProc *finalizerProc) { @@ -104,7 +104,7 @@ void Jim_CreateFileHandler(Jim_Interp *interp, void *handle, int mask, eventLoop->fileEventHead = fe; } -void Jim_DeleteFileHandler(Jim_Interp *interp, void *handle) +void Jim_DeleteFileHandler(Jim_Interp *interp, FILE *handle) { Jim_FileEvent *fe, *prev = NULL; Jim_EventLoop *eventLoop = Jim_GetAssocData(interp, "eventloop"); @@ -220,10 +220,6 @@ static Jim_TimeEvent *JimSearchNearestTimer(Jim_EventLoop *eventLoop) } /* --- POSIX version of Jim_ProcessEvents, for now the only available --- */ -#define JIM_FILE_EVENTS 1 -#define JIM_TIME_EVENTS 2 -#define JIM_ALL_EVENTS (JIM_FILE_EVENTS|JIM_TIME_EVENTS) -#define JIM_DONT_WAIT 4 /* Process every pending time event, then every pending file event * (that may be registered by time event callbacks just processed). |