Fossil SCM

Merge updates from trunk.

mistachkin 2014-06-11 00:40 UTC th1Hooks merge
Commit 715dcd52fe9e07ed186d5a5933bc5aac373b1a22
3 files changed +13 -13 +13 -13 +1 -1
+13 -13
--- src/th_main.c
+++ src/th_main.c
@@ -28,11 +28,11 @@
2828
** interpreter creation and initialization process.
2929
*/
3030
#define TH_INIT_NONE ((u32)0x00000000) /* No flags. */
3131
#define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */
3232
#define TH_INIT_FORCE_TCL ((u32)0x00000002) /* Force Tcl to be enabled? */
33
-#define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH commands re-added? */
33
+#define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH1 commands re-added? */
3434
#define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */
3535
#define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */
3636
#define TH_INIT_HOOK (TH_INIT_NEED_CONFIG | TH_INIT_FORCE_SETUP)
3737
#endif
3838
@@ -111,11 +111,11 @@
111111
fossil_print("\n------------------- END TRACE LOG -------------------\n");
112112
}
113113
}
114114
115115
/*
116
-** TH command: httpize STRING
116
+** TH1 command: httpize STRING
117117
**
118118
** Escape all characters of STRING which have special meaning in URI
119119
** components. Return a new string result.
120120
*/
121121
static int httpizeCmd(
@@ -139,11 +139,11 @@
139139
** True if output is enabled. False if disabled.
140140
*/
141141
static int enableOutput = 1;
142142
143143
/*
144
-** TH command: enable_output BOOLEAN
144
+** TH1 command: enable_output BOOLEAN
145145
**
146146
** Enable or disable the puts and hputs commands.
147147
*/
148148
static int enableOutputCmd(
149149
Th_Interp *interp,
@@ -214,12 +214,12 @@
214214
sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
215215
enableOutput = savedEnable;
216216
}
217217
218218
/*
219
-** TH command: puts STRING
220
-** TH command: html STRING
219
+** TH1 command: puts STRING
220
+** TH1 command: html STRING
221221
**
222222
** Output STRING escaped for HTML (html) or unchanged (puts).
223223
*/
224224
static int putsCmd(
225225
Th_Interp *interp,
@@ -234,11 +234,11 @@
234234
sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
235235
return TH_OK;
236236
}
237237
238238
/*
239
-** TH command: wiki STRING
239
+** TH1 command: wiki STRING
240240
**
241241
** Render the input string as wiki.
242242
*/
243243
static int wikiCmd(
244244
Th_Interp *interp,
@@ -259,11 +259,11 @@
259259
}
260260
return TH_OK;
261261
}
262262
263263
/*
264
-** TH command: htmlize STRING
264
+** TH1 command: htmlize STRING
265265
**
266266
** Escape all characters of STRING which have special meaning in HTML.
267267
** Return a new string result.
268268
*/
269269
static int htmlizeCmd(
@@ -282,11 +282,11 @@
282282
free(zOut);
283283
return TH_OK;
284284
}
285285
286286
/*
287
-** TH command: date
287
+** TH1 command: date
288288
**
289289
** Return a string which is the current time and date. If the
290290
** -local option is used, the date appears using localtime instead
291291
** of UTC.
292292
*/
@@ -307,11 +307,11 @@
307307
free(zOut);
308308
return TH_OK;
309309
}
310310
311311
/*
312
-** TH command: hascap STRING...
312
+** TH1 command: hascap STRING...
313313
**
314314
** Return true if the user has all of the capabilities listed in STRING.
315315
*/
316316
static int hascapCmd(
317317
Th_Interp *interp,
@@ -333,11 +333,11 @@
333333
Th_SetResultInt(interp, rc);
334334
return TH_OK;
335335
}
336336
337337
/*
338
-** TH command: hasfeature STRING
338
+** TH1 command: hasfeature STRING
339339
**
340340
** Return true if the fossil binary has the given compile-time feature
341341
** enabled. The set of features includes:
342342
**
343343
** "ssl" = FOSSIL_ENABLE_SSL
@@ -411,11 +411,11 @@
411411
return TH_OK;
412412
}
413413
414414
415415
/*
416
-** TH command: tclReady
416
+** TH1 command: tclReady
417417
**
418418
** Return true if the fossil binary has the Tcl integration feature
419419
** enabled and it is currently available for use by TH1 scripts.
420420
**
421421
*/
@@ -442,11 +442,11 @@
442442
return TH_OK;
443443
}
444444
445445
446446
/*
447
-** TH command: anycap STRING
447
+** TH1 command: anycap STRING
448448
**
449449
** Return true if the user has any one of the capabilities listed in STRING.
450450
*/
451451
static int anycapCmd(
452452
Th_Interp *interp,
@@ -877,11 +877,11 @@
877877
re_free(pRe);
878878
return rc;
879879
}
880880
881881
/*
882
-** TH command: http ?-asynchronous? ?--? url ?payload?
882
+** TH1 command: http ?-asynchronous? ?--? url ?payload?
883883
**
884884
** Perform an HTTP or HTTPS request for the specified URL. If a
885885
** payload is present, it will be interpreted as text/plain and
886886
** the POST method will be used; otherwise, the GET method will
887887
** be used. Upon success, if the -asynchronous option is used, an
888888
--- src/th_main.c
+++ src/th_main.c
@@ -28,11 +28,11 @@
28 ** interpreter creation and initialization process.
29 */
30 #define TH_INIT_NONE ((u32)0x00000000) /* No flags. */
31 #define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */
32 #define TH_INIT_FORCE_TCL ((u32)0x00000002) /* Force Tcl to be enabled? */
33 #define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH commands re-added? */
34 #define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */
35 #define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */
36 #define TH_INIT_HOOK (TH_INIT_NEED_CONFIG | TH_INIT_FORCE_SETUP)
37 #endif
38
@@ -111,11 +111,11 @@
111 fossil_print("\n------------------- END TRACE LOG -------------------\n");
112 }
113 }
114
115 /*
116 ** TH command: httpize STRING
117 **
118 ** Escape all characters of STRING which have special meaning in URI
119 ** components. Return a new string result.
120 */
121 static int httpizeCmd(
@@ -139,11 +139,11 @@
139 ** True if output is enabled. False if disabled.
140 */
141 static int enableOutput = 1;
142
143 /*
144 ** TH command: enable_output BOOLEAN
145 **
146 ** Enable or disable the puts and hputs commands.
147 */
148 static int enableOutputCmd(
149 Th_Interp *interp,
@@ -214,12 +214,12 @@
214 sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
215 enableOutput = savedEnable;
216 }
217
218 /*
219 ** TH command: puts STRING
220 ** TH command: html STRING
221 **
222 ** Output STRING escaped for HTML (html) or unchanged (puts).
223 */
224 static int putsCmd(
225 Th_Interp *interp,
@@ -234,11 +234,11 @@
234 sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
235 return TH_OK;
236 }
237
238 /*
239 ** TH command: wiki STRING
240 **
241 ** Render the input string as wiki.
242 */
243 static int wikiCmd(
244 Th_Interp *interp,
@@ -259,11 +259,11 @@
259 }
260 return TH_OK;
261 }
262
263 /*
264 ** TH command: htmlize STRING
265 **
266 ** Escape all characters of STRING which have special meaning in HTML.
267 ** Return a new string result.
268 */
269 static int htmlizeCmd(
@@ -282,11 +282,11 @@
282 free(zOut);
283 return TH_OK;
284 }
285
286 /*
287 ** TH command: date
288 **
289 ** Return a string which is the current time and date. If the
290 ** -local option is used, the date appears using localtime instead
291 ** of UTC.
292 */
@@ -307,11 +307,11 @@
307 free(zOut);
308 return TH_OK;
309 }
310
311 /*
312 ** TH command: hascap STRING...
313 **
314 ** Return true if the user has all of the capabilities listed in STRING.
315 */
316 static int hascapCmd(
317 Th_Interp *interp,
@@ -333,11 +333,11 @@
333 Th_SetResultInt(interp, rc);
334 return TH_OK;
335 }
336
337 /*
338 ** TH command: hasfeature STRING
339 **
340 ** Return true if the fossil binary has the given compile-time feature
341 ** enabled. The set of features includes:
342 **
343 ** "ssl" = FOSSIL_ENABLE_SSL
@@ -411,11 +411,11 @@
411 return TH_OK;
412 }
413
414
415 /*
416 ** TH command: tclReady
417 **
418 ** Return true if the fossil binary has the Tcl integration feature
419 ** enabled and it is currently available for use by TH1 scripts.
420 **
421 */
@@ -442,11 +442,11 @@
442 return TH_OK;
443 }
444
445
446 /*
447 ** TH command: anycap STRING
448 **
449 ** Return true if the user has any one of the capabilities listed in STRING.
450 */
451 static int anycapCmd(
452 Th_Interp *interp,
@@ -877,11 +877,11 @@
877 re_free(pRe);
878 return rc;
879 }
880
881 /*
882 ** TH command: http ?-asynchronous? ?--? url ?payload?
883 **
884 ** Perform an HTTP or HTTPS request for the specified URL. If a
885 ** payload is present, it will be interpreted as text/plain and
886 ** the POST method will be used; otherwise, the GET method will
887 ** be used. Upon success, if the -asynchronous option is used, an
888
--- src/th_main.c
+++ src/th_main.c
@@ -28,11 +28,11 @@
28 ** interpreter creation and initialization process.
29 */
30 #define TH_INIT_NONE ((u32)0x00000000) /* No flags. */
31 #define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */
32 #define TH_INIT_FORCE_TCL ((u32)0x00000002) /* Force Tcl to be enabled? */
33 #define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH1 commands re-added? */
34 #define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */
35 #define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */
36 #define TH_INIT_HOOK (TH_INIT_NEED_CONFIG | TH_INIT_FORCE_SETUP)
37 #endif
38
@@ -111,11 +111,11 @@
111 fossil_print("\n------------------- END TRACE LOG -------------------\n");
112 }
113 }
114
115 /*
116 ** TH1 command: httpize STRING
117 **
118 ** Escape all characters of STRING which have special meaning in URI
119 ** components. Return a new string result.
120 */
121 static int httpizeCmd(
@@ -139,11 +139,11 @@
139 ** True if output is enabled. False if disabled.
140 */
141 static int enableOutput = 1;
142
143 /*
144 ** TH1 command: enable_output BOOLEAN
145 **
146 ** Enable or disable the puts and hputs commands.
147 */
148 static int enableOutputCmd(
149 Th_Interp *interp,
@@ -214,12 +214,12 @@
214 sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
215 enableOutput = savedEnable;
216 }
217
218 /*
219 ** TH1 command: puts STRING
220 ** TH1 command: html STRING
221 **
222 ** Output STRING escaped for HTML (html) or unchanged (puts).
223 */
224 static int putsCmd(
225 Th_Interp *interp,
@@ -234,11 +234,11 @@
234 sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
235 return TH_OK;
236 }
237
238 /*
239 ** TH1 command: wiki STRING
240 **
241 ** Render the input string as wiki.
242 */
243 static int wikiCmd(
244 Th_Interp *interp,
@@ -259,11 +259,11 @@
259 }
260 return TH_OK;
261 }
262
263 /*
264 ** TH1 command: htmlize STRING
265 **
266 ** Escape all characters of STRING which have special meaning in HTML.
267 ** Return a new string result.
268 */
269 static int htmlizeCmd(
@@ -282,11 +282,11 @@
282 free(zOut);
283 return TH_OK;
284 }
285
286 /*
287 ** TH1 command: date
288 **
289 ** Return a string which is the current time and date. If the
290 ** -local option is used, the date appears using localtime instead
291 ** of UTC.
292 */
@@ -307,11 +307,11 @@
307 free(zOut);
308 return TH_OK;
309 }
310
311 /*
312 ** TH1 command: hascap STRING...
313 **
314 ** Return true if the user has all of the capabilities listed in STRING.
315 */
316 static int hascapCmd(
317 Th_Interp *interp,
@@ -333,11 +333,11 @@
333 Th_SetResultInt(interp, rc);
334 return TH_OK;
335 }
336
337 /*
338 ** TH1 command: hasfeature STRING
339 **
340 ** Return true if the fossil binary has the given compile-time feature
341 ** enabled. The set of features includes:
342 **
343 ** "ssl" = FOSSIL_ENABLE_SSL
@@ -411,11 +411,11 @@
411 return TH_OK;
412 }
413
414
415 /*
416 ** TH1 command: tclReady
417 **
418 ** Return true if the fossil binary has the Tcl integration feature
419 ** enabled and it is currently available for use by TH1 scripts.
420 **
421 */
@@ -442,11 +442,11 @@
442 return TH_OK;
443 }
444
445
446 /*
447 ** TH1 command: anycap STRING
448 **
449 ** Return true if the user has any one of the capabilities listed in STRING.
450 */
451 static int anycapCmd(
452 Th_Interp *interp,
@@ -877,11 +877,11 @@
877 re_free(pRe);
878 return rc;
879 }
880
881 /*
882 ** TH1 command: http ?-asynchronous? ?--? url ?payload?
883 **
884 ** Perform an HTTP or HTTPS request for the specified URL. If a
885 ** payload is present, it will be interpreted as text/plain and
886 ** the POST method will be used; otherwise, the GET method will
887 ** be used. Upon success, if the -asynchronous option is used, an
888
+13 -13
--- src/th_main.c
+++ src/th_main.c
@@ -28,11 +28,11 @@
2828
** interpreter creation and initialization process.
2929
*/
3030
#define TH_INIT_NONE ((u32)0x00000000) /* No flags. */
3131
#define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */
3232
#define TH_INIT_FORCE_TCL ((u32)0x00000002) /* Force Tcl to be enabled? */
33
-#define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH commands re-added? */
33
+#define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH1 commands re-added? */
3434
#define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */
3535
#define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */
3636
#define TH_INIT_HOOK (TH_INIT_NEED_CONFIG | TH_INIT_FORCE_SETUP)
3737
#endif
3838
@@ -111,11 +111,11 @@
111111
fossil_print("\n------------------- END TRACE LOG -------------------\n");
112112
}
113113
}
114114
115115
/*
116
-** TH command: httpize STRING
116
+** TH1 command: httpize STRING
117117
**
118118
** Escape all characters of STRING which have special meaning in URI
119119
** components. Return a new string result.
120120
*/
121121
static int httpizeCmd(
@@ -139,11 +139,11 @@
139139
** True if output is enabled. False if disabled.
140140
*/
141141
static int enableOutput = 1;
142142
143143
/*
144
-** TH command: enable_output BOOLEAN
144
+** TH1 command: enable_output BOOLEAN
145145
**
146146
** Enable or disable the puts and hputs commands.
147147
*/
148148
static int enableOutputCmd(
149149
Th_Interp *interp,
@@ -214,12 +214,12 @@
214214
sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
215215
enableOutput = savedEnable;
216216
}
217217
218218
/*
219
-** TH command: puts STRING
220
-** TH command: html STRING
219
+** TH1 command: puts STRING
220
+** TH1 command: html STRING
221221
**
222222
** Output STRING escaped for HTML (html) or unchanged (puts).
223223
*/
224224
static int putsCmd(
225225
Th_Interp *interp,
@@ -234,11 +234,11 @@
234234
sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
235235
return TH_OK;
236236
}
237237
238238
/*
239
-** TH command: wiki STRING
239
+** TH1 command: wiki STRING
240240
**
241241
** Render the input string as wiki.
242242
*/
243243
static int wikiCmd(
244244
Th_Interp *interp,
@@ -259,11 +259,11 @@
259259
}
260260
return TH_OK;
261261
}
262262
263263
/*
264
-** TH command: htmlize STRING
264
+** TH1 command: htmlize STRING
265265
**
266266
** Escape all characters of STRING which have special meaning in HTML.
267267
** Return a new string result.
268268
*/
269269
static int htmlizeCmd(
@@ -282,11 +282,11 @@
282282
free(zOut);
283283
return TH_OK;
284284
}
285285
286286
/*
287
-** TH command: date
287
+** TH1 command: date
288288
**
289289
** Return a string which is the current time and date. If the
290290
** -local option is used, the date appears using localtime instead
291291
** of UTC.
292292
*/
@@ -307,11 +307,11 @@
307307
free(zOut);
308308
return TH_OK;
309309
}
310310
311311
/*
312
-** TH command: hascap STRING...
312
+** TH1 command: hascap STRING...
313313
**
314314
** Return true if the user has all of the capabilities listed in STRING.
315315
*/
316316
static int hascapCmd(
317317
Th_Interp *interp,
@@ -333,11 +333,11 @@
333333
Th_SetResultInt(interp, rc);
334334
return TH_OK;
335335
}
336336
337337
/*
338
-** TH command: hasfeature STRING
338
+** TH1 command: hasfeature STRING
339339
**
340340
** Return true if the fossil binary has the given compile-time feature
341341
** enabled. The set of features includes:
342342
**
343343
** "ssl" = FOSSIL_ENABLE_SSL
@@ -411,11 +411,11 @@
411411
return TH_OK;
412412
}
413413
414414
415415
/*
416
-** TH command: tclReady
416
+** TH1 command: tclReady
417417
**
418418
** Return true if the fossil binary has the Tcl integration feature
419419
** enabled and it is currently available for use by TH1 scripts.
420420
**
421421
*/
@@ -442,11 +442,11 @@
442442
return TH_OK;
443443
}
444444
445445
446446
/*
447
-** TH command: anycap STRING
447
+** TH1 command: anycap STRING
448448
**
449449
** Return true if the user has any one of the capabilities listed in STRING.
450450
*/
451451
static int anycapCmd(
452452
Th_Interp *interp,
@@ -877,11 +877,11 @@
877877
re_free(pRe);
878878
return rc;
879879
}
880880
881881
/*
882
-** TH command: http ?-asynchronous? ?--? url ?payload?
882
+** TH1 command: http ?-asynchronous? ?--? url ?payload?
883883
**
884884
** Perform an HTTP or HTTPS request for the specified URL. If a
885885
** payload is present, it will be interpreted as text/plain and
886886
** the POST method will be used; otherwise, the GET method will
887887
** be used. Upon success, if the -asynchronous option is used, an
888888
--- src/th_main.c
+++ src/th_main.c
@@ -28,11 +28,11 @@
28 ** interpreter creation and initialization process.
29 */
30 #define TH_INIT_NONE ((u32)0x00000000) /* No flags. */
31 #define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */
32 #define TH_INIT_FORCE_TCL ((u32)0x00000002) /* Force Tcl to be enabled? */
33 #define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH commands re-added? */
34 #define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */
35 #define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */
36 #define TH_INIT_HOOK (TH_INIT_NEED_CONFIG | TH_INIT_FORCE_SETUP)
37 #endif
38
@@ -111,11 +111,11 @@
111 fossil_print("\n------------------- END TRACE LOG -------------------\n");
112 }
113 }
114
115 /*
116 ** TH command: httpize STRING
117 **
118 ** Escape all characters of STRING which have special meaning in URI
119 ** components. Return a new string result.
120 */
121 static int httpizeCmd(
@@ -139,11 +139,11 @@
139 ** True if output is enabled. False if disabled.
140 */
141 static int enableOutput = 1;
142
143 /*
144 ** TH command: enable_output BOOLEAN
145 **
146 ** Enable or disable the puts and hputs commands.
147 */
148 static int enableOutputCmd(
149 Th_Interp *interp,
@@ -214,12 +214,12 @@
214 sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
215 enableOutput = savedEnable;
216 }
217
218 /*
219 ** TH command: puts STRING
220 ** TH command: html STRING
221 **
222 ** Output STRING escaped for HTML (html) or unchanged (puts).
223 */
224 static int putsCmd(
225 Th_Interp *interp,
@@ -234,11 +234,11 @@
234 sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
235 return TH_OK;
236 }
237
238 /*
239 ** TH command: wiki STRING
240 **
241 ** Render the input string as wiki.
242 */
243 static int wikiCmd(
244 Th_Interp *interp,
@@ -259,11 +259,11 @@
259 }
260 return TH_OK;
261 }
262
263 /*
264 ** TH command: htmlize STRING
265 **
266 ** Escape all characters of STRING which have special meaning in HTML.
267 ** Return a new string result.
268 */
269 static int htmlizeCmd(
@@ -282,11 +282,11 @@
282 free(zOut);
283 return TH_OK;
284 }
285
286 /*
287 ** TH command: date
288 **
289 ** Return a string which is the current time and date. If the
290 ** -local option is used, the date appears using localtime instead
291 ** of UTC.
292 */
@@ -307,11 +307,11 @@
307 free(zOut);
308 return TH_OK;
309 }
310
311 /*
312 ** TH command: hascap STRING...
313 **
314 ** Return true if the user has all of the capabilities listed in STRING.
315 */
316 static int hascapCmd(
317 Th_Interp *interp,
@@ -333,11 +333,11 @@
333 Th_SetResultInt(interp, rc);
334 return TH_OK;
335 }
336
337 /*
338 ** TH command: hasfeature STRING
339 **
340 ** Return true if the fossil binary has the given compile-time feature
341 ** enabled. The set of features includes:
342 **
343 ** "ssl" = FOSSIL_ENABLE_SSL
@@ -411,11 +411,11 @@
411 return TH_OK;
412 }
413
414
415 /*
416 ** TH command: tclReady
417 **
418 ** Return true if the fossil binary has the Tcl integration feature
419 ** enabled and it is currently available for use by TH1 scripts.
420 **
421 */
@@ -442,11 +442,11 @@
442 return TH_OK;
443 }
444
445
446 /*
447 ** TH command: anycap STRING
448 **
449 ** Return true if the user has any one of the capabilities listed in STRING.
450 */
451 static int anycapCmd(
452 Th_Interp *interp,
@@ -877,11 +877,11 @@
877 re_free(pRe);
878 return rc;
879 }
880
881 /*
882 ** TH command: http ?-asynchronous? ?--? url ?payload?
883 **
884 ** Perform an HTTP or HTTPS request for the specified URL. If a
885 ** payload is present, it will be interpreted as text/plain and
886 ** the POST method will be used; otherwise, the GET method will
887 ** be used. Upon success, if the -asynchronous option is used, an
888
--- src/th_main.c
+++ src/th_main.c
@@ -28,11 +28,11 @@
28 ** interpreter creation and initialization process.
29 */
30 #define TH_INIT_NONE ((u32)0x00000000) /* No flags. */
31 #define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */
32 #define TH_INIT_FORCE_TCL ((u32)0x00000002) /* Force Tcl to be enabled? */
33 #define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH1 commands re-added? */
34 #define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */
35 #define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */
36 #define TH_INIT_HOOK (TH_INIT_NEED_CONFIG | TH_INIT_FORCE_SETUP)
37 #endif
38
@@ -111,11 +111,11 @@
111 fossil_print("\n------------------- END TRACE LOG -------------------\n");
112 }
113 }
114
115 /*
116 ** TH1 command: httpize STRING
117 **
118 ** Escape all characters of STRING which have special meaning in URI
119 ** components. Return a new string result.
120 */
121 static int httpizeCmd(
@@ -139,11 +139,11 @@
139 ** True if output is enabled. False if disabled.
140 */
141 static int enableOutput = 1;
142
143 /*
144 ** TH1 command: enable_output BOOLEAN
145 **
146 ** Enable or disable the puts and hputs commands.
147 */
148 static int enableOutputCmd(
149 Th_Interp *interp,
@@ -214,12 +214,12 @@
214 sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
215 enableOutput = savedEnable;
216 }
217
218 /*
219 ** TH1 command: puts STRING
220 ** TH1 command: html STRING
221 **
222 ** Output STRING escaped for HTML (html) or unchanged (puts).
223 */
224 static int putsCmd(
225 Th_Interp *interp,
@@ -234,11 +234,11 @@
234 sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
235 return TH_OK;
236 }
237
238 /*
239 ** TH1 command: wiki STRING
240 **
241 ** Render the input string as wiki.
242 */
243 static int wikiCmd(
244 Th_Interp *interp,
@@ -259,11 +259,11 @@
259 }
260 return TH_OK;
261 }
262
263 /*
264 ** TH1 command: htmlize STRING
265 **
266 ** Escape all characters of STRING which have special meaning in HTML.
267 ** Return a new string result.
268 */
269 static int htmlizeCmd(
@@ -282,11 +282,11 @@
282 free(zOut);
283 return TH_OK;
284 }
285
286 /*
287 ** TH1 command: date
288 **
289 ** Return a string which is the current time and date. If the
290 ** -local option is used, the date appears using localtime instead
291 ** of UTC.
292 */
@@ -307,11 +307,11 @@
307 free(zOut);
308 return TH_OK;
309 }
310
311 /*
312 ** TH1 command: hascap STRING...
313 **
314 ** Return true if the user has all of the capabilities listed in STRING.
315 */
316 static int hascapCmd(
317 Th_Interp *interp,
@@ -333,11 +333,11 @@
333 Th_SetResultInt(interp, rc);
334 return TH_OK;
335 }
336
337 /*
338 ** TH1 command: hasfeature STRING
339 **
340 ** Return true if the fossil binary has the given compile-time feature
341 ** enabled. The set of features includes:
342 **
343 ** "ssl" = FOSSIL_ENABLE_SSL
@@ -411,11 +411,11 @@
411 return TH_OK;
412 }
413
414
415 /*
416 ** TH1 command: tclReady
417 **
418 ** Return true if the fossil binary has the Tcl integration feature
419 ** enabled and it is currently available for use by TH1 scripts.
420 **
421 */
@@ -442,11 +442,11 @@
442 return TH_OK;
443 }
444
445
446 /*
447 ** TH1 command: anycap STRING
448 **
449 ** Return true if the user has any one of the capabilities listed in STRING.
450 */
451 static int anycapCmd(
452 Th_Interp *interp,
@@ -877,11 +877,11 @@
877 re_free(pRe);
878 return rc;
879 }
880
881 /*
882 ** TH1 command: http ?-asynchronous? ?--? url ?payload?
883 **
884 ** Perform an HTTP or HTTPS request for the specified URL. If a
885 ** payload is present, it will be interpreted as text/plain and
886 ** the POST method will be used; otherwise, the GET method will
887 ** be used. Upon success, if the -asynchronous option is used, an
888
+1 -1
--- src/tkt.c
+++ src/tkt.c
@@ -474,11 +474,11 @@
474474
475475
style_footer();
476476
}
477477
478478
/*
479
-** TH command: append_field FIELD STRING
479
+** TH1 command: append_field FIELD STRING
480480
**
481481
** FIELD is the name of a database column to which we might want
482482
** to append text. STRING is the text to be appended to that
483483
** column. The append does not actually occur until the
484484
** submit_ticket command is run.
485485
--- src/tkt.c
+++ src/tkt.c
@@ -474,11 +474,11 @@
474
475 style_footer();
476 }
477
478 /*
479 ** TH command: append_field FIELD STRING
480 **
481 ** FIELD is the name of a database column to which we might want
482 ** to append text. STRING is the text to be appended to that
483 ** column. The append does not actually occur until the
484 ** submit_ticket command is run.
485
--- src/tkt.c
+++ src/tkt.c
@@ -474,11 +474,11 @@
474
475 style_footer();
476 }
477
478 /*
479 ** TH1 command: append_field FIELD STRING
480 **
481 ** FIELD is the name of a database column to which we might want
482 ** to append text. STRING is the text to be appended to that
483 ** column. The append does not actually occur until the
484 ** submit_ticket command is run.
485

Keyboard Shortcuts

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