/[dtapublic]/projs/trunk/shared_source/c_tcl_base_7_5_w_mods/tclwinint.h
ViewVC logotype

Diff of /projs/trunk/shared_source/c_tcl_base_7_5_w_mods/tclwinint.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by dashley, Mon Oct 31 00:57:34 2016 UTC revision 71 by dashley, Sat Nov 5 11:07:06 2016 UTC
# Line 1  Line 1 
1  /* $Header$ */  /* $Header$ */
2  /*  /*
3   * tclWinInt.h --   * tclWinInt.h --
4   *   *
5   *      Declarations of Windows-specific shared variables and procedures.   *      Declarations of Windows-specific shared variables and procedures.
6   *   *
7   * Copyright (c) 1994-1996 Sun Microsystems, Inc.   * Copyright (c) 1994-1996 Sun Microsystems, Inc.
8   *   *
9   * See the file "license.terms" for information on usage and redistribution   * See the file "license.terms" for information on usage and redistribution
10   * of this file, and for a DISCLAIMER OF ALL WARRANTIES.   * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11   *   *
12   * RCS: @(#) $Id: tclwinint.h,v 1.1.1.1 2001/06/13 04:49:18 dtashley Exp $   * RCS: @(#) $Id: tclwinint.h,v 1.1.1.1 2001/06/13 04:49:18 dtashley Exp $
13   */   */
14    
15  #ifndef _TCLWININT  #ifndef _TCLWININT
16  #define _TCLWININT  #define _TCLWININT
17    
18  #ifndef _TCLINT  #ifndef _TCLINT
19  #include "tclInt.h"  #include "tclInt.h"
20  #endif  #endif
21  #ifndef _TCLPORT  #ifndef _TCLPORT
22  #include "tclPort.h"  #include "tclPort.h"
23  #endif  #endif
24    
25  /*  /*
26   * The following specifies how much stack space TclpCheckStackSpace()   * The following specifies how much stack space TclpCheckStackSpace()
27   * ensures is available.  TclpCheckStackSpace() is called by Tcl_EvalObj()   * ensures is available.  TclpCheckStackSpace() is called by Tcl_EvalObj()
28   * to help avoid overflowing the stack in the case of infinite recursion.   * to help avoid overflowing the stack in the case of infinite recursion.
29   */   */
30    
31  #define TCL_WIN_STACK_THRESHOLD 0x2000  #define TCL_WIN_STACK_THRESHOLD 0x2000
32    
33  #ifdef BUILD_tcl  #ifdef BUILD_tcl
34  # undef TCL_STORAGE_CLASS  # undef TCL_STORAGE_CLASS
35  # define TCL_STORAGE_CLASS DLLEXPORT  # define TCL_STORAGE_CLASS DLLEXPORT
36  #endif  #endif
37    
38  /*  /*
39   * Some versions of Borland C have a define for the OSVERSIONINFO for   * Some versions of Borland C have a define for the OSVERSIONINFO for
40   * Win32s and for NT, but not for Windows 95.   * Win32s and for NT, but not for Windows 95.
41   */   */
42    
43  #ifndef VER_PLATFORM_WIN32_WINDOWS  #ifndef VER_PLATFORM_WIN32_WINDOWS
44  #define VER_PLATFORM_WIN32_WINDOWS 1  #define VER_PLATFORM_WIN32_WINDOWS 1
45  #endif  #endif
46    
47  /*  /*
48   * The following structure keeps track of whether we are using the   * The following structure keeps track of whether we are using the
49   * multi-byte or the wide-character interfaces to the operating system.   * multi-byte or the wide-character interfaces to the operating system.
50   * System calls should be made through the following function table.   * System calls should be made through the following function table.
51   */   */
52    
53  typedef union {  typedef union {
54      WIN32_FIND_DATAA a;      WIN32_FIND_DATAA a;
55      WIN32_FIND_DATAW w;      WIN32_FIND_DATAW w;
56  } WIN32_FIND_DATAT;  } WIN32_FIND_DATAT;
57    
58  typedef struct TclWinProcs {  typedef struct TclWinProcs {
59      int useWide;      int useWide;
60    
61      BOOL (WINAPI *buildCommDCBProc)(CONST TCHAR *, LPDCB);      BOOL (WINAPI *buildCommDCBProc)(CONST TCHAR *, LPDCB);
62      TCHAR *(WINAPI *charLowerProc)(TCHAR *);      TCHAR *(WINAPI *charLowerProc)(TCHAR *);
63      BOOL (WINAPI *copyFileProc)(CONST TCHAR *, CONST TCHAR *, BOOL);      BOOL (WINAPI *copyFileProc)(CONST TCHAR *, CONST TCHAR *, BOOL);
64      BOOL (WINAPI *createDirectoryProc)(CONST TCHAR *, LPSECURITY_ATTRIBUTES);      BOOL (WINAPI *createDirectoryProc)(CONST TCHAR *, LPSECURITY_ATTRIBUTES);
65      HANDLE (WINAPI *createFileProc)(CONST TCHAR *, DWORD, DWORD,      HANDLE (WINAPI *createFileProc)(CONST TCHAR *, DWORD, DWORD,
66              LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE);              LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE);
67      BOOL (WINAPI *createProcessProc)(CONST TCHAR *, TCHAR *,      BOOL (WINAPI *createProcessProc)(CONST TCHAR *, TCHAR *,
68              LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, BOOL, DWORD,              LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, BOOL, DWORD,
69              LPVOID, CONST TCHAR *, LPSTARTUPINFOA, LPPROCESS_INFORMATION);              LPVOID, CONST TCHAR *, LPSTARTUPINFOA, LPPROCESS_INFORMATION);
70      BOOL (WINAPI *deleteFileProc)(CONST TCHAR *);      BOOL (WINAPI *deleteFileProc)(CONST TCHAR *);
71      HANDLE (WINAPI *findFirstFileProc)(CONST TCHAR *, WIN32_FIND_DATAT *);      HANDLE (WINAPI *findFirstFileProc)(CONST TCHAR *, WIN32_FIND_DATAT *);
72      BOOL (WINAPI *findNextFileProc)(HANDLE, WIN32_FIND_DATAT *);      BOOL (WINAPI *findNextFileProc)(HANDLE, WIN32_FIND_DATAT *);
73      BOOL (WINAPI *getComputerNameProc)(WCHAR *, LPDWORD);      BOOL (WINAPI *getComputerNameProc)(WCHAR *, LPDWORD);
74      DWORD (WINAPI *getCurrentDirectoryProc)(DWORD, WCHAR *);      DWORD (WINAPI *getCurrentDirectoryProc)(DWORD, WCHAR *);
75      DWORD (WINAPI *getFileAttributesProc)(CONST TCHAR *);      DWORD (WINAPI *getFileAttributesProc)(CONST TCHAR *);
76      DWORD (WINAPI *getFullPathNameProc)(CONST TCHAR *, DWORD nBufferLength,      DWORD (WINAPI *getFullPathNameProc)(CONST TCHAR *, DWORD nBufferLength,
77              WCHAR *, TCHAR **);              WCHAR *, TCHAR **);
78      DWORD (WINAPI *getModuleFileNameProc)(HMODULE, WCHAR *, int);      DWORD (WINAPI *getModuleFileNameProc)(HMODULE, WCHAR *, int);
79      DWORD (WINAPI *getShortPathNameProc)(CONST TCHAR *, WCHAR *, DWORD);      DWORD (WINAPI *getShortPathNameProc)(CONST TCHAR *, WCHAR *, DWORD);
80      UINT (WINAPI *getTempFileNameProc)(CONST TCHAR *, CONST TCHAR *, UINT,      UINT (WINAPI *getTempFileNameProc)(CONST TCHAR *, CONST TCHAR *, UINT,
81              WCHAR *);              WCHAR *);
82      DWORD (WINAPI *getTempPathProc)(DWORD, WCHAR *);      DWORD (WINAPI *getTempPathProc)(DWORD, WCHAR *);
83      BOOL (WINAPI *getVolumeInformationProc)(CONST TCHAR *, WCHAR *, DWORD,      BOOL (WINAPI *getVolumeInformationProc)(CONST TCHAR *, WCHAR *, DWORD,
84              LPDWORD, LPDWORD, LPDWORD, WCHAR *, DWORD);              LPDWORD, LPDWORD, LPDWORD, WCHAR *, DWORD);
85      HINSTANCE (WINAPI *loadLibraryProc)(CONST TCHAR *);      HINSTANCE (WINAPI *loadLibraryProc)(CONST TCHAR *);
86      TCHAR (WINAPI *lstrcpyProc)(WCHAR *, CONST TCHAR *);      TCHAR (WINAPI *lstrcpyProc)(WCHAR *, CONST TCHAR *);
87      BOOL (WINAPI *moveFileProc)(CONST TCHAR *, CONST TCHAR *);      BOOL (WINAPI *moveFileProc)(CONST TCHAR *, CONST TCHAR *);
88      BOOL (WINAPI *removeDirectoryProc)(CONST TCHAR *);      BOOL (WINAPI *removeDirectoryProc)(CONST TCHAR *);
89      DWORD (WINAPI *searchPathProc)(CONST TCHAR *, CONST TCHAR *,      DWORD (WINAPI *searchPathProc)(CONST TCHAR *, CONST TCHAR *,
90              CONST TCHAR *, DWORD, WCHAR *, TCHAR **);              CONST TCHAR *, DWORD, WCHAR *, TCHAR **);
91      BOOL (WINAPI *setCurrentDirectoryProc)(CONST TCHAR *);      BOOL (WINAPI *setCurrentDirectoryProc)(CONST TCHAR *);
92      BOOL (WINAPI *setFileAttributesProc)(CONST TCHAR *, DWORD);      BOOL (WINAPI *setFileAttributesProc)(CONST TCHAR *, DWORD);
93  } TclWinProcs;  } TclWinProcs;
94    
95  EXTERN TclWinProcs *tclWinProcs;  EXTERN TclWinProcs *tclWinProcs;
96  EXTERN Tcl_Encoding tclWinTCharEncoding;  EXTERN Tcl_Encoding tclWinTCharEncoding;
97    
98  /*  /*
99   * Declarations of functions that are not accessible by way of the   * Declarations of functions that are not accessible by way of the
100   * stubs table.   * stubs table.
101   */   */
102    
103  EXTERN void             TclWinInit(HINSTANCE hInst);  EXTERN void             TclWinInit(HINSTANCE hInst);
104    
105  # undef TCL_STORAGE_CLASS  # undef TCL_STORAGE_CLASS
106  # define TCL_STORAGE_CLASS DLLIMPORT  # define TCL_STORAGE_CLASS DLLIMPORT
107    
108  #include "tclIntPlatDecls.h"  #include "tclIntPlatDecls.h"
109    
110  #endif  /* _TCLWININT */  #endif  /* _TCLWININT */
111    
112  /* End of tclwinint.h */  /* End of tclwinint.h */

Legend:
Removed from v.67  
changed lines
  Added in v.71

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25