Fossil SCM

Make TH1 command comments consistent.

mistachkin 2014-06-10 18:56 trunk
Commit a17919af857c35b5ddb2d3e3dffdaf4afe112b9b
2 files changed +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
#endif
3737
3838
/*
@@ -99,11 +99,11 @@
9999
fossil_print("\n------------------- END TRACE LOG -------------------\n");
100100
}
101101
}
102102
103103
/*
104
-** TH command: httpize STRING
104
+** TH1 command: httpize STRING
105105
**
106106
** Escape all characters of STRING which have special meaning in URI
107107
** components. Return a new string result.
108108
*/
109109
static int httpizeCmd(
@@ -127,11 +127,11 @@
127127
** True if output is enabled. False if disabled.
128128
*/
129129
static int enableOutput = 1;
130130
131131
/*
132
-** TH command: enable_output BOOLEAN
132
+** TH1 command: enable_output BOOLEAN
133133
**
134134
** Enable or disable the puts and hputs commands.
135135
*/
136136
static int enableOutputCmd(
137137
Th_Interp *interp,
@@ -202,12 +202,12 @@
202202
sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
203203
enableOutput = savedEnable;
204204
}
205205
206206
/*
207
-** TH command: puts STRING
208
-** TH command: html STRING
207
+** TH1 command: puts STRING
208
+** TH1 command: html STRING
209209
**
210210
** Output STRING escaped for HTML (html) or unchanged (puts).
211211
*/
212212
static int putsCmd(
213213
Th_Interp *interp,
@@ -222,11 +222,11 @@
222222
sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
223223
return TH_OK;
224224
}
225225
226226
/*
227
-** TH command: wiki STRING
227
+** TH1 command: wiki STRING
228228
**
229229
** Render the input string as wiki.
230230
*/
231231
static int wikiCmd(
232232
Th_Interp *interp,
@@ -247,11 +247,11 @@
247247
}
248248
return TH_OK;
249249
}
250250
251251
/*
252
-** TH command: htmlize STRING
252
+** TH1 command: htmlize STRING
253253
**
254254
** Escape all characters of STRING which have special meaning in HTML.
255255
** Return a new string result.
256256
*/
257257
static int htmlizeCmd(
@@ -270,11 +270,11 @@
270270
free(zOut);
271271
return TH_OK;
272272
}
273273
274274
/*
275
-** TH command: date
275
+** TH1 command: date
276276
**
277277
** Return a string which is the current time and date. If the
278278
** -local option is used, the date appears using localtime instead
279279
** of UTC.
280280
*/
@@ -295,11 +295,11 @@
295295
free(zOut);
296296
return TH_OK;
297297
}
298298
299299
/*
300
-** TH command: hascap STRING...
300
+** TH1 command: hascap STRING...
301301
**
302302
** Return true if the user has all of the capabilities listed in STRING.
303303
*/
304304
static int hascapCmd(
305305
Th_Interp *interp,
@@ -321,11 +321,11 @@
321321
Th_SetResultInt(interp, rc);
322322
return TH_OK;
323323
}
324324
325325
/*
326
-** TH command: hasfeature STRING
326
+** TH1 command: hasfeature STRING
327327
**
328328
** Return true if the fossil binary has the given compile-time feature
329329
** enabled. The set of features includes:
330330
**
331331
** "ssl" = FOSSIL_ENABLE_SSL
@@ -393,11 +393,11 @@
393393
return TH_OK;
394394
}
395395
396396
397397
/*
398
-** TH command: tclReady
398
+** TH1 command: tclReady
399399
**
400400
** Return true if the fossil binary has the Tcl integration feature
401401
** enabled and it is currently available for use by TH1 scripts.
402402
**
403403
*/
@@ -424,11 +424,11 @@
424424
return TH_OK;
425425
}
426426
427427
428428
/*
429
-** TH command: anycap STRING
429
+** TH1 command: anycap STRING
430430
**
431431
** Return true if the user has any one of the capabilities listed in STRING.
432432
*/
433433
static int anycapCmd(
434434
Th_Interp *interp,
@@ -859,11 +859,11 @@
859859
re_free(pRe);
860860
return rc;
861861
}
862862
863863
/*
864
-** TH command: http ?-asynchronous? ?--? url ?payload?
864
+** TH1 command: http ?-asynchronous? ?--? url ?payload?
865865
**
866866
** Perform an HTTP or HTTPS request for the specified URL. If a
867867
** payload is present, it will be interpreted as text/plain and
868868
** the POST method will be used; otherwise, the GET method will
869869
** be used. Upon success, if the -asynchronous option is used, an
870870
--- 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 #endif
37
38 /*
@@ -99,11 +99,11 @@
99 fossil_print("\n------------------- END TRACE LOG -------------------\n");
100 }
101 }
102
103 /*
104 ** TH command: httpize STRING
105 **
106 ** Escape all characters of STRING which have special meaning in URI
107 ** components. Return a new string result.
108 */
109 static int httpizeCmd(
@@ -127,11 +127,11 @@
127 ** True if output is enabled. False if disabled.
128 */
129 static int enableOutput = 1;
130
131 /*
132 ** TH command: enable_output BOOLEAN
133 **
134 ** Enable or disable the puts and hputs commands.
135 */
136 static int enableOutputCmd(
137 Th_Interp *interp,
@@ -202,12 +202,12 @@
202 sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
203 enableOutput = savedEnable;
204 }
205
206 /*
207 ** TH command: puts STRING
208 ** TH command: html STRING
209 **
210 ** Output STRING escaped for HTML (html) or unchanged (puts).
211 */
212 static int putsCmd(
213 Th_Interp *interp,
@@ -222,11 +222,11 @@
222 sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
223 return TH_OK;
224 }
225
226 /*
227 ** TH command: wiki STRING
228 **
229 ** Render the input string as wiki.
230 */
231 static int wikiCmd(
232 Th_Interp *interp,
@@ -247,11 +247,11 @@
247 }
248 return TH_OK;
249 }
250
251 /*
252 ** TH command: htmlize STRING
253 **
254 ** Escape all characters of STRING which have special meaning in HTML.
255 ** Return a new string result.
256 */
257 static int htmlizeCmd(
@@ -270,11 +270,11 @@
270 free(zOut);
271 return TH_OK;
272 }
273
274 /*
275 ** TH command: date
276 **
277 ** Return a string which is the current time and date. If the
278 ** -local option is used, the date appears using localtime instead
279 ** of UTC.
280 */
@@ -295,11 +295,11 @@
295 free(zOut);
296 return TH_OK;
297 }
298
299 /*
300 ** TH command: hascap STRING...
301 **
302 ** Return true if the user has all of the capabilities listed in STRING.
303 */
304 static int hascapCmd(
305 Th_Interp *interp,
@@ -321,11 +321,11 @@
321 Th_SetResultInt(interp, rc);
322 return TH_OK;
323 }
324
325 /*
326 ** TH command: hasfeature STRING
327 **
328 ** Return true if the fossil binary has the given compile-time feature
329 ** enabled. The set of features includes:
330 **
331 ** "ssl" = FOSSIL_ENABLE_SSL
@@ -393,11 +393,11 @@
393 return TH_OK;
394 }
395
396
397 /*
398 ** TH command: tclReady
399 **
400 ** Return true if the fossil binary has the Tcl integration feature
401 ** enabled and it is currently available for use by TH1 scripts.
402 **
403 */
@@ -424,11 +424,11 @@
424 return TH_OK;
425 }
426
427
428 /*
429 ** TH command: anycap STRING
430 **
431 ** Return true if the user has any one of the capabilities listed in STRING.
432 */
433 static int anycapCmd(
434 Th_Interp *interp,
@@ -859,11 +859,11 @@
859 re_free(pRe);
860 return rc;
861 }
862
863 /*
864 ** TH command: http ?-asynchronous? ?--? url ?payload?
865 **
866 ** Perform an HTTP or HTTPS request for the specified URL. If a
867 ** payload is present, it will be interpreted as text/plain and
868 ** the POST method will be used; otherwise, the GET method will
869 ** be used. Upon success, if the -asynchronous option is used, an
870
--- 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 #endif
37
38 /*
@@ -99,11 +99,11 @@
99 fossil_print("\n------------------- END TRACE LOG -------------------\n");
100 }
101 }
102
103 /*
104 ** TH1 command: httpize STRING
105 **
106 ** Escape all characters of STRING which have special meaning in URI
107 ** components. Return a new string result.
108 */
109 static int httpizeCmd(
@@ -127,11 +127,11 @@
127 ** True if output is enabled. False if disabled.
128 */
129 static int enableOutput = 1;
130
131 /*
132 ** TH1 command: enable_output BOOLEAN
133 **
134 ** Enable or disable the puts and hputs commands.
135 */
136 static int enableOutputCmd(
137 Th_Interp *interp,
@@ -202,12 +202,12 @@
202 sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0);
203 enableOutput = savedEnable;
204 }
205
206 /*
207 ** TH1 command: puts STRING
208 ** TH1 command: html STRING
209 **
210 ** Output STRING escaped for HTML (html) or unchanged (puts).
211 */
212 static int putsCmd(
213 Th_Interp *interp,
@@ -222,11 +222,11 @@
222 sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert);
223 return TH_OK;
224 }
225
226 /*
227 ** TH1 command: wiki STRING
228 **
229 ** Render the input string as wiki.
230 */
231 static int wikiCmd(
232 Th_Interp *interp,
@@ -247,11 +247,11 @@
247 }
248 return TH_OK;
249 }
250
251 /*
252 ** TH1 command: htmlize STRING
253 **
254 ** Escape all characters of STRING which have special meaning in HTML.
255 ** Return a new string result.
256 */
257 static int htmlizeCmd(
@@ -270,11 +270,11 @@
270 free(zOut);
271 return TH_OK;
272 }
273
274 /*
275 ** TH1 command: date
276 **
277 ** Return a string which is the current time and date. If the
278 ** -local option is used, the date appears using localtime instead
279 ** of UTC.
280 */
@@ -295,11 +295,11 @@
295 free(zOut);
296 return TH_OK;
297 }
298
299 /*
300 ** TH1 command: hascap STRING...
301 **
302 ** Return true if the user has all of the capabilities listed in STRING.
303 */
304 static int hascapCmd(
305 Th_Interp *interp,
@@ -321,11 +321,11 @@
321 Th_SetResultInt(interp, rc);
322 return TH_OK;
323 }
324
325 /*
326 ** TH1 command: hasfeature STRING
327 **
328 ** Return true if the fossil binary has the given compile-time feature
329 ** enabled. The set of features includes:
330 **
331 ** "ssl" = FOSSIL_ENABLE_SSL
@@ -393,11 +393,11 @@
393 return TH_OK;
394 }
395
396
397 /*
398 ** TH1 command: tclReady
399 **
400 ** Return true if the fossil binary has the Tcl integration feature
401 ** enabled and it is currently available for use by TH1 scripts.
402 **
403 */
@@ -424,11 +424,11 @@
424 return TH_OK;
425 }
426
427
428 /*
429 ** TH1 command: anycap STRING
430 **
431 ** Return true if the user has any one of the capabilities listed in STRING.
432 */
433 static int anycapCmd(
434 Th_Interp *interp,
@@ -859,11 +859,11 @@
859 re_free(pRe);
860 return rc;
861 }
862
863 /*
864 ** TH1 command: http ?-asynchronous? ?--? url ?payload?
865 **
866 ** Perform an HTTP or HTTPS request for the specified URL. If a
867 ** payload is present, it will be interpreted as text/plain and
868 ** the POST method will be used; otherwise, the GET method will
869 ** be used. Upon success, if the -asynchronous option is used, an
870
+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