Fossil SCM
Make TH1 command comments consistent.
Commit
a17919af857c35b5ddb2d3e3dffdaf4afe112b9b
Parent
2c9d6b5e0f7b1a2…
2 files changed
+13
-13
+1
-1
+13
-13
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -28,11 +28,11 @@ | ||
| 28 | 28 | ** interpreter creation and initialization process. |
| 29 | 29 | */ |
| 30 | 30 | #define TH_INIT_NONE ((u32)0x00000000) /* No flags. */ |
| 31 | 31 | #define TH_INIT_NEED_CONFIG ((u32)0x00000001) /* Open configuration first? */ |
| 32 | 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? */ | |
| 33 | +#define TH_INIT_FORCE_RESET ((u32)0x00000004) /* Force TH1 commands re-added? */ | |
| 34 | 34 | #define TH_INIT_FORCE_SETUP ((u32)0x00000008) /* Force eval of setup script? */ |
| 35 | 35 | #define TH_INIT_DEFAULT (TH_INIT_NONE) /* Default flags. */ |
| 36 | 36 | #endif |
| 37 | 37 | |
| 38 | 38 | /* |
| @@ -99,11 +99,11 @@ | ||
| 99 | 99 | fossil_print("\n------------------- END TRACE LOG -------------------\n"); |
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /* |
| 104 | -** TH command: httpize STRING | |
| 104 | +** TH1 command: httpize STRING | |
| 105 | 105 | ** |
| 106 | 106 | ** Escape all characters of STRING which have special meaning in URI |
| 107 | 107 | ** components. Return a new string result. |
| 108 | 108 | */ |
| 109 | 109 | static int httpizeCmd( |
| @@ -127,11 +127,11 @@ | ||
| 127 | 127 | ** True if output is enabled. False if disabled. |
| 128 | 128 | */ |
| 129 | 129 | static int enableOutput = 1; |
| 130 | 130 | |
| 131 | 131 | /* |
| 132 | -** TH command: enable_output BOOLEAN | |
| 132 | +** TH1 command: enable_output BOOLEAN | |
| 133 | 133 | ** |
| 134 | 134 | ** Enable or disable the puts and hputs commands. |
| 135 | 135 | */ |
| 136 | 136 | static int enableOutputCmd( |
| 137 | 137 | Th_Interp *interp, |
| @@ -202,12 +202,12 @@ | ||
| 202 | 202 | sendText(forceCgi || g.cgiOutput ? "</p>" : "\n", -1, 0); |
| 203 | 203 | enableOutput = savedEnable; |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /* |
| 207 | -** TH command: puts STRING | |
| 208 | -** TH command: html STRING | |
| 207 | +** TH1 command: puts STRING | |
| 208 | +** TH1 command: html STRING | |
| 209 | 209 | ** |
| 210 | 210 | ** Output STRING escaped for HTML (html) or unchanged (puts). |
| 211 | 211 | */ |
| 212 | 212 | static int putsCmd( |
| 213 | 213 | Th_Interp *interp, |
| @@ -222,11 +222,11 @@ | ||
| 222 | 222 | sendText((char*)argv[1], argl[1], *(unsigned int*)pConvert); |
| 223 | 223 | return TH_OK; |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /* |
| 227 | -** TH command: wiki STRING | |
| 227 | +** TH1 command: wiki STRING | |
| 228 | 228 | ** |
| 229 | 229 | ** Render the input string as wiki. |
| 230 | 230 | */ |
| 231 | 231 | static int wikiCmd( |
| 232 | 232 | Th_Interp *interp, |
| @@ -247,11 +247,11 @@ | ||
| 247 | 247 | } |
| 248 | 248 | return TH_OK; |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | /* |
| 252 | -** TH command: htmlize STRING | |
| 252 | +** TH1 command: htmlize STRING | |
| 253 | 253 | ** |
| 254 | 254 | ** Escape all characters of STRING which have special meaning in HTML. |
| 255 | 255 | ** Return a new string result. |
| 256 | 256 | */ |
| 257 | 257 | static int htmlizeCmd( |
| @@ -270,11 +270,11 @@ | ||
| 270 | 270 | free(zOut); |
| 271 | 271 | return TH_OK; |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | /* |
| 275 | -** TH command: date | |
| 275 | +** TH1 command: date | |
| 276 | 276 | ** |
| 277 | 277 | ** Return a string which is the current time and date. If the |
| 278 | 278 | ** -local option is used, the date appears using localtime instead |
| 279 | 279 | ** of UTC. |
| 280 | 280 | */ |
| @@ -295,11 +295,11 @@ | ||
| 295 | 295 | free(zOut); |
| 296 | 296 | return TH_OK; |
| 297 | 297 | } |
| 298 | 298 | |
| 299 | 299 | /* |
| 300 | -** TH command: hascap STRING... | |
| 300 | +** TH1 command: hascap STRING... | |
| 301 | 301 | ** |
| 302 | 302 | ** Return true if the user has all of the capabilities listed in STRING. |
| 303 | 303 | */ |
| 304 | 304 | static int hascapCmd( |
| 305 | 305 | Th_Interp *interp, |
| @@ -321,11 +321,11 @@ | ||
| 321 | 321 | Th_SetResultInt(interp, rc); |
| 322 | 322 | return TH_OK; |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /* |
| 326 | -** TH command: hasfeature STRING | |
| 326 | +** TH1 command: hasfeature STRING | |
| 327 | 327 | ** |
| 328 | 328 | ** Return true if the fossil binary has the given compile-time feature |
| 329 | 329 | ** enabled. The set of features includes: |
| 330 | 330 | ** |
| 331 | 331 | ** "ssl" = FOSSIL_ENABLE_SSL |
| @@ -393,11 +393,11 @@ | ||
| 393 | 393 | return TH_OK; |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | |
| 397 | 397 | /* |
| 398 | -** TH command: tclReady | |
| 398 | +** TH1 command: tclReady | |
| 399 | 399 | ** |
| 400 | 400 | ** Return true if the fossil binary has the Tcl integration feature |
| 401 | 401 | ** enabled and it is currently available for use by TH1 scripts. |
| 402 | 402 | ** |
| 403 | 403 | */ |
| @@ -424,11 +424,11 @@ | ||
| 424 | 424 | return TH_OK; |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | 427 | |
| 428 | 428 | /* |
| 429 | -** TH command: anycap STRING | |
| 429 | +** TH1 command: anycap STRING | |
| 430 | 430 | ** |
| 431 | 431 | ** Return true if the user has any one of the capabilities listed in STRING. |
| 432 | 432 | */ |
| 433 | 433 | static int anycapCmd( |
| 434 | 434 | Th_Interp *interp, |
| @@ -859,11 +859,11 @@ | ||
| 859 | 859 | re_free(pRe); |
| 860 | 860 | return rc; |
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | /* |
| 864 | -** TH command: http ?-asynchronous? ?--? url ?payload? | |
| 864 | +** TH1 command: http ?-asynchronous? ?--? url ?payload? | |
| 865 | 865 | ** |
| 866 | 866 | ** Perform an HTTP or HTTPS request for the specified URL. If a |
| 867 | 867 | ** payload is present, it will be interpreted as text/plain and |
| 868 | 868 | ** the POST method will be used; otherwise, the GET method will |
| 869 | 869 | ** be used. Upon success, if the -asynchronous option is used, an |
| 870 | 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 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 @@ | ||
| 474 | 474 | |
| 475 | 475 | style_footer(); |
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | /* |
| 479 | -** TH command: append_field FIELD STRING | |
| 479 | +** TH1 command: append_field FIELD STRING | |
| 480 | 480 | ** |
| 481 | 481 | ** FIELD is the name of a database column to which we might want |
| 482 | 482 | ** to append text. STRING is the text to be appended to that |
| 483 | 483 | ** column. The append does not actually occur until the |
| 484 | 484 | ** submit_ticket command is run. |
| 485 | 485 |
| --- 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 |