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 | 1f9783b09da0834206c2895474c941e5730e719c (patch) | |
tree | 9a94a4a726261edaab5ceebd535e722dfee0a9dc /win | |
parent | d1a554abf72065ac764715b40162ca4da0551614 (diff) | |
download | tcl-1f9783b09da0834206c2895474c941e5730e719c.zip tcl-1f9783b09da0834206c2895474c941e5730e719c.tar.gz tcl-1f9783b09da0834206c2895474c941e5730e719c.tar.bz2 |
Remove TclpCreateFileHandler/TclpDeleteFileHandler on windows. The linker should complain when even trying to create something calling those functions.
Diffstat (limited to 'win')
-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 |