Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Bug [817249]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
023ab0d950cda0bdfbdeb98973b67266 |
User & Date: | jan.nijtmans 2013-07-03 10:43:49 |
References
2013-07-03
| ||
10:45 | • Closed ticket [817249ffff]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change plus 9 other changes artifact: bacd3c9ae2 user: jan.nijtmans | |
Context
2013-07-05
| ||
19:54 | merge trunk check-in: d26213e0bd user: dgp tags: dgp-tcs-rewrite | |
14:02 | Allow successfull compilation, even if Tcl_GetErrorLine/Tcl_SetErrorLine are redefined as macros. check-in: 30f633409c user: jan.nijtmans tags: trunk | |
11:07 | More complete implementation of RFE [854941], now not requiring TIP #414 any more. check-in: 717ee454f7 user: jan.nijtmans tags: rfe-854941, tip-596 | |
2013-07-04
| ||
19:33 | merge trunk check-in: 26ef4ffa3f user: jan.nijtmans tags: novem | |
2013-07-03
| ||
10:43 | Bug [817249]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change check-in: 023ab0d950 user: jan.nijtmans tags: trunk | |
10:39 | Bug [817249]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change check-in: c21496f5a4 user: jan.nijtmans tags: core-8-5-branch | |
08:59 | Fix compiler warning when compiling Itcl 4.0: In file included from ./generic/itcl2TclOO.c:12:0: /Tc... check-in: 3c0b0bbda6 user: jan.nijtmans tags: trunk | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2013-07-02 Jan Nijtmans <[email protected]> * unix/tcl.m4: Bug [32afa6e256]: dirent64 check is incorrect in tcl.m4 * unix/configure: (thanks to Brian Griffin) 2013-06-27 Jan Nijtmans <[email protected]> | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | 2013-07-03 Jan Nijtmans <[email protected]> * unix/tclXtNotify.c: Bug [817249]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change. 2013-07-02 Jan Nijtmans <[email protected]> * unix/tcl.m4: Bug [32afa6e256]: dirent64 check is incorrect in tcl.m4 * unix/configure: (thanks to Brian Griffin) 2013-06-27 Jan Nijtmans <[email protected]> |
︙ | ︙ |
Changes to unix/tclXtNotify.c.
︙ | ︙ | |||
73 74 75 76 77 78 79 | static int initialized = 0; /* * Static routines defined in this file. */ static int FileHandlerEventProc(Tcl_Event *evPtr, int flags); | | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | static int initialized = 0; /* * Static routines defined in this file. */ static int FileHandlerEventProc(Tcl_Event *evPtr, int flags); static void FileProc(XtPointer clientData, int *source, XtInputId *id); static void NotifierExitHandler(ClientData clientData); static void TimerProc(XtPointer clientData, XtIntervalId *id); static void CreateFileHandler(int fd, int mask, Tcl_FileProc *proc, ClientData clientData); static void DeleteFileHandler(int fd); static void SetTimer(const Tcl_Time * timePtr); static int WaitForEvent(const Tcl_Time * timePtr); /* |
︙ | ︙ | |||
177 178 179 180 181 182 183 | * *---------------------------------------------------------------------- */ void InitNotifier(void) { | | | | | | > > > > | | | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | * *---------------------------------------------------------------------- */ void InitNotifier(void) { Tcl_NotifierProcs np; /* * Only reinitialize if we are not in exit handling. The notifier can get * reinitialized after its own exit handler has run, because of exit * handlers for the I/O and timer sub-systems (order dependency). */ if (TclInExit()) { return; } np.createFileHandlerProc = CreateFileHandler; np.deleteFileHandlerProc = DeleteFileHandler; np.setTimerProc = SetTimer; np.waitForEventProc = WaitForEvent; np.initNotifierProc = Tcl_InitNotifier; np.finalizeNotifierProc = Tcl_FinalizeNotifier; np.alertNotifierProc = Tcl_AlertNotifier; np.serviceModeHookProc = Tcl_ServiceModeHook; Tcl_SetNotifier(&np); /* * DO NOT create the application context yet; doing so would prevent * external applications from setting it for us to their own ones. */ initialized = 1; memset(&np, 0, sizeof(np)); Tcl_CreateExitHandler(NotifierExitHandler, NULL); } /* *---------------------------------------------------------------------- * * NotifierExitHandler -- |
︙ | ︙ | |||
297 298 299 300 301 302 303 | * Processes all queued events. * *---------------------------------------------------------------------- */ static void TimerProc( | | | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | * Processes all queued events. * *---------------------------------------------------------------------- */ static void TimerProc( XtPointer clientData, /* Not used. */ XtIntervalId *id) { if (*id != notifier.currentTimeout) { return; } notifier.currentTimeout = 0; |
︙ | ︙ | |||
484 485 486 487 488 489 490 | * Makes an entry on the Tcl event queue if the event is interesting. * *---------------------------------------------------------------------- */ static void FileProc( | | | 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 | * Makes an entry on the Tcl event queue if the event is interesting. * *---------------------------------------------------------------------- */ static void FileProc( XtPointer clientData, int *fd, XtInputId *id) { FileHandler *filePtr = (FileHandler *)clientData; FileHandlerEvent *fileEvPtr; int mask = 0; |
︙ | ︙ |