Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Delta Between Two Patch Sets: Modules/tkinter.h

Issue 16840: Tkinter doesn't support large integers
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 4 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/_tkinter.c ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #ifndef TKINTER_H 1 #ifndef TKINTER_H
2 #define TKINTER_H 2 #define TKINTER_H
3 3
4 /* This header is used to share some macros between _tkinter.c and 4 /* This header is used to share some macros between _tkinter.c and
5 * tkappinit.c. 5 * tkappinit.c.
6 * Be sure to include tk.h before including this header so 6 * Be sure to include tk.h before including this header so
7 * TK_VERSION_HEX is properly defined. */ 7 * TK_HEX_VERSION is properly defined. */
8 8
9 /* TK_RELEASE_LEVEL is always one of the following: 9 /* TK_RELEASE_LEVEL is always one of the following:
10 *» TCL_ALPHA_RELEASE 0 10 * TCL_ALPHA_RELEASE 0
11 * TCL_BETA_RELEASE 1 11 * TCL_BETA_RELEASE 1
12 * TCL_FINAL_RELEASE 2 12 * TCL_FINAL_RELEASE 2
13 */ 13 */
14 #define TK_HEX_VERSION ((TK_MAJOR_VERSION << 24) | \
15 (TK_MINOR_VERSION << 16) | \
16 (TK_RELEASE_LEVEL << 8) | \
17 (TK_RELEASE_SERIAL << 0))
18
19 /* TK_VERSION_HEX packs fields in wrong order, not suitable for comparing of
20 * non-final releases. Left for backward compatibility.
21 */
14 #define TK_VERSION_HEX ((TK_MAJOR_VERSION << 24) | \ 22 #define TK_VERSION_HEX ((TK_MAJOR_VERSION << 24) | \
15 » » (TK_MINOR_VERSION << 16) | \ 23 (TK_MINOR_VERSION << 16) | \
16 » » (TK_RELEASE_SERIAL << 8) | \ 24 (TK_RELEASE_SERIAL << 8) | \
17 » » (TK_RELEASE_LEVEL << 0)) 25 (TK_RELEASE_LEVEL << 0))
18 26
19 /* Protect Tk 8.4.13 and older from a deadlock that happens when trying 27 /* Protect Tk 8.4.13 and older from a deadlock that happens when trying
20 * to load tk after a failed attempt. */ 28 * to load tk after a failed attempt. */
21 #if TK_VERSION_HEX < 0x08040e02 29 #if TK_HEX_VERSION < 0x0804020e
22 #define TKINTER_PROTECT_LOADTK 30 #define TKINTER_PROTECT_LOADTK
23 #define TKINTER_LOADTK_ERRMSG \ 31 #define TKINTER_LOADTK_ERRMSG \
24 » "Calling Tk_Init again after a previous call failed might deadlock" 32 "Calling Tk_Init again after a previous call failed might deadlock"
25 #endif 33 #endif
26 34
27 #endif /* !TKINTER_H */ 35 #endif /* !TKINTER_H */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+