Tk Source Code

Check-in [8e67d858]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:When building on Windows, inline is already defined in makefile.vc (-Dinline=__inline) regardless of the compiler version
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | revised_text | tip-466
Files: files | file ages | folders
SHA1: 8e67d85828005b31eb7b4980b8c4aac84719ae09
User & Date: fvogel 2017-02-22 16:56:08
Context
2017-02-22
16:58
Silence compiler warning check-in: 32323a1b user: fvogel tags: revised_text, tip-466
16:56
When building on Windows, inline is already defined in makefile.vc (-Dinline=__inline) regardless of the compiler version check-in: 8e67d858 user: fvogel tags: revised_text, tip-466
2017-02-21
22:53
Silence compiler warning check-in: 96115bb3 user: fvogel tags: revised_text, tip-466
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tkBitField.h.

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _TK
#include "tk.h"
#endif

#include "tkBool.h"
#include <stdint.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


#ifdef TCL_WIDE_INT_IS_LONG
typedef uint64_t TkBitWord;
#else
typedef uint32_t TkBitWord;







|
|
<
<
|

<
<







15
16
17
18
19
20
21
22
23


24
25


26
27
28
29
30
31
32
#ifndef _TK
#include "tk.h"
#endif

#include "tkBool.h"
#include <stdint.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


#ifdef TCL_WIDE_INT_IS_LONG
typedef uint64_t TkBitWord;
#else
typedef uint32_t TkBitWord;
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
    const TkBitField *add2, const TkBitField *sub2);
/* ((bf1 + (add - sub)) & add) == ((bf2 + (add - sub)) & add) */
bool TkBitInnerJoinDifferenceIsEqual(const TkBitField *bf1, const TkBitField *bf2,
    const TkBitField *add, const TkBitField *sub);

#endif /* TK_UNUSED_BITFIELD_FUNCTIONS */

#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
# include "tkBitFieldPriv.h"
#else
# undef inline
#endif

#endif /* _TKBITFIELD */
/* vi:set ts=8 sw=4: */







|


<
<




169
170
171
172
173
174
175
176
177
178


179
180
181
182
    const TkBitField *add2, const TkBitField *sub2);
/* ((bf1 + (add - sub)) & add) == ((bf2 + (add - sub)) & add) */
bool TkBitInnerJoinDifferenceIsEqual(const TkBitField *bf1, const TkBitField *bf2,
    const TkBitField *add, const TkBitField *sub);

#endif /* TK_UNUSED_BITFIELD_FUNCTIONS */

#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
# include "tkBitFieldPriv.h"


#endif

#endif /* _TKBITFIELD */
/* vi:set ts=8 sw=4: */

Changes to generic/tkBitFieldPriv.h.

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#endif /* _TKBITFIELDPRIV */


#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


#define TK_BIT_WORD_INDEX(n)	((n) >> ((TK_BIT_NBITS + 128) >> 5))
#define TK_BIT_INDEX(n)		((n) & (TK_BIT_NBITS - 1))
#define TK_BIT_MASK(n)		(((TkBitWord) 1) << (n))
#define TK_BIT_COUNT_WORDS(n)	((n + TK_BIT_NBITS - 1)/TK_BIT_NBITS)







|
|
<
<
|

<
<







22
23
24
25
26
27
28
29
30


31
32


33
34
35
36
37
38
39
#endif /* _TKBITFIELDPRIV */


#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


#define TK_BIT_WORD_INDEX(n)	((n) >> ((TK_BIT_NBITS + 128) >> 5))
#define TK_BIT_INDEX(n)		((n) & (TK_BIT_NBITS - 1))
#define TK_BIT_MASK(n)		(((TkBitWord) 1) << (n))
#define TK_BIT_COUNT_WORDS(n)	((n + TK_BIT_NBITS - 1)/TK_BIT_NBITS)

Changes to generic/tkIntSet.h.

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

#if defined(__GNUC__) || defined(__clang__)
# define __warn_unused__ __attribute__((warn_unused_result))
#else
# define __warn_unused__
#endif

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


struct TkBitField;


typedef uint32_t TkIntSetType;







|
|
<
<
|

<
<







21
22
23
24
25
26
27
28
29


30
31


32
33
34
35
36
37
38

#if defined(__GNUC__) || defined(__clang__)
# define __warn_unused__ __attribute__((warn_unused_result))
#else
# define __warn_unused__
#endif

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


struct TkBitField;


typedef uint32_t TkIntSetType;
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
    const TkIntSet *add, const TkIntSet *sub);

#endif /* TK_UNUSED_INTSET_FUNCTIONS */


#undef __warn_unused__

#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
#include "tkIntSetPriv.h"
# undef _TK_NEED_IMPLEMENTATION
#else
# undef inline
#endif

#endif /* _TKINTSET */
/* vi:set ts=8 sw=4: */







|



<
<




179
180
181
182
183
184
185
186
187
188
189


190
191
192
193
    const TkIntSet *add, const TkIntSet *sub);

#endif /* TK_UNUSED_INTSET_FUNCTIONS */


#undef __warn_unused__

#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
#include "tkIntSetPriv.h"
# undef _TK_NEED_IMPLEMENTATION


#endif

#endif /* _TKINTSET */
/* vi:set ts=8 sw=4: */

Changes to generic/tkIntSetPriv.h.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#endif /* _TKINTSETPRIV */


#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


extern TkIntSetType *
TkIntSetLowerBound(
    TkIntSetType *first,
    TkIntSetType *last,







|
|
<
<
|

<
<







30
31
32
33
34
35
36
37
38


39
40


41
42
43
44
45
46
47
#endif /* _TKINTSETPRIV */


#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


extern TkIntSetType *
TkIntSetLowerBound(
    TkIntSetType *first,
    TkIntSetType *last,

Changes to generic/tkQTree.h.

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _TKINT
#include "tkInt.h"
#endif

#include "tkBool.h"
#include <stdint.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


/* =========================================================================
 * Definitions for rectangle support.
 * ========================================================================= */








|
|
<
<
|

<
<







15
16
17
18
19
20
21
22
23


24
25


26
27
28
29
30
31
32
#ifndef _TKINT
#include "tkInt.h"
#endif

#include "tkBool.h"
#include <stdint.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


/* =========================================================================
 * Definitions for rectangle support.
 * ========================================================================= */

170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186

unsigned TkQTreeSearchRectsContaining(const TkQTree tree, const TkQTreeRect *rect,
    TkQTreeCallback cbHit, TkQTreeClientData cbArg);

#endif /* QTREE_SEARCH_RECTS_CONTAINING */


#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
#include "tkQTreePriv.h"
# undef _TK_NEED_IMPLEMENTATION
#else
# undef inline
#endif

#endif /* _TKQTREE */
/* vi:set ts=8 sw=4: */







|



<
<




166
167
168
169
170
171
172
173
174
175
176


177
178
179
180

unsigned TkQTreeSearchRectsContaining(const TkQTree tree, const TkQTreeRect *rect,
    TkQTreeCallback cbHit, TkQTreeClientData cbArg);

#endif /* QTREE_SEARCH_RECTS_CONTAINING */


#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
#include "tkQTreePriv.h"
# undef _TK_NEED_IMPLEMENTATION


#endif

#endif /* _TKQTREE */
/* vi:set ts=8 sw=4: */

Changes to generic/tkQTreePriv.h.

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#endif


#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


inline
bool
TkQTreeRectIsEmpty(
    const TkQTreeRect *rect)







|
|
<
<
|

<
<







14
15
16
17
18
19
20
21
22


23
24


25
26
27
28
29
30
31
#endif


#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


inline
bool
TkQTreeRectIsEmpty(
    const TkQTreeRect *rect)

Changes to generic/tkRangeList.h.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#if defined(__GNUC__) || defined(__clang__)
# define __warn_unused__ __attribute__((warn_unused_result))
#else
# define __warn_unused__
#endif

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


typedef struct TkRange {
    int low;
    int high;
} TkRange;







|
|
<
<
|

<
<







19
20
21
22
23
24
25
26
27


28
29


30
31
32
33
34
35
36

#if defined(__GNUC__) || defined(__clang__)
# define __warn_unused__ __attribute__((warn_unused_result))
#else
# define __warn_unused__
#endif

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


typedef struct TkRange {
    int low;
    int high;
} TkRange;
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
TkRangeList *TkRangeListDelete(TkRangeList *ranges, int low, int high);

#if !NDEBUG
void TkRangeListPrint(const TkRangeList *ranges);
#endif


#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
# include "tkRangeListPriv.h"
# undef _TK_NEED_IMPLEMENTATION
#else
# undef inline
#endif

#endif /* _TKRANGELIST */
/* vi:set ts=8 sw=4: */







|



<
<




195
196
197
198
199
200
201
202
203
204
205


206
207
208
209
TkRangeList *TkRangeListDelete(TkRangeList *ranges, int low, int high);

#if !NDEBUG
void TkRangeListPrint(const TkRangeList *ranges);
#endif


#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
# include "tkRangeListPriv.h"
# undef _TK_NEED_IMPLEMENTATION


#endif

#endif /* _TKRANGELIST */
/* vi:set ts=8 sw=4: */

Changes to generic/tkRangeListPriv.h.

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36


#ifdef _TK_NEED_IMPLEMENTATION

#include <stddef.h>
#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


inline
int
TkRangeSpan(
    const TkRange *range)







|
|
<
<
|

<
<







15
16
17
18
19
20
21
22
23


24
25


26
27
28
29
30
31
32


#ifdef _TK_NEED_IMPLEMENTATION

#include <stddef.h>
#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


inline
int
TkRangeSpan(
    const TkRange *range)

Changes to generic/tkText.h.

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <stdint.h>

#ifdef MAC_OSX_TK
/* required for TK_LAYOUT_WITH_BASE_CHUNKS */
# include "tkMacOSXInt.h"
#endif

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif

#ifdef BUILD_tk
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLEXPORT
#endif








|
|
<
<
|

<
<







29
30
31
32
33
34
35
36
37


38
39


40
41
42
43
44
45
46
#include <stdint.h>

#ifdef MAC_OSX_TK
/* required for TK_LAYOUT_WITH_BASE_CHUNKS */
# include "tkMacOSXInt.h"
#endif

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif

#ifdef BUILD_tk
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLEXPORT
#endif

2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLIMPORT

#endif /* TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 5 */

#undef STRUCT

#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
# include "tkTextPriv.h"
#else
# undef inline
#endif

#endif /* _TKTEXT */
/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4
 * fill-column: 105
 * End:
 * vi:set ts=8 sw=4:
 */







|


<
<











2099
2100
2101
2102
2103
2104
2105
2106
2107
2108


2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLIMPORT

#endif /* TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 5 */

#undef STRUCT

#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
# include "tkTextPriv.h"


#endif

#endif /* _TKTEXT */
/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4
 * fill-column: 105
 * End:
 * vi:set ts=8 sw=4:
 */

Changes to generic/tkTextPriv.h.

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

#endif /* _TKTEXTPRIV */

#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif

/*
 *----------------------------------------------------------------------
 *
 * TkTextIsSpecialMark --
 *







|
|
<
<
|

<
<







44
45
46
47
48
49
50
51
52


53
54


55
56
57
58
59
60
61

#endif /* _TKTEXTPRIV */

#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif

/*
 *----------------------------------------------------------------------
 *
 * TkTextIsSpecialMark --
 *

Changes to generic/tkTextTagSet.h.

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

#if defined(__GNUC__) || defined(__clang__)
# define __warn_unused__ __attribute__((warn_unused_result))
#else
# define __warn_unused__
#endif

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


/*
 * Currently our implementation is using a shared bitfield/integer set implementation.
 * Bitfields will be used as long as the number of tags is below a certain limit
 * (will be satisfied in most applications), but in some sophisticated applications







|
|
<
<
|

<
<







21
22
23
24
25
26
27
28
29


30
31


32
33
34
35
36
37
38

#if defined(__GNUC__) || defined(__clang__)
# define __warn_unused__ __attribute__((warn_unused_result))
#else
# define __warn_unused__
#endif

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


/*
 * Currently our implementation is using a shared bitfield/integer set implementation.
 * Bitfields will be used as long as the number of tags is below a certain limit
 * (will be satisfied in most applications), but in some sophisticated applications
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
inline unsigned TkTextTagSetByteSize(const TkIntSet *ts);

#endif /* !TK_TEXT_DONT_USE_BITFIELDS */


#undef __warn_unused__

#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
# include "tkTextTagSetPriv.h"
# undef _TK_NEED_IMPLEMENTATION
#else
# undef inline
#endif

#endif /* _TKTEXTTAGSET */
/* vi:set ts=8 sw=4: */







|



<
<




272
273
274
275
276
277
278
279
280
281
282


283
284
285
286
inline unsigned TkTextTagSetByteSize(const TkIntSet *ts);

#endif /* !TK_TEXT_DONT_USE_BITFIELDS */


#undef __warn_unused__

#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
# include "tkTextTagSetPriv.h"
# undef _TK_NEED_IMPLEMENTATION


#endif

#endif /* _TKTEXTTAGSET */
/* vi:set ts=8 sw=4: */

Changes to generic/tkTextTagSetPriv.h.

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

#ifndef _TK
#include "tk.h"
#endif

#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


#if !TK_TEXT_DONT_USE_BITFIELDS /* shared implementation ****************************/

inline
TkTextTagSet *







|
|
<
<
|

<
<







62
63
64
65
66
67
68
69
70


71
72


73
74
75
76
77
78
79

#ifndef _TK
#include "tk.h"
#endif

#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


#if !TK_TEXT_DONT_USE_BITFIELDS /* shared implementation ****************************/

inline
TkTextTagSet *

Changes to generic/tkTextUndo.h.

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

#ifndef _TKTEXTUNDO
#define _TKTEXTUNDO

#include "tkBool.h"
#include <stdint.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


/*
 * Our (private) stack type.
 */








|
|
<
<
|

<
<







29
30
31
32
33
34
35
36
37


38
39


40
41
42
43
44
45
46

#ifndef _TKTEXTUNDO
#define _TKTEXTUNDO

#include "tkBool.h"
#include <stdint.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


/*
 * Our (private) stack type.
 */

244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
 * pushed. Returns an error (TCL_ERROR) if no undo (redo) action is possible.
 */

int TkTextUndoDoUndo(TkTextUndoStack stack);
int TkTextUndoDoRedo(TkTextUndoStack stack);


#if __STDC_VERSION__ >= 199901L || (defined(_MSC_VER) && _MSC_VER >= 1900)
# define _TK_NEED_IMPLEMENTATION
# include "tkTextUndoPriv.h"
# undef _TK_NEED_IMPLEMENTATION
#else
# undef inline
#endif

#endif /* _TKTEXTUNDO */
/* vi:set ts=8 sw=4: */







|



<
<




240
241
242
243
244
245
246
247
248
249
250


251
252
253
254
 * pushed. Returns an error (TCL_ERROR) if no undo (redo) action is possible.
 */

int TkTextUndoDoUndo(TkTextUndoStack stack);
int TkTextUndoDoRedo(TkTextUndoStack stack);


#if __STDC_VERSION__ >= 199901L
# define _TK_NEED_IMPLEMENTATION
# include "tkTextUndoPriv.h"
# undef _TK_NEED_IMPLEMENTATION


#endif

#endif /* _TKTEXTUNDO */
/* vi:set ts=8 sw=4: */

Changes to generic/tkTextUndoPriv.h.

56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

#endif /* _TKTEXTUNDOPRIV */

#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifdef _MSC_VER
# if _MSC_VER >= 1900
#  define inline __inline
# else
#  define inline
# endif
#elif __STDC_VERSION__ < 199901L
# define inline /* we are not C99 conform */
#endif


inline unsigned
TkTextUndoGetMaxUndoDepth(const TkTextUndoStack stack)
{ assert(stack); return stack->maxUndoDepth; }








|
|
<
<
|

<
<







56
57
58
59
60
61
62
63
64


65
66


67
68
69
70
71
72
73

#endif /* _TKTEXTUNDOPRIV */

#ifdef _TK_NEED_IMPLEMENTATION

#include <assert.h>

#ifndef _MSC_VER
# if __STDC_VERSION__ < 199901L


#  define inline /* we are not C99 conform */
# endif


#endif


inline unsigned
TkTextUndoGetMaxUndoDepth(const TkTextUndoStack stack)
{ assert(stack); return stack->maxUndoDepth; }