|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _TCLINTPLATDECLS |
|
#define _TCLINTPLATDECLS |
|
|
|
#undef TCL_STORAGE_CLASS |
|
#ifdef BUILD_tcl |
|
# define TCL_STORAGE_CLASS DLLEXPORT |
|
#else |
|
# ifdef USE_TCL_STUBS |
|
# define TCL_STORAGE_CLASS |
|
# else |
|
# define TCL_STORAGE_CLASS DLLIMPORT |
|
# endif |
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MAC_OSX_TCL) |
|
|
|
EXTERN void TclGetAndDetachPids(Tcl_Interp *interp, |
|
Tcl_Channel chan); |
|
|
|
EXTERN int TclpCloseFile(TclFile file); |
|
|
|
EXTERN Tcl_Channel TclpCreateCommandChannel(TclFile readFile, |
|
TclFile writeFile, TclFile errorFile, |
|
int numPids, Tcl_Pid *pidPtr); |
|
|
|
EXTERN int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe); |
|
|
|
EXTERN int TclpCreateProcess(Tcl_Interp *interp, int argc, |
|
const char **argv, TclFile inputFile, |
|
TclFile outputFile, TclFile errorFile, |
|
Tcl_Pid *pidPtr); |
|
|
|
EXTERN int TclUnixWaitForFile_(int fd, int mask, int timeout); |
|
|
|
EXTERN TclFile TclpMakeFile(Tcl_Channel channel, int direction); |
|
|
|
EXTERN TclFile TclpOpenFile(const char *fname, int mode); |
|
|
|
EXTERN int TclUnixWaitForFile(int fd, int mask, int timeout); |
|
|
|
EXTERN TclFile TclpCreateTempFile(const char *contents); |
|
|
|
EXTERN Tcl_DirEntry * TclpReaddir(TclDIR *dir); |
|
|
|
EXTERN struct tm * TclpLocaltime_unix(const time_t *clock); |
|
|
|
EXTERN struct tm * TclpGmtime_unix(const time_t *clock); |
|
|
|
EXTERN char * TclpInetNtoa(struct in_addr addr); |
|
|
|
EXTERN int TclUnixCopyFile(const char *src, const char *dst, |
|
const Tcl_StatBuf *statBufPtr, |
|
int dontCopyAtts); |
|
|
|
EXTERN int TclMacOSXGetFileAttribute(Tcl_Interp *interp, |
|
int objIndex, Tcl_Obj *fileName, |
|
Tcl_Obj **attributePtrPtr); |
|
|
|
EXTERN int TclMacOSXSetFileAttribute(Tcl_Interp *interp, |
|
int objIndex, Tcl_Obj *fileName, |
|
Tcl_Obj *attributePtr); |
|
|
|
EXTERN int TclMacOSXCopyFileAttributes(const char *src, |
|
const char *dst, |
|
const Tcl_StatBuf *statBufPtr); |
|
|
|
EXTERN int TclMacOSXMatchType(Tcl_Interp *interp, |
|
const char *pathName, const char *fileName, |
|
Tcl_StatBuf *statBufPtr, |
|
Tcl_GlobTypeData *types); |
|
|
|
EXTERN void TclMacOSXNotifierAddRunLoopMode( |
|
const void *runLoopMode); |
|
|
|
|
|
|
|
EXTERN TclFile TclpCreateTempFile_(const char *contents); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXTERN int TclWinCPUID(unsigned int index, unsigned int *regs); |
|
|
|
EXTERN int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj, |
|
Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, |
|
Tcl_Obj *resultingNameObj); |
|
#endif |
|
#if defined(_WIN32) || defined(__CYGWIN__) |
|
|
|
EXTERN void TclWinConvertError(DWORD errCode); |
|
|
|
EXTERN void TclWinConvertWSAError(DWORD errCode); |
|
|
|
EXTERN struct servent * TclWinGetServByName(const char *nm, |
|
const char *proto); |
|
|
|
EXTERN int TclWinGetSockOpt(SOCKET s, int level, int optname, |
|
char *optval, int *optlen); |
|
|
|
EXTERN HINSTANCE TclWinGetTclInstance(void); |
|
|
|
EXTERN int TclUnixWaitForFile(int fd, int mask, int timeout); |
|
|
|
EXTERN unsigned short TclWinNToHS(unsigned short ns); |
|
|
|
EXTERN int TclWinSetSockOpt(SOCKET s, int level, int optname, |
|
const char *optval, int optlen); |
|
|
|
EXTERN int TclpGetPid(Tcl_Pid pid); |
|
|
|
EXTERN int TclWinGetPlatformId(void); |
|
|
|
EXTERN Tcl_DirEntry * TclpReaddir(TclDIR *dir); |
|
|
|
EXTERN void TclGetAndDetachPids(Tcl_Interp *interp, |
|
Tcl_Channel chan); |
|
|
|
EXTERN int TclpCloseFile(TclFile file); |
|
|
|
EXTERN Tcl_Channel TclpCreateCommandChannel(TclFile readFile, |
|
TclFile writeFile, TclFile errorFile, |
|
int numPids, Tcl_Pid *pidPtr); |
|
|
|
EXTERN int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe); |
|
|
|
EXTERN int TclpCreateProcess(Tcl_Interp *interp, int argc, |
|
const char **argv, TclFile inputFile, |
|
TclFile outputFile, TclFile errorFile, |
|
Tcl_Pid *pidPtr); |
|
|
|
EXTERN int TclpIsAtty(int fd); |
|
|
|
EXTERN int TclUnixCopyFile(const char *src, const char *dst, |
|
const Tcl_StatBuf *statBufPtr, |
|
int dontCopyAtts); |
|
|
|
EXTERN TclFile TclpMakeFile(Tcl_Channel channel, int direction); |
|
|
|
EXTERN TclFile TclpOpenFile(const char *fname, int mode); |
|
|
|
EXTERN void TclWinAddProcess(HANDLE hProcess, DWORD id); |
|
|
|
EXTERN char * TclpInetNtoa(struct in_addr addr); |
|
|
|
EXTERN TclFile TclpCreateTempFile(const char *contents); |
|
|
|
|
|
EXTERN char * TclWinNoBackslash(char *path); |
|
|
|
|
|
EXTERN void TclWinSetInterfaces(int wide); |
|
|
|
EXTERN void TclWinFlushDirtyChannels(void); |
|
|
|
EXTERN void TclWinResetInterfaces(void); |
|
|
|
EXTERN int TclWinCPUID(unsigned int index, unsigned int *regs); |
|
|
|
EXTERN int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj, |
|
Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, |
|
Tcl_Obj *resultingNameObj); |
|
#endif |
|
#ifdef MAC_OSX_TCL |
|
|
|
EXTERN void TclGetAndDetachPids(Tcl_Interp *interp, |
|
Tcl_Channel chan); |
|
|
|
EXTERN int TclpCloseFile(TclFile file); |
|
|
|
EXTERN Tcl_Channel TclpCreateCommandChannel(TclFile readFile, |
|
TclFile writeFile, TclFile errorFile, |
|
int numPids, Tcl_Pid *pidPtr); |
|
|
|
EXTERN int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe); |
|
|
|
EXTERN int TclpCreateProcess(Tcl_Interp *interp, int argc, |
|
const char **argv, TclFile inputFile, |
|
TclFile outputFile, TclFile errorFile, |
|
Tcl_Pid *pidPtr); |
|
|
|
EXTERN int TclUnixWaitForFile_(int fd, int mask, int timeout); |
|
|
|
EXTERN TclFile TclpMakeFile(Tcl_Channel channel, int direction); |
|
|
|
EXTERN TclFile TclpOpenFile(const char *fname, int mode); |
|
|
|
EXTERN int TclUnixWaitForFile(int fd, int mask, int timeout); |
|
|
|
EXTERN TclFile TclpCreateTempFile(const char *contents); |
|
|
|
EXTERN Tcl_DirEntry * TclpReaddir(TclDIR *dir); |
|
|
|
EXTERN struct tm * TclpLocaltime_unix(const time_t *clock); |
|
|
|
EXTERN struct tm * TclpGmtime_unix(const time_t *clock); |
|
|
|
EXTERN char * TclpInetNtoa(struct in_addr addr); |
|
|
|
EXTERN int TclUnixCopyFile(const char *src, const char *dst, |
|
const Tcl_StatBuf *statBufPtr, |
|
int dontCopyAtts); |
|
|
|
EXTERN int TclMacOSXGetFileAttribute(Tcl_Interp *interp, |
|
int objIndex, Tcl_Obj *fileName, |
|
Tcl_Obj **attributePtrPtr); |
|
|
|
EXTERN int TclMacOSXSetFileAttribute(Tcl_Interp *interp, |
|
int objIndex, Tcl_Obj *fileName, |
|
Tcl_Obj *attributePtr); |
|
|
|
EXTERN int TclMacOSXCopyFileAttributes(const char *src, |
|
const char *dst, |
|
const Tcl_StatBuf *statBufPtr); |
|
|
|
EXTERN int TclMacOSXMatchType(Tcl_Interp *interp, |
|
const char *pathName, const char *fileName, |
|
Tcl_StatBuf *statBufPtr, |
|
Tcl_GlobTypeData *types); |
|
|
|
EXTERN void TclMacOSXNotifierAddRunLoopMode( |
|
const void *runLoopMode); |
|
|
|
|
|
|
|
EXTERN TclFile TclpCreateTempFile_(const char *contents); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXTERN int TclWinCPUID(unsigned int index, unsigned int *regs); |
|
|
|
EXTERN int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj, |
|
Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, |
|
Tcl_Obj *resultingNameObj); |
|
#endif |
|
|
|
typedef struct TclIntPlatStubs { |
|
int magic; |
|
void *hooks; |
|
|
|
#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MAC_OSX_TCL) |
|
void (*tclGetAndDetachPids) (Tcl_Interp *interp, Tcl_Channel chan); |
|
int (*tclpCloseFile) (TclFile file); |
|
Tcl_Channel (*tclpCreateCommandChannel) (TclFile readFile, TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr); |
|
int (*tclpCreatePipe) (TclFile *readPipe, TclFile *writePipe); |
|
int (*tclpCreateProcess) (Tcl_Interp *interp, int argc, const char **argv, TclFile inputFile, TclFile outputFile, TclFile errorFile, Tcl_Pid *pidPtr); |
|
int (*tclUnixWaitForFile_) (int fd, int mask, int timeout); |
|
TclFile (*tclpMakeFile) (Tcl_Channel channel, int direction); |
|
TclFile (*tclpOpenFile) (const char *fname, int mode); |
|
int (*tclUnixWaitForFile) (int fd, int mask, int timeout); |
|
TclFile (*tclpCreateTempFile) (const char *contents); |
|
Tcl_DirEntry * (*tclpReaddir) (TclDIR *dir); |
|
struct tm * (*tclpLocaltime_unix) (const time_t *clock); |
|
struct tm * (*tclpGmtime_unix) (const time_t *clock); |
|
char * (*tclpInetNtoa) (struct in_addr addr); |
|
int (*tclUnixCopyFile) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr, int dontCopyAtts); |
|
int (*tclMacOSXGetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj **attributePtrPtr); |
|
int (*tclMacOSXSetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj *attributePtr); |
|
int (*tclMacOSXCopyFileAttributes) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr); |
|
int (*tclMacOSXMatchType) (Tcl_Interp *interp, const char *pathName, const char *fileName, Tcl_StatBuf *statBufPtr, Tcl_GlobTypeData *types); |
|
void (*tclMacOSXNotifierAddRunLoopMode) (const void *runLoopMode); |
|
void (*reserved20)(void); |
|
void (*reserved21)(void); |
|
TclFile (*tclpCreateTempFile_) (const char *contents); |
|
void (*reserved23)(void); |
|
void (*reserved24)(void); |
|
void (*reserved25)(void); |
|
void (*reserved26)(void); |
|
void (*reserved27)(void); |
|
void (*reserved28)(void); |
|
int (*tclWinCPUID) (unsigned int index, unsigned int *regs); |
|
int (*tclUnixOpenTemporaryFile) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj); |
|
#endif |
|
#if defined(_WIN32) || defined(__CYGWIN__) |
|
void (*tclWinConvertError) (DWORD errCode); |
|
void (*tclWinConvertWSAError) (DWORD errCode); |
|
struct servent * (*tclWinGetServByName) (const char *nm, const char *proto); |
|
int (*tclWinGetSockOpt) (SOCKET s, int level, int optname, char *optval, int *optlen); |
|
HINSTANCE (*tclWinGetTclInstance) (void); |
|
int (*tclUnixWaitForFile) (int fd, int mask, int timeout); |
|
unsigned short (*tclWinNToHS) (unsigned short ns); |
|
int (*tclWinSetSockOpt) (SOCKET s, int level, int optname, const char *optval, int optlen); |
|
int (*tclpGetPid) (Tcl_Pid pid); |
|
int (*tclWinGetPlatformId) (void); |
|
Tcl_DirEntry * (*tclpReaddir) (TclDIR *dir); |
|
void (*tclGetAndDetachPids) (Tcl_Interp *interp, Tcl_Channel chan); |
|
int (*tclpCloseFile) (TclFile file); |
|
Tcl_Channel (*tclpCreateCommandChannel) (TclFile readFile, TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr); |
|
int (*tclpCreatePipe) (TclFile *readPipe, TclFile *writePipe); |
|
int (*tclpCreateProcess) (Tcl_Interp *interp, int argc, const char **argv, TclFile inputFile, TclFile outputFile, TclFile errorFile, Tcl_Pid *pidPtr); |
|
int (*tclpIsAtty) (int fd); |
|
int (*tclUnixCopyFile) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr, int dontCopyAtts); |
|
TclFile (*tclpMakeFile) (Tcl_Channel channel, int direction); |
|
TclFile (*tclpOpenFile) (const char *fname, int mode); |
|
void (*tclWinAddProcess) (HANDLE hProcess, DWORD id); |
|
char * (*tclpInetNtoa) (struct in_addr addr); |
|
TclFile (*tclpCreateTempFile) (const char *contents); |
|
void (*reserved23)(void); |
|
char * (*tclWinNoBackslash) (char *path); |
|
void (*reserved25)(void); |
|
void (*tclWinSetInterfaces) (int wide); |
|
void (*tclWinFlushDirtyChannels) (void); |
|
void (*tclWinResetInterfaces) (void); |
|
int (*tclWinCPUID) (unsigned int index, unsigned int *regs); |
|
int (*tclUnixOpenTemporaryFile) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj); |
|
#endif |
|
#ifdef MAC_OSX_TCL |
|
void (*tclGetAndDetachPids) (Tcl_Interp *interp, Tcl_Channel chan); |
|
int (*tclpCloseFile) (TclFile file); |
|
Tcl_Channel (*tclpCreateCommandChannel) (TclFile readFile, TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr); |
|
int (*tclpCreatePipe) (TclFile *readPipe, TclFile *writePipe); |
|
int (*tclpCreateProcess) (Tcl_Interp *interp, int argc, const char **argv, TclFile inputFile, TclFile outputFile, TclFile errorFile, Tcl_Pid *pidPtr); |
|
int (*tclUnixWaitForFile_) (int fd, int mask, int timeout); |
|
TclFile (*tclpMakeFile) (Tcl_Channel channel, int direction); |
|
TclFile (*tclpOpenFile) (const char *fname, int mode); |
|
int (*tclUnixWaitForFile) (int fd, int mask, int timeout); |
|
TclFile (*tclpCreateTempFile) (const char *contents); |
|
Tcl_DirEntry * (*tclpReaddir) (TclDIR *dir); |
|
struct tm * (*tclpLocaltime_unix) (const time_t *clock); |
|
struct tm * (*tclpGmtime_unix) (const time_t *clock); |
|
char * (*tclpInetNtoa) (struct in_addr addr); |
|
int (*tclUnixCopyFile) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr, int dontCopyAtts); |
|
int (*tclMacOSXGetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj **attributePtrPtr); |
|
int (*tclMacOSXSetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj *attributePtr); |
|
int (*tclMacOSXCopyFileAttributes) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr); |
|
int (*tclMacOSXMatchType) (Tcl_Interp *interp, const char *pathName, const char *fileName, Tcl_StatBuf *statBufPtr, Tcl_GlobTypeData *types); |
|
void (*tclMacOSXNotifierAddRunLoopMode) (const void *runLoopMode); |
|
void (*reserved20)(void); |
|
void (*reserved21)(void); |
|
TclFile (*tclpCreateTempFile_) (const char *contents); |
|
void (*reserved23)(void); |
|
void (*reserved24)(void); |
|
void (*reserved25)(void); |
|
void (*reserved26)(void); |
|
void (*reserved27)(void); |
|
void (*reserved28)(void); |
|
int (*tclWinCPUID) (unsigned int index, unsigned int *regs); |
|
int (*tclUnixOpenTemporaryFile) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj, Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj); |
|
#endif |
|
} TclIntPlatStubs; |
|
|
|
extern const TclIntPlatStubs *tclIntPlatStubsPtr; |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
#if defined(USE_TCL_STUBS) |
|
|
|
|
|
|
|
|
|
|
|
#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MAC_OSX_TCL) |
|
#define TclGetAndDetachPids \ |
|
(tclIntPlatStubsPtr->tclGetAndDetachPids) |
|
#define TclpCloseFile \ |
|
(tclIntPlatStubsPtr->tclpCloseFile) |
|
#define TclpCreateCommandChannel \ |
|
(tclIntPlatStubsPtr->tclpCreateCommandChannel) |
|
#define TclpCreatePipe \ |
|
(tclIntPlatStubsPtr->tclpCreatePipe) |
|
#define TclpCreateProcess \ |
|
(tclIntPlatStubsPtr->tclpCreateProcess) |
|
#define TclUnixWaitForFile_ \ |
|
(tclIntPlatStubsPtr->tclUnixWaitForFile_) |
|
#define TclpMakeFile \ |
|
(tclIntPlatStubsPtr->tclpMakeFile) |
|
#define TclpOpenFile \ |
|
(tclIntPlatStubsPtr->tclpOpenFile) |
|
#define TclUnixWaitForFile \ |
|
(tclIntPlatStubsPtr->tclUnixWaitForFile) |
|
#define TclpCreateTempFile \ |
|
(tclIntPlatStubsPtr->tclpCreateTempFile) |
|
#define TclpReaddir \ |
|
(tclIntPlatStubsPtr->tclpReaddir) |
|
#define TclpLocaltime_unix \ |
|
(tclIntPlatStubsPtr->tclpLocaltime_unix) |
|
#define TclpGmtime_unix \ |
|
(tclIntPlatStubsPtr->tclpGmtime_unix) |
|
#define TclpInetNtoa \ |
|
(tclIntPlatStubsPtr->tclpInetNtoa) |
|
#define TclUnixCopyFile \ |
|
(tclIntPlatStubsPtr->tclUnixCopyFile) |
|
#define TclMacOSXGetFileAttribute \ |
|
(tclIntPlatStubsPtr->tclMacOSXGetFileAttribute) |
|
#define TclMacOSXSetFileAttribute \ |
|
(tclIntPlatStubsPtr->tclMacOSXSetFileAttribute) |
|
#define TclMacOSXCopyFileAttributes \ |
|
(tclIntPlatStubsPtr->tclMacOSXCopyFileAttributes) |
|
#define TclMacOSXMatchType \ |
|
(tclIntPlatStubsPtr->tclMacOSXMatchType) |
|
#define TclMacOSXNotifierAddRunLoopMode \ |
|
(tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode) |
|
|
|
|
|
#define TclpCreateTempFile_ \ |
|
(tclIntPlatStubsPtr->tclpCreateTempFile_) |
|
|
|
|
|
|
|
|
|
|
|
|
|
#define TclWinCPUID \ |
|
(tclIntPlatStubsPtr->tclWinCPUID) |
|
#define TclUnixOpenTemporaryFile \ |
|
(tclIntPlatStubsPtr->tclUnixOpenTemporaryFile) |
|
#endif |
|
#if defined(_WIN32) || defined(__CYGWIN__) |
|
#define TclWinConvertError \ |
|
(tclIntPlatStubsPtr->tclWinConvertError) |
|
#define TclWinConvertWSAError \ |
|
(tclIntPlatStubsPtr->tclWinConvertWSAError) |
|
#define TclWinGetServByName \ |
|
(tclIntPlatStubsPtr->tclWinGetServByName) |
|
#define TclWinGetSockOpt \ |
|
(tclIntPlatStubsPtr->tclWinGetSockOpt) |
|
#define TclWinGetTclInstance \ |
|
(tclIntPlatStubsPtr->tclWinGetTclInstance) |
|
#define TclUnixWaitForFile \ |
|
(tclIntPlatStubsPtr->tclUnixWaitForFile) |
|
#define TclWinNToHS \ |
|
(tclIntPlatStubsPtr->tclWinNToHS) |
|
#define TclWinSetSockOpt \ |
|
(tclIntPlatStubsPtr->tclWinSetSockOpt) |
|
#define TclpGetPid \ |
|
(tclIntPlatStubsPtr->tclpGetPid) |
|
#define TclWinGetPlatformId \ |
|
(tclIntPlatStubsPtr->tclWinGetPlatformId) |
|
#define TclpReaddir \ |
|
(tclIntPlatStubsPtr->tclpReaddir) |
|
#define TclGetAndDetachPids \ |
|
(tclIntPlatStubsPtr->tclGetAndDetachPids) |
|
#define TclpCloseFile \ |
|
(tclIntPlatStubsPtr->tclpCloseFile) |
|
#define TclpCreateCommandChannel \ |
|
(tclIntPlatStubsPtr->tclpCreateCommandChannel) |
|
#define TclpCreatePipe \ |
|
(tclIntPlatStubsPtr->tclpCreatePipe) |
|
#define TclpCreateProcess \ |
|
(tclIntPlatStubsPtr->tclpCreateProcess) |
|
#define TclpIsAtty \ |
|
(tclIntPlatStubsPtr->tclpIsAtty) |
|
#define TclUnixCopyFile \ |
|
(tclIntPlatStubsPtr->tclUnixCopyFile) |
|
#define TclpMakeFile \ |
|
(tclIntPlatStubsPtr->tclpMakeFile) |
|
#define TclpOpenFile \ |
|
(tclIntPlatStubsPtr->tclpOpenFile) |
|
#define TclWinAddProcess \ |
|
(tclIntPlatStubsPtr->tclWinAddProcess) |
|
#define TclpInetNtoa \ |
|
(tclIntPlatStubsPtr->tclpInetNtoa) |
|
#define TclpCreateTempFile \ |
|
(tclIntPlatStubsPtr->tclpCreateTempFile) |
|
|
|
#define TclWinNoBackslash \ |
|
(tclIntPlatStubsPtr->tclWinNoBackslash) |
|
|
|
#define TclWinSetInterfaces \ |
|
(tclIntPlatStubsPtr->tclWinSetInterfaces) |
|
#define TclWinFlushDirtyChannels \ |
|
(tclIntPlatStubsPtr->tclWinFlushDirtyChannels) |
|
#define TclWinResetInterfaces \ |
|
(tclIntPlatStubsPtr->tclWinResetInterfaces) |
|
#define TclWinCPUID \ |
|
(tclIntPlatStubsPtr->tclWinCPUID) |
|
#define TclUnixOpenTemporaryFile \ |
|
(tclIntPlatStubsPtr->tclUnixOpenTemporaryFile) |
|
#endif |
|
#ifdef MAC_OSX_TCL |
|
#define TclGetAndDetachPids \ |
|
(tclIntPlatStubsPtr->tclGetAndDetachPids) |
|
#define TclpCloseFile \ |
|
(tclIntPlatStubsPtr->tclpCloseFile) |
|
#define TclpCreateCommandChannel \ |
|
(tclIntPlatStubsPtr->tclpCreateCommandChannel) |
|
#define TclpCreatePipe \ |
|
(tclIntPlatStubsPtr->tclpCreatePipe) |
|
#define TclpCreateProcess \ |
|
(tclIntPlatStubsPtr->tclpCreateProcess) |
|
#define TclUnixWaitForFile_ \ |
|
(tclIntPlatStubsPtr->tclUnixWaitForFile_) |
|
#define TclpMakeFile \ |
|
(tclIntPlatStubsPtr->tclpMakeFile) |
|
#define TclpOpenFile \ |
|
(tclIntPlatStubsPtr->tclpOpenFile) |
|
#define TclUnixWaitForFile \ |
|
(tclIntPlatStubsPtr->tclUnixWaitForFile) |
|
#define TclpCreateTempFile \ |
|
(tclIntPlatStubsPtr->tclpCreateTempFile) |
|
#define TclpReaddir \ |
|
(tclIntPlatStubsPtr->tclpReaddir) |
|
#define TclpLocaltime_unix \ |
|
(tclIntPlatStubsPtr->tclpLocaltime_unix) |
|
#define TclpGmtime_unix \ |
|
(tclIntPlatStubsPtr->tclpGmtime_unix) |
|
#define TclpInetNtoa \ |
|
(tclIntPlatStubsPtr->tclpInetNtoa) |
|
#define TclUnixCopyFile \ |
|
(tclIntPlatStubsPtr->tclUnixCopyFile) |
|
#define TclMacOSXGetFileAttribute \ |
|
(tclIntPlatStubsPtr->tclMacOSXGetFileAttribute) |
|
#define TclMacOSXSetFileAttribute \ |
|
(tclIntPlatStubsPtr->tclMacOSXSetFileAttribute) |
|
#define TclMacOSXCopyFileAttributes \ |
|
(tclIntPlatStubsPtr->tclMacOSXCopyFileAttributes) |
|
#define TclMacOSXMatchType \ |
|
(tclIntPlatStubsPtr->tclMacOSXMatchType) |
|
#define TclMacOSXNotifierAddRunLoopMode \ |
|
(tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode) |
|
|
|
|
|
#define TclpCreateTempFile_ \ |
|
(tclIntPlatStubsPtr->tclpCreateTempFile_) |
|
|
|
|
|
|
|
|
|
|
|
|
|
#define TclWinCPUID \ |
|
(tclIntPlatStubsPtr->tclWinCPUID) |
|
#define TclUnixOpenTemporaryFile \ |
|
(tclIntPlatStubsPtr->tclUnixOpenTemporaryFile) |
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#undef TCL_STORAGE_CLASS |
|
#define TCL_STORAGE_CLASS DLLIMPORT |
|
#undef TclpLocaltime_unix |
|
#undef TclpGmtime_unix |
|
#undef TclWinConvertWSAError |
|
#define TclWinConvertWSAError TclWinConvertError |
|
#undef TclpInetNtoa |
|
#define TclpInetNtoa inet_ntoa |
|
|
|
#undef TclpCreateTempFile_ |
|
#undef TclUnixWaitForFile_ |
|
#ifndef MAC_OSX_TCL |
|
#undef TclMacOSXGetFileAttribute |
|
#undef TclMacOSXSetFileAttribute |
|
#undef TclMacOSXCopyFileAttributes |
|
#undef TclMacOSXMatchType |
|
#undef TclMacOSXNotifierAddRunLoopMode |
|
#endif |
|
|
|
#if defined(_WIN32) |
|
# undef TclWinNToHS |
|
# undef TclWinGetServByName |
|
# undef TclWinGetSockOpt |
|
# undef TclWinSetSockOpt |
|
# define TclWinNToHS ntohs |
|
# define TclWinGetServByName getservbyname |
|
# define TclWinGetSockOpt getsockopt |
|
# define TclWinSetSockOpt setsockopt |
|
#else |
|
# undef TclpGetPid |
|
# define TclpGetPid(pid) ((unsigned long) (pid)) |
|
#endif |
|
|
|
#endif |
|
|