* Declarations of platform specific Tcl APIs.
* Copyright (c) 1998-1999 by Scriptics Corporation.
* RCS: @(#) $Id: tclPlatDecls.h,v 1.18.2.5 2004/06/10 17:17:45 andreas_kupries Exp $
* Pull in the typedef of TCHAR for windows.
#elif defined(__WIN32__) && !defined(_TCHAR_DEFINED)
/* Borland seems to forget to set this. */
# if defined(_MSC_VER) && defined(__STDC__)
/* MSVC++ misses this. */
/* !BEGIN!: Do not edit below this line. */
* Exported function declarations:
EXTERN TCHAR
* Tcl_WinUtfToTChar
_ANSI_ARGS_((CONST
char * str
,
int len
, Tcl_DString
* dsPtr
));
EXTERN
char * Tcl_WinTCharToUtf
_ANSI_ARGS_((CONST TCHAR
* str
,
int len
, Tcl_DString
* dsPtr
));
EXTERN
void Tcl_MacSetEventProc
_ANSI_ARGS_((
Tcl_MacConvertEventPtr procPtr
));
EXTERN
char * Tcl_MacConvertTextResource
_ANSI_ARGS_((
EXTERN
int Tcl_MacEvalResource
_ANSI_ARGS_((Tcl_Interp
* interp
,
CONST
char * resourceName
,
int resourceNumber
, CONST
char * fileName
));
EXTERN Handle Tcl_MacFindResource
_ANSI_ARGS_((Tcl_Interp
* interp
,
long resourceType
, CONST
char * resourceName
,
int resourceNumber
, CONST
char * resFileRef
,
EXTERN
int Tcl_GetOSTypeFromObj
_ANSI_ARGS_((
Tcl_Interp
* interp
, Tcl_Obj
* objPtr
,
EXTERN
void Tcl_SetOSTypeObj
_ANSI_ARGS_((Tcl_Obj
* objPtr
,
EXTERN Tcl_Obj
* Tcl_NewOSTypeObj
_ANSI_ARGS_((OSType osType
));
EXTERN
int strncasecmp
_ANSI_ARGS_((CONST
char * s1
,
CONST
char * s2
, size_t n
));
EXTERN
int strcasecmp
_ANSI_ARGS_((CONST
char * s1
,
EXTERN
int Tcl_MacOSXOpenBundleResources
_ANSI_ARGS_((
Tcl_Interp
* interp
, CONST
char * bundleName
,
int hasResourceFile
, int maxPathLen
,
EXTERN
int Tcl_MacOSXOpenVersionedBundleResources
_ANSI_ARGS_((
Tcl_Interp
* interp
, CONST
char * bundleName
,
CONST
char * bundleVersion
,
int hasResourceFile
, int maxPathLen
,
typedef struct TclPlatStubs
{
struct TclPlatStubHooks
*hooks
;
TCHAR
* (*tcl_WinUtfToTChar
) _ANSI_ARGS_((CONST
char * str
, int len
, Tcl_DString
* dsPtr
)); /* 0 */
char * (*tcl_WinTCharToUtf
) _ANSI_ARGS_((CONST TCHAR
* str
, int len
, Tcl_DString
* dsPtr
)); /* 1 */
void (*tcl_MacSetEventProc
) _ANSI_ARGS_((Tcl_MacConvertEventPtr procPtr
)); /* 0 */
char * (*tcl_MacConvertTextResource
) _ANSI_ARGS_((Handle resource
)); /* 1 */
int (*tcl_MacEvalResource
) _ANSI_ARGS_((Tcl_Interp
* interp
, CONST
char * resourceName
, int resourceNumber
, CONST
char * fileName
)); /* 2 */
Handle (*tcl_MacFindResource
) _ANSI_ARGS_((Tcl_Interp
* interp
, long resourceType
, CONST
char * resourceName
, int resourceNumber
, CONST
char * resFileRef
, int * releaseIt
)); /* 3 */
int (*tcl_GetOSTypeFromObj
) _ANSI_ARGS_((Tcl_Interp
* interp
, Tcl_Obj
* objPtr
, OSType
* osTypePtr
)); /* 4 */
void (*tcl_SetOSTypeObj
) _ANSI_ARGS_((Tcl_Obj
* objPtr
, OSType osType
)); /* 5 */
Tcl_Obj
* (*tcl_NewOSTypeObj
) _ANSI_ARGS_((OSType osType
)); /* 6 */
int (*strncasecmp
) _ANSI_ARGS_((CONST
char * s1
, CONST
char * s2
, size_t n
)); /* 7 */
int (*strcasecmp
) _ANSI_ARGS_((CONST
char * s1
, CONST
char * s2
)); /* 8 */
int (*tcl_MacOSXOpenBundleResources
) _ANSI_ARGS_((Tcl_Interp
* interp
, CONST
char * bundleName
, int hasResourceFile
, int maxPathLen
, char * libraryPath
)); /* 0 */
int (*tcl_MacOSXOpenVersionedBundleResources
) _ANSI_ARGS_((Tcl_Interp
* interp
, CONST
char * bundleName
, CONST
char * bundleVersion
, int hasResourceFile
, int maxPathLen
, char * libraryPath
)); /* 1 */
extern TclPlatStubs
*tclPlatStubsPtr
;
#if defined(USE_TCL_STUBS) && !defined(USE_TCL_STUB_PROCS)
* Inline function declarations:
#ifndef Tcl_WinUtfToTChar
#define Tcl_WinUtfToTChar \
(tclPlatStubsPtr->tcl_WinUtfToTChar) /* 0 */
#ifndef Tcl_WinTCharToUtf
#define Tcl_WinTCharToUtf \
(tclPlatStubsPtr->tcl_WinTCharToUtf) /* 1 */
#ifndef Tcl_MacSetEventProc
#define Tcl_MacSetEventProc \
(tclPlatStubsPtr->tcl_MacSetEventProc) /* 0 */
#ifndef Tcl_MacConvertTextResource
#define Tcl_MacConvertTextResource \
(tclPlatStubsPtr->tcl_MacConvertTextResource) /* 1 */
#ifndef Tcl_MacEvalResource
#define Tcl_MacEvalResource \
(tclPlatStubsPtr->tcl_MacEvalResource) /* 2 */
#ifndef Tcl_MacFindResource
#define Tcl_MacFindResource \
(tclPlatStubsPtr->tcl_MacFindResource) /* 3 */
#ifndef Tcl_GetOSTypeFromObj
#define Tcl_GetOSTypeFromObj \
(tclPlatStubsPtr->tcl_GetOSTypeFromObj) /* 4 */
#define Tcl_SetOSTypeObj \
(tclPlatStubsPtr->tcl_SetOSTypeObj) /* 5 */
#define Tcl_NewOSTypeObj \
(tclPlatStubsPtr->tcl_NewOSTypeObj) /* 6 */
(tclPlatStubsPtr->strncasecmp) /* 7 */
(tclPlatStubsPtr->strcasecmp) /* 8 */
#ifndef Tcl_MacOSXOpenBundleResources
#define Tcl_MacOSXOpenBundleResources \
(tclPlatStubsPtr->tcl_MacOSXOpenBundleResources) /* 0 */
#ifndef Tcl_MacOSXOpenVersionedBundleResources
#define Tcl_MacOSXOpenVersionedBundleResources \
(tclPlatStubsPtr->tcl_MacOSXOpenVersionedBundleResources) /* 1 */
#endif /* defined(USE_TCL_STUBS) && !defined(USE_TCL_STUB_PROCS) */
/* !END!: Do not edit above this line. */
#endif /* _TCLPLATDECLS */