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: |
8e67d85828005b31eb7b4980b8c4aac8 |
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
Changes to generic/tkBitField.h.
︙ | ︙ | |||
15 16 17 18 19 20 21 | #ifndef _TK #include "tk.h" #endif #include "tkBool.h" #include <stdint.h> | | | < < | < < | 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 | 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 */ | | < < | 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 | #endif /* _TKBITFIELDPRIV */ #ifdef _TK_NEED_IMPLEMENTATION #include <assert.h> | | | < < | < < | 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 | #if defined(__GNUC__) || defined(__clang__) # define __warn_unused__ __attribute__((warn_unused_result)) #else # define __warn_unused__ #endif | | | < < | < < | 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 | const TkIntSet *add, const TkIntSet *sub); #endif /* TK_UNUSED_INTSET_FUNCTIONS */ #undef __warn_unused__ | | < < | 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 | #endif /* _TKINTSETPRIV */ #ifdef _TK_NEED_IMPLEMENTATION #include <assert.h> | | | < < | < < | 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 | #ifndef _TKINT #include "tkInt.h" #endif #include "tkBool.h" #include <stdint.h> | | | < < | < < | 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 | unsigned TkQTreeSearchRectsContaining(const TkQTree tree, const TkQTreeRect *rect, TkQTreeCallback cbHit, TkQTreeClientData cbArg); #endif /* QTREE_SEARCH_RECTS_CONTAINING */ | | < < | 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 | #endif #ifdef _TK_NEED_IMPLEMENTATION #include <assert.h> | | | < < | < < | 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 | #if defined(__GNUC__) || defined(__clang__) # define __warn_unused__ __attribute__((warn_unused_result)) #else # define __warn_unused__ #endif | | | < < | < < | 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 | TkRangeList *TkRangeListDelete(TkRangeList *ranges, int low, int high); #if !NDEBUG void TkRangeListPrint(const TkRangeList *ranges); #endif | | < < | 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 | #ifdef _TK_NEED_IMPLEMENTATION #include <stddef.h> #include <assert.h> | | | < < | < < | 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 | #include <stdint.h> #ifdef MAC_OSX_TK /* required for TK_LAYOUT_WITH_BASE_CHUNKS */ # include "tkMacOSXInt.h" #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 | # undef TCL_STORAGE_CLASS # define TCL_STORAGE_CLASS DLLIMPORT #endif /* TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 5 */ #undef STRUCT | | < < | 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 | #endif /* _TKTEXTPRIV */ #ifdef _TK_NEED_IMPLEMENTATION #include <assert.h> | | | < < | < < | 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 | #if defined(__GNUC__) || defined(__clang__) # define __warn_unused__ __attribute__((warn_unused_result)) #else # define __warn_unused__ #endif | | | < < | < < | 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 | inline unsigned TkTextTagSetByteSize(const TkIntSet *ts); #endif /* !TK_TEXT_DONT_USE_BITFIELDS */ #undef __warn_unused__ | | < < | 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 | #ifndef _TK #include "tk.h" #endif #include <assert.h> | | | < < | < < | 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 | #ifndef _TKTEXTUNDO #define _TKTEXTUNDO #include "tkBool.h" #include <stdint.h> | | | < < | < < | 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 | * pushed. Returns an error (TCL_ERROR) if no undo (redo) action is possible. */ int TkTextUndoDoUndo(TkTextUndoStack stack); int TkTextUndoDoRedo(TkTextUndoStack stack); | | < < | 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 | #endif /* _TKTEXTUNDOPRIV */ #ifdef _TK_NEED_IMPLEMENTATION #include <assert.h> | | | < < | < < | 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; } |
︙ | ︙ |