1/*
2 * bufIntDecls.h --
3 *
4 *	This file contains the declarations for all unsupported
5 *	functions that are exported by the Buf library.  These
6 *	interfaces are not guaranteed to remain the same between
7 *	versions.  Use at your own risk.
8 *
9 */
10
11#ifndef _BUFINTDECLS
12#define _BUFINTDECLS
13
14/*
15 * WARNING: This file is automatically generated by the tools/genStubs.tcl
16 * script.  Any modifications to the function declarations below should be made
17 * in the generic/bufInt.decls script.
18 */
19
20/* !BEGIN!: Do not edit below this line. */
21
22/*
23 * Exported function declarations:
24 */
25
26
27typedef struct BufIntStubs {
28    int magic;
29    struct BufIntStubHooks *hooks;
30
31} BufIntStubs;
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36extern BufIntStubs *bufIntStubsPtr;
37#ifdef __cplusplus
38}
39#endif
40
41#if defined(USE_BUF_STUBS) && !defined(USE_BUF_STUB_PROCS)
42
43/*
44 * Inline function declarations:
45 */
46
47
48#endif /* defined(USE_BUF_STUBS) && !defined(USE_BUF_STUB_PROCS) */
49
50/* !END!: Do not edit above this line. */
51
52/* Detect Tcl 8.4 and beyond => API CONSTification
53 */
54
55#define GT84 ((TCL_MAJOR_VERSION > 8) || \
56((TCL_MAJOR_VERSION == 8) && \
57 (TCL_MINOR_VERSION >= 4)))
58
59/* There are currently two cases to consider
60 *
61 * 1. An API function called with a const string, which was non-const
62 *    in the relevant argument before 8.4 and is now const in that
63 *    argument. This meanst that before 8.4 the actual parameter
64 *    required a cast to unconst the value and doesn't require the
65 *    cast for 8.4 and beyond.
66 *
67 *    This is solved by the macro MC_UNCONSTB84
68 *    = MemChan unCONST Before 8.4
69 *
70 * 2. ... Not yet.
71 */
72
73#if GT84
74#define MC_UNCONSTB84
75#else
76#define MC_UNCONSTB84   (char*)
77#endif
78
79#endif /* _BUFINTDECLS */
80