Fossil SCM

Minor naming tweak.

mistachkin 2016-01-17 23:00 tclPlatform
Commit 07324777f2f13e35a10a1c469384cde3dce01bfa
1 file changed +7 -7
+7 -7
--- src/th.c
+++ src/th.c
@@ -11,19 +11,19 @@
1111
1212
/*
1313
** Values used for element values in the tcl_platform array.
1414
*/
1515
16
-#if !defined(TH1_ENGINE)
17
-# define TH1_ENGINE "TH1"
16
+#if !defined(TH_ENGINE)
17
+# define TH_ENGINE "TH1"
1818
#endif
1919
20
-#if !defined(TH1_PLATFORM)
20
+#if !defined(TH_PLATFORM)
2121
# if defined(_WIN32) || defined(WIN32)
22
-# define TH1_PLATFORM "windows"
22
+# define TH_PLATFORM "windows"
2323
# else
24
-# define TH1_PLATFORM "unix"
24
+# define TH_PLATFORM "unix"
2525
# endif
2626
#endif
2727
2828
/*
2929
** Forward declarations for structures defined below.
@@ -1783,12 +1783,12 @@
17831783
** Initialize an interpreter.
17841784
*/
17851785
static int thInitialize(Th_Interp *interp){
17861786
assert(interp->pFrame);
17871787
1788
- Th_SetVar(interp, (char *)"::tcl_platform(engine)", -1, TH1_ENGINE, -1);
1789
- Th_SetVar(interp, (char *)"::tcl_platform(platform)", -1, TH1_PLATFORM, -1);
1788
+ Th_SetVar(interp, (char *)"::tcl_platform(engine)", -1, TH_ENGINE, -1);
1789
+ Th_SetVar(interp, (char *)"::tcl_platform(platform)", -1, TH_PLATFORM, -1);
17901790
17911791
return TH_OK;
17921792
}
17931793
17941794
/*
17951795
--- src/th.c
+++ src/th.c
@@ -11,19 +11,19 @@
11
12 /*
13 ** Values used for element values in the tcl_platform array.
14 */
15
16 #if !defined(TH1_ENGINE)
17 # define TH1_ENGINE "TH1"
18 #endif
19
20 #if !defined(TH1_PLATFORM)
21 # if defined(_WIN32) || defined(WIN32)
22 # define TH1_PLATFORM "windows"
23 # else
24 # define TH1_PLATFORM "unix"
25 # endif
26 #endif
27
28 /*
29 ** Forward declarations for structures defined below.
@@ -1783,12 +1783,12 @@
1783 ** Initialize an interpreter.
1784 */
1785 static int thInitialize(Th_Interp *interp){
1786 assert(interp->pFrame);
1787
1788 Th_SetVar(interp, (char *)"::tcl_platform(engine)", -1, TH1_ENGINE, -1);
1789 Th_SetVar(interp, (char *)"::tcl_platform(platform)", -1, TH1_PLATFORM, -1);
1790
1791 return TH_OK;
1792 }
1793
1794 /*
1795
--- src/th.c
+++ src/th.c
@@ -11,19 +11,19 @@
11
12 /*
13 ** Values used for element values in the tcl_platform array.
14 */
15
16 #if !defined(TH_ENGINE)
17 # define TH_ENGINE "TH1"
18 #endif
19
20 #if !defined(TH_PLATFORM)
21 # if defined(_WIN32) || defined(WIN32)
22 # define TH_PLATFORM "windows"
23 # else
24 # define TH_PLATFORM "unix"
25 # endif
26 #endif
27
28 /*
29 ** Forward declarations for structures defined below.
@@ -1783,12 +1783,12 @@
1783 ** Initialize an interpreter.
1784 */
1785 static int thInitialize(Th_Interp *interp){
1786 assert(interp->pFrame);
1787
1788 Th_SetVar(interp, (char *)"::tcl_platform(engine)", -1, TH_ENGINE, -1);
1789 Th_SetVar(interp, (char *)"::tcl_platform(platform)", -1, TH_PLATFORM, -1);
1790
1791 return TH_OK;
1792 }
1793
1794 /*
1795

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button