diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-08 12:29:49 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-08 12:29:49 (GMT) |
| commit | 3ed1f7b0557b8d9bd7c22f66594fe480359a199a (patch) | |
| tree | 9a94a4a726261edaab5ceebd535e722dfee0a9dc | |
| parent | 67e4ed22906174a8f8aed6bb8bef0d22009b2111 (diff) | |
| download | tcl-3ed1f7b0557b8d9bd7c22f66594fe480359a199a.zip tcl-3ed1f7b0557b8d9bd7c22f66594fe480359a199a.tar.gz tcl-3ed1f7b0557b8d9bd7c22f66594fe480359a199a.tar.bz2 | |
Remove TclpCreateFileHandler/TclpDeleteFileHandler on windows. The linker should complain when even trying to create something calling those functions.
| -rw-r--r-- | win/tclWinNotify.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/win/tclWinNotify.c b/win/tclWinNotify.c index feb171e..068675c 100644 --- a/win/tclWinNotify.c +++ b/win/tclWinNotify.c @@ -580,46 +580,6 @@ Tcl_Sleep( } /* - *---------------------------------------------------------------------- - * - * TclpCreateFileHandler, TclpDeleteFileHandler -- - * - * Stub functions for strictly POSIX-only functionality that panic with a - * failure message; they simply don't work at all on Windows so using - * them on the platform is always a programming bug. - * - * Results: - * None. - * - * Side effects: - * The process will terminate, violently. - * - *---------------------------------------------------------------------- - */ - -void -TclpCreateFileHandler( - int fd, /* Handle of stream to watch. */ - int mask, /* OR'ed combination of TCL_READABLE, - * TCL_WRITABLE, and TCL_EXCEPTION: indicates - * conditions under which proc should be - * called. */ - Tcl_FileProc *proc, /* Function to call for each selected - * event. */ - ClientData clientData) /* Arbitrary data to pass to proc. */ -{ - Tcl_Panic("Tcl_CreateFileHandler not supported on this platform"); -} - -void -Tcl_DeleteFileHandler( - int fd) /* Stream id for which to remove callback - * function. */ -{ - Tcl_Panic("Tcl_DeleteFileHandler not supported on this platform"); -} - -/* * Local Variables: * mode: c * c-basic-offset: 4 |
