Fossil SCM

Match the COMMAND and WEBPAGE names with _cmd and _page functions; [https://fossil-scm.org/forum/forumpost/045bffda68|forumpost/045bffda68]

ashepilko 2020-04-05 23:45 trunk
Commit 06afb7022f6f4553d118aa121c69de556f81a0c2e07dca5d1b9b9770fea13cd4
+1 -1
--- src/add.c
+++ src/add.c
@@ -150,11 +150,11 @@
150150
**
151151
** Usage: %fossil test-reserved-names [-omitrepo]
152152
**
153153
** Show all reserved filenames for the current check-out.
154154
*/
155
-void test_reserved_names(void){
155
+void test_reserved_names_cmd(void){
156156
int i;
157157
const char *z;
158158
int omitRepo = find_option("omitrepo",0,0)!=0;
159159
160160
/* We should be done with options.. */
161161
--- src/add.c
+++ src/add.c
@@ -150,11 +150,11 @@
150 **
151 ** Usage: %fossil test-reserved-names [-omitrepo]
152 **
153 ** Show all reserved filenames for the current check-out.
154 */
155 void test_reserved_names(void){
156 int i;
157 const char *z;
158 int omitRepo = find_option("omitrepo",0,0)!=0;
159
160 /* We should be done with options.. */
161
--- src/add.c
+++ src/add.c
@@ -150,11 +150,11 @@
150 **
151 ** Usage: %fossil test-reserved-names [-omitrepo]
152 **
153 ** Show all reserved filenames for the current check-out.
154 */
155 void test_reserved_names_cmd(void){
156 int i;
157 const char *z;
158 int omitRepo = find_option("omitrepo",0,0)!=0;
159
160 /* We should be done with options.. */
161
+10 -10
--- src/alerts.c
+++ src/alerts.c
@@ -19,11 +19,11 @@
1919
**
2020
** Are you looking for the code that reads and writes the internet
2121
** email protocol? That is not here. See the "smtp.c" file instead.
2222
** Yes, the choice of source code filenames is not the greatest, but
2323
** it is not so bad that changing them seems justified.
24
-*/
24
+*/
2525
#include "config.h"
2626
#include "alerts.h"
2727
#include <assert.h>
2828
#include <time.h>
2929
@@ -199,11 +199,11 @@
199199
** WEBPAGE: setup_notification
200200
**
201201
** Administrative page for configuring and controlling email notification.
202202
** Normally accessible via the /Admin/Notification menu.
203203
*/
204
-void setup_notification(void){
204
+void setup_notification_page(void){
205205
static const char *const azSendMethods[] = {
206206
"off", "Disabled",
207207
"pipe", "Pipe to a command",
208208
"db", "Store in a database",
209209
"dir", "Store in a directory",
@@ -746,11 +746,11 @@
746746
**
747747
** Return the mailbox hash name corresponding to each human-readable
748748
** name on the command line. This is a test interface for the
749749
** alert_mailbox_name() function.
750750
*/
751
-void alert_test_mailbox_hashname(void){
751
+void test_mailbox_hashname_cmd(void){
752752
int i;
753753
for(i=2; i<g.argc; i++){
754754
fossil_print("%30s: %s\n", g.argv[i], alert_mailbox_name(g.argv[i]));
755755
}
756756
}
@@ -1021,11 +1021,11 @@
10211021
** --stdout
10221022
** --subject|-S SUBJECT
10231023
**
10241024
** unsubscribe EMAIL Remove a single subscriber with the given EMAIL.
10251025
*/
1026
-void alert_cmd(void){
1026
+void alerts_cmd(void){
10271027
const char *zCmd;
10281028
int nCmd;
10291029
db_find_and_open_repository(0, 0);
10301030
alert_schema(0);
10311031
zCmd = g.argc>=3 ? g.argv[2] : "x";
@@ -1559,17 +1559,17 @@
15591559
** Edit email alert and notification settings.
15601560
**
15611561
** The subscriber is identified in either of two ways:
15621562
**
15631563
** (1) The name= query parameter contains the subscriberCode.
1564
-**
1564
+**
15651565
** (2) The user is logged into an account other than "nobody" or
15661566
** "anonymous". In that case the notification settings
15671567
** associated with that account can be edited without needing
15681568
** to know the subscriber code.
15691569
*/
1570
-void alert_page(void){
1570
+void alerts_page(void){
15711571
const char *zName = P("name");
15721572
Stmt q;
15731573
int sa, sc, sf, st, sw, sx;
15741574
int sdigest = 0, sdonotcall = 0, sverified = 0;
15751575
int isLogin; /* Logged in as an individual */
@@ -1976,11 +1976,11 @@
19761976
** shows a list of subscriber email addresses.
19771977
** Clicking on an email takes one to the /alerts page
19781978
** for that email where the delivery settings can be
19791979
** modified.
19801980
*/
1981
-void subscriber_list_page(void){
1981
+void subscribers_page(void){
19821982
Blob sql;
19831983
Stmt q;
19841984
sqlite3_int64 iNow;
19851985
int nTotal;
19861986
int nPending;
@@ -2299,11 +2299,11 @@
22992299
blob_appendf(pOut, "\n-- \nTo unsubscribe: %s/unsubscribe\n",
23002300
db_get("email-url","http://localhost:8080"));
23012301
}
23022302
23032303
/*
2304
-** COMMAND: test-alert
2304
+** COMMAND: test-alert
23052305
**
23062306
** Usage: %fossil test-alert EVENTID ...
23072307
**
23082308
** Generate the text of an email alert for all of the EVENTIDs
23092309
** listed on the command-line. Or if no events are listed on the
@@ -2360,11 +2360,11 @@
23602360
blob_reset(&out);
23612361
db_end_transaction(0);
23622362
}
23632363
23642364
/*
2365
-** COMMAND: test-add-alerts
2365
+** COMMAND: test-add-alerts
23662366
**
23672367
** Usage: %fossil test-add-alerts [OPTIONS] EVENTID ...
23682368
**
23692369
** Add one or more events to the pending_alert queue. Use this
23702370
** command during testing to force email notifications for specific
@@ -2385,11 +2385,11 @@
23852385
** so that emails are printed to standard output
23862386
** rather than being sent.
23872387
**
23882388
** --digest Process emails using SENDALERT_DIGEST
23892389
*/
2390
-void test_add_alert_cmd(void){
2390
+void test_add_alerts_cmd(void){
23912391
int i;
23922392
int doAuto = find_option("backoffice",0,0)!=0;
23932393
unsigned mFlags = 0;
23942394
if( find_option("debug",0,0)!=0 ){
23952395
doAuto = 1;
23962396
--- src/alerts.c
+++ src/alerts.c
@@ -19,11 +19,11 @@
19 **
20 ** Are you looking for the code that reads and writes the internet
21 ** email protocol? That is not here. See the "smtp.c" file instead.
22 ** Yes, the choice of source code filenames is not the greatest, but
23 ** it is not so bad that changing them seems justified.
24 */
25 #include "config.h"
26 #include "alerts.h"
27 #include <assert.h>
28 #include <time.h>
29
@@ -199,11 +199,11 @@
199 ** WEBPAGE: setup_notification
200 **
201 ** Administrative page for configuring and controlling email notification.
202 ** Normally accessible via the /Admin/Notification menu.
203 */
204 void setup_notification(void){
205 static const char *const azSendMethods[] = {
206 "off", "Disabled",
207 "pipe", "Pipe to a command",
208 "db", "Store in a database",
209 "dir", "Store in a directory",
@@ -746,11 +746,11 @@
746 **
747 ** Return the mailbox hash name corresponding to each human-readable
748 ** name on the command line. This is a test interface for the
749 ** alert_mailbox_name() function.
750 */
751 void alert_test_mailbox_hashname(void){
752 int i;
753 for(i=2; i<g.argc; i++){
754 fossil_print("%30s: %s\n", g.argv[i], alert_mailbox_name(g.argv[i]));
755 }
756 }
@@ -1021,11 +1021,11 @@
1021 ** --stdout
1022 ** --subject|-S SUBJECT
1023 **
1024 ** unsubscribe EMAIL Remove a single subscriber with the given EMAIL.
1025 */
1026 void alert_cmd(void){
1027 const char *zCmd;
1028 int nCmd;
1029 db_find_and_open_repository(0, 0);
1030 alert_schema(0);
1031 zCmd = g.argc>=3 ? g.argv[2] : "x";
@@ -1559,17 +1559,17 @@
1559 ** Edit email alert and notification settings.
1560 **
1561 ** The subscriber is identified in either of two ways:
1562 **
1563 ** (1) The name= query parameter contains the subscriberCode.
1564 **
1565 ** (2) The user is logged into an account other than "nobody" or
1566 ** "anonymous". In that case the notification settings
1567 ** associated with that account can be edited without needing
1568 ** to know the subscriber code.
1569 */
1570 void alert_page(void){
1571 const char *zName = P("name");
1572 Stmt q;
1573 int sa, sc, sf, st, sw, sx;
1574 int sdigest = 0, sdonotcall = 0, sverified = 0;
1575 int isLogin; /* Logged in as an individual */
@@ -1976,11 +1976,11 @@
1976 ** shows a list of subscriber email addresses.
1977 ** Clicking on an email takes one to the /alerts page
1978 ** for that email where the delivery settings can be
1979 ** modified.
1980 */
1981 void subscriber_list_page(void){
1982 Blob sql;
1983 Stmt q;
1984 sqlite3_int64 iNow;
1985 int nTotal;
1986 int nPending;
@@ -2299,11 +2299,11 @@
2299 blob_appendf(pOut, "\n-- \nTo unsubscribe: %s/unsubscribe\n",
2300 db_get("email-url","http://localhost:8080"));
2301 }
2302
2303 /*
2304 ** COMMAND: test-alert
2305 **
2306 ** Usage: %fossil test-alert EVENTID ...
2307 **
2308 ** Generate the text of an email alert for all of the EVENTIDs
2309 ** listed on the command-line. Or if no events are listed on the
@@ -2360,11 +2360,11 @@
2360 blob_reset(&out);
2361 db_end_transaction(0);
2362 }
2363
2364 /*
2365 ** COMMAND: test-add-alerts
2366 **
2367 ** Usage: %fossil test-add-alerts [OPTIONS] EVENTID ...
2368 **
2369 ** Add one or more events to the pending_alert queue. Use this
2370 ** command during testing to force email notifications for specific
@@ -2385,11 +2385,11 @@
2385 ** so that emails are printed to standard output
2386 ** rather than being sent.
2387 **
2388 ** --digest Process emails using SENDALERT_DIGEST
2389 */
2390 void test_add_alert_cmd(void){
2391 int i;
2392 int doAuto = find_option("backoffice",0,0)!=0;
2393 unsigned mFlags = 0;
2394 if( find_option("debug",0,0)!=0 ){
2395 doAuto = 1;
2396
--- src/alerts.c
+++ src/alerts.c
@@ -19,11 +19,11 @@
19 **
20 ** Are you looking for the code that reads and writes the internet
21 ** email protocol? That is not here. See the "smtp.c" file instead.
22 ** Yes, the choice of source code filenames is not the greatest, but
23 ** it is not so bad that changing them seems justified.
24 */
25 #include "config.h"
26 #include "alerts.h"
27 #include <assert.h>
28 #include <time.h>
29
@@ -199,11 +199,11 @@
199 ** WEBPAGE: setup_notification
200 **
201 ** Administrative page for configuring and controlling email notification.
202 ** Normally accessible via the /Admin/Notification menu.
203 */
204 void setup_notification_page(void){
205 static const char *const azSendMethods[] = {
206 "off", "Disabled",
207 "pipe", "Pipe to a command",
208 "db", "Store in a database",
209 "dir", "Store in a directory",
@@ -746,11 +746,11 @@
746 **
747 ** Return the mailbox hash name corresponding to each human-readable
748 ** name on the command line. This is a test interface for the
749 ** alert_mailbox_name() function.
750 */
751 void test_mailbox_hashname_cmd(void){
752 int i;
753 for(i=2; i<g.argc; i++){
754 fossil_print("%30s: %s\n", g.argv[i], alert_mailbox_name(g.argv[i]));
755 }
756 }
@@ -1021,11 +1021,11 @@
1021 ** --stdout
1022 ** --subject|-S SUBJECT
1023 **
1024 ** unsubscribe EMAIL Remove a single subscriber with the given EMAIL.
1025 */
1026 void alerts_cmd(void){
1027 const char *zCmd;
1028 int nCmd;
1029 db_find_and_open_repository(0, 0);
1030 alert_schema(0);
1031 zCmd = g.argc>=3 ? g.argv[2] : "x";
@@ -1559,17 +1559,17 @@
1559 ** Edit email alert and notification settings.
1560 **
1561 ** The subscriber is identified in either of two ways:
1562 **
1563 ** (1) The name= query parameter contains the subscriberCode.
1564 **
1565 ** (2) The user is logged into an account other than "nobody" or
1566 ** "anonymous". In that case the notification settings
1567 ** associated with that account can be edited without needing
1568 ** to know the subscriber code.
1569 */
1570 void alerts_page(void){
1571 const char *zName = P("name");
1572 Stmt q;
1573 int sa, sc, sf, st, sw, sx;
1574 int sdigest = 0, sdonotcall = 0, sverified = 0;
1575 int isLogin; /* Logged in as an individual */
@@ -1976,11 +1976,11 @@
1976 ** shows a list of subscriber email addresses.
1977 ** Clicking on an email takes one to the /alerts page
1978 ** for that email where the delivery settings can be
1979 ** modified.
1980 */
1981 void subscribers_page(void){
1982 Blob sql;
1983 Stmt q;
1984 sqlite3_int64 iNow;
1985 int nTotal;
1986 int nPending;
@@ -2299,11 +2299,11 @@
2299 blob_appendf(pOut, "\n-- \nTo unsubscribe: %s/unsubscribe\n",
2300 db_get("email-url","http://localhost:8080"));
2301 }
2302
2303 /*
2304 ** COMMAND: test-alert
2305 **
2306 ** Usage: %fossil test-alert EVENTID ...
2307 **
2308 ** Generate the text of an email alert for all of the EVENTIDs
2309 ** listed on the command-line. Or if no events are listed on the
@@ -2360,11 +2360,11 @@
2360 blob_reset(&out);
2361 db_end_transaction(0);
2362 }
2363
2364 /*
2365 ** COMMAND: test-add-alerts
2366 **
2367 ** Usage: %fossil test-add-alerts [OPTIONS] EVENTID ...
2368 **
2369 ** Add one or more events to the pending_alert queue. Use this
2370 ** command during testing to force email notifications for specific
@@ -2385,11 +2385,11 @@
2385 ** so that emails are printed to standard output
2386 ** rather than being sent.
2387 **
2388 ** --digest Process emails using SENDALERT_DIGEST
2389 */
2390 void test_add_alerts_cmd(void){
2391 int i;
2392 int doAuto = find_option("backoffice",0,0)!=0;
2393 unsigned mFlags = 0;
2394 if( find_option("debug",0,0)!=0 ){
2395 doAuto = 1;
2396
+1 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -196,11 +196,11 @@
196196
zCmd = g.argv[2];
197197
if( !login_is_nobody() ) blob_appendf(&extra, " -U %s", g.zLogin);
198198
if( strncmp(zCmd, "ui", n)==0 || strncmp(zCmd, "server", n)==0 ){
199199
g.argv[1] = g.argv[2];
200200
g.argv[2] = "/";
201
- cmd_webserver();
201
+ webserver_cmd();
202202
return;
203203
}
204204
if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
205205
zCmd = "list";
206206
useCheckouts = find_option("ckout","c",0)!=0;
207207
--- src/allrepo.c
+++ src/allrepo.c
@@ -196,11 +196,11 @@
196 zCmd = g.argv[2];
197 if( !login_is_nobody() ) blob_appendf(&extra, " -U %s", g.zLogin);
198 if( strncmp(zCmd, "ui", n)==0 || strncmp(zCmd, "server", n)==0 ){
199 g.argv[1] = g.argv[2];
200 g.argv[2] = "/";
201 cmd_webserver();
202 return;
203 }
204 if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
205 zCmd = "list";
206 useCheckouts = find_option("ckout","c",0)!=0;
207
--- src/allrepo.c
+++ src/allrepo.c
@@ -196,11 +196,11 @@
196 zCmd = g.argv[2];
197 if( !login_is_nobody() ) blob_appendf(&extra, " -U %s", g.zLogin);
198 if( strncmp(zCmd, "ui", n)==0 || strncmp(zCmd, "server", n)==0 ){
199 g.argv[1] = g.argv[2];
200 g.argv[2] = "/";
201 webserver_cmd();
202 return;
203 }
204 if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){
205 zCmd = "list";
206 useCheckouts = find_option("ckout","c",0)!=0;
207
+1 -1
--- src/attach.c
+++ src/attach.c
@@ -147,13 +147,13 @@
147147
style_footer();
148148
return;
149149
}
150150
151151
/*
152
+** WEBPAGE: attachview
152153
** WEBPAGE: attachdownload
153154
** WEBPAGE: attachimage
154
-** WEBPAGE: attachview
155155
**
156156
** Download or display an attachment.
157157
** Query parameters:
158158
**
159159
** tkt=TICKETUUID
160160
--- src/attach.c
+++ src/attach.c
@@ -147,13 +147,13 @@
147 style_footer();
148 return;
149 }
150
151 /*
 
152 ** WEBPAGE: attachdownload
153 ** WEBPAGE: attachimage
154 ** WEBPAGE: attachview
155 **
156 ** Download or display an attachment.
157 ** Query parameters:
158 **
159 ** tkt=TICKETUUID
160
--- src/attach.c
+++ src/attach.c
@@ -147,13 +147,13 @@
147 style_footer();
148 return;
149 }
150
151 /*
152 ** WEBPAGE: attachview
153 ** WEBPAGE: attachdownload
154 ** WEBPAGE: attachimage
 
155 **
156 ** Download or display an attachment.
157 ** Query parameters:
158 **
159 ** tkt=TICKETUUID
160
--- src/backoffice.c
+++ src/backoffice.c
@@ -316,11 +316,11 @@
316316
**
317317
** Show the current process id, and also tell whether or not all other
318318
** processes IDs on the command line are running or not. If the --sleep N
319319
** option is provide, then sleep for N seconds before exiting.
320320
*/
321
-void test_process_id_command(void){
321
+void test_process_id_cmd(void){
322322
const char *zSleep = find_option("sleep",0,1);
323323
int i;
324324
verify_all_options();
325325
fossil_print("ProcessID for this process: %lld\n", backofficeProcessId());
326326
if( zSleep ) sqlite3_sleep(1000*atoi(zSleep));
@@ -338,11 +338,11 @@
338338
** Usage: %fossil test-backoffice-lease
339339
**
340340
** Print out information about the backoffice "lease" entry in the
341341
** config table that controls whether or not backoffice should run.
342342
*/
343
-void test_backoffice_lease(void){
343
+void test_backoffice_lease_cmd(void){
344344
sqlite3_int64 tmNow = time(0);
345345
Lease x;
346346
const char *zLease;
347347
db_find_and_open_repository(0,0);
348348
verify_all_options();
@@ -567,11 +567,11 @@
567567
** change in appoximately N-second intervals.
568568
** N less than 1 turns polling off (the default).
569569
**
570570
** --trace Enable debugging output on stderr
571571
*/
572
-void backoffice_command(void){
572
+void backoffice_cmd(void){
573573
int nPoll;
574574
const char *zPoll;
575575
int bDebug = 0;
576576
unsigned int nCmd = 0;
577577
if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1;
578578
--- src/backoffice.c
+++ src/backoffice.c
@@ -316,11 +316,11 @@
316 **
317 ** Show the current process id, and also tell whether or not all other
318 ** processes IDs on the command line are running or not. If the --sleep N
319 ** option is provide, then sleep for N seconds before exiting.
320 */
321 void test_process_id_command(void){
322 const char *zSleep = find_option("sleep",0,1);
323 int i;
324 verify_all_options();
325 fossil_print("ProcessID for this process: %lld\n", backofficeProcessId());
326 if( zSleep ) sqlite3_sleep(1000*atoi(zSleep));
@@ -338,11 +338,11 @@
338 ** Usage: %fossil test-backoffice-lease
339 **
340 ** Print out information about the backoffice "lease" entry in the
341 ** config table that controls whether or not backoffice should run.
342 */
343 void test_backoffice_lease(void){
344 sqlite3_int64 tmNow = time(0);
345 Lease x;
346 const char *zLease;
347 db_find_and_open_repository(0,0);
348 verify_all_options();
@@ -567,11 +567,11 @@
567 ** change in appoximately N-second intervals.
568 ** N less than 1 turns polling off (the default).
569 **
570 ** --trace Enable debugging output on stderr
571 */
572 void backoffice_command(void){
573 int nPoll;
574 const char *zPoll;
575 int bDebug = 0;
576 unsigned int nCmd = 0;
577 if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1;
578
--- src/backoffice.c
+++ src/backoffice.c
@@ -316,11 +316,11 @@
316 **
317 ** Show the current process id, and also tell whether or not all other
318 ** processes IDs on the command line are running or not. If the --sleep N
319 ** option is provide, then sleep for N seconds before exiting.
320 */
321 void test_process_id_cmd(void){
322 const char *zSleep = find_option("sleep",0,1);
323 int i;
324 verify_all_options();
325 fossil_print("ProcessID for this process: %lld\n", backofficeProcessId());
326 if( zSleep ) sqlite3_sleep(1000*atoi(zSleep));
@@ -338,11 +338,11 @@
338 ** Usage: %fossil test-backoffice-lease
339 **
340 ** Print out information about the backoffice "lease" entry in the
341 ** config table that controls whether or not backoffice should run.
342 */
343 void test_backoffice_lease_cmd(void){
344 sqlite3_int64 tmNow = time(0);
345 Lease x;
346 const char *zLease;
347 db_find_and_open_repository(0,0);
348 verify_all_options();
@@ -567,11 +567,11 @@
567 ** change in appoximately N-second intervals.
568 ** N less than 1 turns polling off (the default).
569 **
570 ** --trace Enable debugging output on stderr
571 */
572 void backoffice_cmd(void){
573 int nPoll;
574 const char *zPoll;
575 int bDebug = 0;
576 unsigned int nCmd = 0;
577 if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1;
578
+1 -1
--- src/bisect.c
+++ src/bisect.c
@@ -510,11 +510,11 @@
510510
newArgv[2] = "--page";
511511
newArgv[3] = "timeline?bisect";
512512
newArgv[4] = 0;
513513
g.argv = newArgv;
514514
g.argc = 4;
515
- cmd_webserver();
515
+ webserver_cmd();
516516
}else if( strncmp(zCmd, "vlist", n)==0
517517
|| strncmp(zCmd, "ls", n)==0
518518
|| strncmp(zCmd, "status", n)==0
519519
){
520520
int fAll = find_option("all", "a", 0)!=0;
521521
--- src/bisect.c
+++ src/bisect.c
@@ -510,11 +510,11 @@
510 newArgv[2] = "--page";
511 newArgv[3] = "timeline?bisect";
512 newArgv[4] = 0;
513 g.argv = newArgv;
514 g.argc = 4;
515 cmd_webserver();
516 }else if( strncmp(zCmd, "vlist", n)==0
517 || strncmp(zCmd, "ls", n)==0
518 || strncmp(zCmd, "status", n)==0
519 ){
520 int fAll = find_option("all", "a", 0)!=0;
521
--- src/bisect.c
+++ src/bisect.c
@@ -510,11 +510,11 @@
510 newArgv[2] = "--page";
511 newArgv[3] = "timeline?bisect";
512 newArgv[4] = 0;
513 g.argv = newArgv;
514 g.argc = 4;
515 webserver_cmd();
516 }else if( strncmp(zCmd, "vlist", n)==0
517 || strncmp(zCmd, "ls", n)==0
518 || strncmp(zCmd, "status", n)==0
519 ){
520 int fAll = find_option("all", "a", 0)!=0;
521
+5 -5
--- src/blob.c
+++ src/blob.c
@@ -130,11 +130,11 @@
130130
** COMMAND: test-isspace
131131
**
132132
** Verify that the fossil_isspace() routine is working correctly by
133133
** testing it on all possible inputs.
134134
*/
135
-void isspace_cmd(void){
135
+void test_isspace_cmd(void){
136136
int i;
137137
for(i=0; i<=255; i++){
138138
if( i==' ' || i=='\n' || i=='\t' || i=='\v'
139139
|| i=='\f' || i=='\r' ){
140140
assert( fossil_isspace((char)i) );
@@ -1025,11 +1025,11 @@
10251025
**
10261026
** Run compression on INPUTFILE and write the result into OUTPUTFILE.
10271027
**
10281028
** This is used to test and debug the blob_compress() routine.
10291029
*/
1030
-void compress_cmd(void){
1030
+void test_compress_cmd(void){
10311031
Blob f;
10321032
if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE");
10331033
blob_read_from_file(&f, g.argv[2], ExtFILE);
10341034
blob_compress(&f, &f);
10351035
blob_write_to_file(&f, g.argv[3]);
@@ -1084,11 +1084,11 @@
10841084
** Read files IN1 and IN2, concatenate the content, compress the
10851085
** content, then write results into OUT.
10861086
**
10871087
** This is used to test and debug the blob_compress2() routine.
10881088
*/
1089
-void compress2_cmd(void){
1089
+void test_compress2_cmd(void){
10901090
Blob f1, f2;
10911091
if( g.argc!=5 ) usage("INPUTFILE1 INPUTFILE2 OUTPUTFILE");
10921092
blob_read_from_file(&f1, g.argv[2], ExtFILE);
10931093
blob_read_from_file(&f2, g.argv[3], ExtFILE);
10941094
blob_compress2(&f1, &f2, &f1);
@@ -1136,11 +1136,11 @@
11361136
**
11371137
** Read the content of file IN, uncompress that content, and write the
11381138
** result into OUT. This command is intended for testing of the
11391139
** blob_compress() function.
11401140
*/
1141
-void uncompress_cmd(void){
1141
+void test_uncompress_cmd(void){
11421142
Blob f;
11431143
if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE");
11441144
blob_read_from_file(&f, g.argv[2], ExtFILE);
11451145
blob_uncompress(&f, &f);
11461146
blob_write_to_file(&f, g.argv[3]);
@@ -1150,11 +1150,11 @@
11501150
** COMMAND: test-cycle-compress
11511151
**
11521152
** Compress and uncompress each file named on the command line.
11531153
** Verify that the original content is recovered.
11541154
*/
1155
-void test_cycle_compress(void){
1155
+void test_cycle_compress_cmd(void){
11561156
int i;
11571157
Blob b1, b2, b3;
11581158
for(i=2; i<g.argc; i++){
11591159
blob_read_from_file(&b1, g.argv[i], ExtFILE);
11601160
blob_compress(&b1, &b2);
11611161
--- src/blob.c
+++ src/blob.c
@@ -130,11 +130,11 @@
130 ** COMMAND: test-isspace
131 **
132 ** Verify that the fossil_isspace() routine is working correctly by
133 ** testing it on all possible inputs.
134 */
135 void isspace_cmd(void){
136 int i;
137 for(i=0; i<=255; i++){
138 if( i==' ' || i=='\n' || i=='\t' || i=='\v'
139 || i=='\f' || i=='\r' ){
140 assert( fossil_isspace((char)i) );
@@ -1025,11 +1025,11 @@
1025 **
1026 ** Run compression on INPUTFILE and write the result into OUTPUTFILE.
1027 **
1028 ** This is used to test and debug the blob_compress() routine.
1029 */
1030 void compress_cmd(void){
1031 Blob f;
1032 if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE");
1033 blob_read_from_file(&f, g.argv[2], ExtFILE);
1034 blob_compress(&f, &f);
1035 blob_write_to_file(&f, g.argv[3]);
@@ -1084,11 +1084,11 @@
1084 ** Read files IN1 and IN2, concatenate the content, compress the
1085 ** content, then write results into OUT.
1086 **
1087 ** This is used to test and debug the blob_compress2() routine.
1088 */
1089 void compress2_cmd(void){
1090 Blob f1, f2;
1091 if( g.argc!=5 ) usage("INPUTFILE1 INPUTFILE2 OUTPUTFILE");
1092 blob_read_from_file(&f1, g.argv[2], ExtFILE);
1093 blob_read_from_file(&f2, g.argv[3], ExtFILE);
1094 blob_compress2(&f1, &f2, &f1);
@@ -1136,11 +1136,11 @@
1136 **
1137 ** Read the content of file IN, uncompress that content, and write the
1138 ** result into OUT. This command is intended for testing of the
1139 ** blob_compress() function.
1140 */
1141 void uncompress_cmd(void){
1142 Blob f;
1143 if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE");
1144 blob_read_from_file(&f, g.argv[2], ExtFILE);
1145 blob_uncompress(&f, &f);
1146 blob_write_to_file(&f, g.argv[3]);
@@ -1150,11 +1150,11 @@
1150 ** COMMAND: test-cycle-compress
1151 **
1152 ** Compress and uncompress each file named on the command line.
1153 ** Verify that the original content is recovered.
1154 */
1155 void test_cycle_compress(void){
1156 int i;
1157 Blob b1, b2, b3;
1158 for(i=2; i<g.argc; i++){
1159 blob_read_from_file(&b1, g.argv[i], ExtFILE);
1160 blob_compress(&b1, &b2);
1161
--- src/blob.c
+++ src/blob.c
@@ -130,11 +130,11 @@
130 ** COMMAND: test-isspace
131 **
132 ** Verify that the fossil_isspace() routine is working correctly by
133 ** testing it on all possible inputs.
134 */
135 void test_isspace_cmd(void){
136 int i;
137 for(i=0; i<=255; i++){
138 if( i==' ' || i=='\n' || i=='\t' || i=='\v'
139 || i=='\f' || i=='\r' ){
140 assert( fossil_isspace((char)i) );
@@ -1025,11 +1025,11 @@
1025 **
1026 ** Run compression on INPUTFILE and write the result into OUTPUTFILE.
1027 **
1028 ** This is used to test and debug the blob_compress() routine.
1029 */
1030 void test_compress_cmd(void){
1031 Blob f;
1032 if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE");
1033 blob_read_from_file(&f, g.argv[2], ExtFILE);
1034 blob_compress(&f, &f);
1035 blob_write_to_file(&f, g.argv[3]);
@@ -1084,11 +1084,11 @@
1084 ** Read files IN1 and IN2, concatenate the content, compress the
1085 ** content, then write results into OUT.
1086 **
1087 ** This is used to test and debug the blob_compress2() routine.
1088 */
1089 void test_compress2_cmd(void){
1090 Blob f1, f2;
1091 if( g.argc!=5 ) usage("INPUTFILE1 INPUTFILE2 OUTPUTFILE");
1092 blob_read_from_file(&f1, g.argv[2], ExtFILE);
1093 blob_read_from_file(&f2, g.argv[3], ExtFILE);
1094 blob_compress2(&f1, &f2, &f1);
@@ -1136,11 +1136,11 @@
1136 **
1137 ** Read the content of file IN, uncompress that content, and write the
1138 ** result into OUT. This command is intended for testing of the
1139 ** blob_compress() function.
1140 */
1141 void test_uncompress_cmd(void){
1142 Blob f;
1143 if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE");
1144 blob_read_from_file(&f, g.argv[2], ExtFILE);
1145 blob_uncompress(&f, &f);
1146 blob_write_to_file(&f, g.argv[3]);
@@ -1150,11 +1150,11 @@
1150 ** COMMAND: test-cycle-compress
1151 **
1152 ** Compress and uncompress each file named on the command line.
1153 ** Verify that the original content is recovered.
1154 */
1155 void test_cycle_compress_cmd(void){
1156 int i;
1157 Blob b1, b2, b3;
1158 for(i=2; i<g.argc; i++){
1159 blob_read_from_file(&b1, g.argv[i], ExtFILE);
1160 blob_compress(&b1, &b2);
1161
+4 -4
--- src/browse.c
+++ src/browse.c
@@ -118,11 +118,11 @@
118118
** ci=LABEL Show only files in this check-in. Optional.
119119
** type=TYPE TYPE=flat: use this display
120120
** TYPE=tree: use the /tree display instead
121121
** noreadme Do not attempt to display the README file.
122122
*/
123
-void page_dir(void){
123
+void dir_page(void){
124124
char *zD = fossil_strdup(P("name"));
125125
int nD = zD ? strlen(zD)+1 : 0;
126126
int mxLen;
127127
char *zPrefix;
128128
Stmt q;
@@ -134,11 +134,11 @@
134134
const char *zSubdirLink;
135135
int linkTrunk = 1;
136136
int linkTip = 1;
137137
HQuery sURI;
138138
139
- if( strcmp(PD("type","flat"),"tree")==0 ){ page_tree(); return; }
139
+ if( strcmp(PD("type","flat"),"tree")==0 ){ tree_page(); return; }
140140
login_check_credentials();
141141
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
142142
while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }
143143
style_header("File List");
144144
style_adunit_config(ADUNIT_RIGHT_OK);
@@ -587,11 +587,11 @@
587587
** re=REGEXP Show only files matching REGEXP. Optional.
588588
** expand Begin with the tree fully expanded.
589589
** nofiles Show directories (folders) only. Omit files.
590590
** mtime Order directory elements by decreasing mtime
591591
*/
592
-void page_tree(void){
592
+void tree_page(void){
593593
char *zD = fossil_strdup(P("name"));
594594
int nD = zD ? strlen(zD)+1 : 0;
595595
const char *zCI = P("ci");
596596
int rid = 0;
597597
char *zUuid = 0;
@@ -613,11 +613,11 @@
613613
int startExpanded; /* True to start out with the tree expanded */
614614
int showDirOnly; /* Show directories only. Omit files */
615615
int nDir = 0; /* Number of directories. Used for ID attributes */
616616
char *zProjectName = db_get("project-name", 0);
617617
618
- if( strcmp(PD("type","flat"),"flat")==0 ){ page_dir(); return; }
618
+ if( strcmp(PD("type","flat"),"flat")==0 ){ dir_page(); return; }
619619
memset(&sTree, 0, sizeof(sTree));
620620
login_check_credentials();
621621
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
622622
while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }
623623
sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0,
624624
--- src/browse.c
+++ src/browse.c
@@ -118,11 +118,11 @@
118 ** ci=LABEL Show only files in this check-in. Optional.
119 ** type=TYPE TYPE=flat: use this display
120 ** TYPE=tree: use the /tree display instead
121 ** noreadme Do not attempt to display the README file.
122 */
123 void page_dir(void){
124 char *zD = fossil_strdup(P("name"));
125 int nD = zD ? strlen(zD)+1 : 0;
126 int mxLen;
127 char *zPrefix;
128 Stmt q;
@@ -134,11 +134,11 @@
134 const char *zSubdirLink;
135 int linkTrunk = 1;
136 int linkTip = 1;
137 HQuery sURI;
138
139 if( strcmp(PD("type","flat"),"tree")==0 ){ page_tree(); return; }
140 login_check_credentials();
141 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
142 while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }
143 style_header("File List");
144 style_adunit_config(ADUNIT_RIGHT_OK);
@@ -587,11 +587,11 @@
587 ** re=REGEXP Show only files matching REGEXP. Optional.
588 ** expand Begin with the tree fully expanded.
589 ** nofiles Show directories (folders) only. Omit files.
590 ** mtime Order directory elements by decreasing mtime
591 */
592 void page_tree(void){
593 char *zD = fossil_strdup(P("name"));
594 int nD = zD ? strlen(zD)+1 : 0;
595 const char *zCI = P("ci");
596 int rid = 0;
597 char *zUuid = 0;
@@ -613,11 +613,11 @@
613 int startExpanded; /* True to start out with the tree expanded */
614 int showDirOnly; /* Show directories only. Omit files */
615 int nDir = 0; /* Number of directories. Used for ID attributes */
616 char *zProjectName = db_get("project-name", 0);
617
618 if( strcmp(PD("type","flat"),"flat")==0 ){ page_dir(); return; }
619 memset(&sTree, 0, sizeof(sTree));
620 login_check_credentials();
621 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
622 while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }
623 sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0,
624
--- src/browse.c
+++ src/browse.c
@@ -118,11 +118,11 @@
118 ** ci=LABEL Show only files in this check-in. Optional.
119 ** type=TYPE TYPE=flat: use this display
120 ** TYPE=tree: use the /tree display instead
121 ** noreadme Do not attempt to display the README file.
122 */
123 void dir_page(void){
124 char *zD = fossil_strdup(P("name"));
125 int nD = zD ? strlen(zD)+1 : 0;
126 int mxLen;
127 char *zPrefix;
128 Stmt q;
@@ -134,11 +134,11 @@
134 const char *zSubdirLink;
135 int linkTrunk = 1;
136 int linkTip = 1;
137 HQuery sURI;
138
139 if( strcmp(PD("type","flat"),"tree")==0 ){ tree_page(); return; }
140 login_check_credentials();
141 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
142 while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }
143 style_header("File List");
144 style_adunit_config(ADUNIT_RIGHT_OK);
@@ -587,11 +587,11 @@
587 ** re=REGEXP Show only files matching REGEXP. Optional.
588 ** expand Begin with the tree fully expanded.
589 ** nofiles Show directories (folders) only. Omit files.
590 ** mtime Order directory elements by decreasing mtime
591 */
592 void tree_page(void){
593 char *zD = fossil_strdup(P("name"));
594 int nD = zD ? strlen(zD)+1 : 0;
595 const char *zCI = P("ci");
596 int rid = 0;
597 char *zUuid = 0;
@@ -613,11 +613,11 @@
613 int startExpanded; /* True to start out with the tree expanded */
614 int showDirOnly; /* Show directories only. Omit files */
615 int nDir = 0; /* Number of directories. Used for ID attributes */
616 char *zProjectName = db_get("project-name", 0);
617
618 if( strcmp(PD("type","flat"),"flat")==0 ){ dir_page(); return; }
619 memset(&sTree, 0, sizeof(sTree));
620 login_check_credentials();
621 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
622 while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; }
623 sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0,
624
+3 -3
--- src/builtin.c
+++ src/builtin.c
@@ -58,11 +58,11 @@
5858
/*
5959
** COMMAND: test-builtin-list
6060
**
6161
** List the names and sizes of all built-in resources.
6262
*/
63
-void test_builtin_list(void){
63
+void test_builtin_list_cmd(void){
6464
int i;
6565
for(i=0; i<count(aBuiltinFiles); i++){
6666
fossil_print("%-30s %6d\n", aBuiltinFiles[i].zName,aBuiltinFiles[i].nByte);
6767
}
6868
}
@@ -70,11 +70,11 @@
7070
/*
7171
** WEBPAGE: test-builtin-files
7272
**
7373
** Show all built-in text files.
7474
*/
75
-void test_builtin_list_page(void){
75
+void test_builtin_files_page(void){
7676
int i;
7777
style_header("Built-in Text Files");
7878
@ <ul>
7979
for(i=0; i<count(aBuiltinFiles); i++){
8080
const char *z = aBuiltinFiles[i].zName;
@@ -87,11 +87,11 @@
8787
/*
8888
** COMMAND: test-builtin-get
8989
**
9090
** Usage: %fossil test-builtin-get NAME ?OUTPUT-FILE?
9191
*/
92
-void test_builtin_get(void){
92
+void test_builtin_get_cmd(void){
9393
const unsigned char *pData;
9494
int nByte;
9595
Blob x;
9696
if( g.argc!=3 && g.argc!=4 ){
9797
usage("NAME ?OUTPUT-FILE?");
9898
--- src/builtin.c
+++ src/builtin.c
@@ -58,11 +58,11 @@
58 /*
59 ** COMMAND: test-builtin-list
60 **
61 ** List the names and sizes of all built-in resources.
62 */
63 void test_builtin_list(void){
64 int i;
65 for(i=0; i<count(aBuiltinFiles); i++){
66 fossil_print("%-30s %6d\n", aBuiltinFiles[i].zName,aBuiltinFiles[i].nByte);
67 }
68 }
@@ -70,11 +70,11 @@
70 /*
71 ** WEBPAGE: test-builtin-files
72 **
73 ** Show all built-in text files.
74 */
75 void test_builtin_list_page(void){
76 int i;
77 style_header("Built-in Text Files");
78 @ <ul>
79 for(i=0; i<count(aBuiltinFiles); i++){
80 const char *z = aBuiltinFiles[i].zName;
@@ -87,11 +87,11 @@
87 /*
88 ** COMMAND: test-builtin-get
89 **
90 ** Usage: %fossil test-builtin-get NAME ?OUTPUT-FILE?
91 */
92 void test_builtin_get(void){
93 const unsigned char *pData;
94 int nByte;
95 Blob x;
96 if( g.argc!=3 && g.argc!=4 ){
97 usage("NAME ?OUTPUT-FILE?");
98
--- src/builtin.c
+++ src/builtin.c
@@ -58,11 +58,11 @@
58 /*
59 ** COMMAND: test-builtin-list
60 **
61 ** List the names and sizes of all built-in resources.
62 */
63 void test_builtin_list_cmd(void){
64 int i;
65 for(i=0; i<count(aBuiltinFiles); i++){
66 fossil_print("%-30s %6d\n", aBuiltinFiles[i].zName,aBuiltinFiles[i].nByte);
67 }
68 }
@@ -70,11 +70,11 @@
70 /*
71 ** WEBPAGE: test-builtin-files
72 **
73 ** Show all built-in text files.
74 */
75 void test_builtin_files_page(void){
76 int i;
77 style_header("Built-in Text Files");
78 @ <ul>
79 for(i=0; i<count(aBuiltinFiles); i++){
80 const char *z = aBuiltinFiles[i].zName;
@@ -87,11 +87,11 @@
87 /*
88 ** COMMAND: test-builtin-get
89 **
90 ** Usage: %fossil test-builtin-get NAME ?OUTPUT-FILE?
91 */
92 void test_builtin_get_cmd(void){
93 const unsigned char *pData;
94 int nByte;
95 Blob x;
96 if( g.argc!=3 && g.argc!=4 ){
97 usage("NAME ?OUTPUT-FILE?");
98
+2 -2
--- src/cache.c
+++ src/cache.c
@@ -346,11 +346,11 @@
346346
/*
347347
** WEBPAGE: cachestat
348348
**
349349
** Show information about the webpage cache. Requires Setup privilege.
350350
*/
351
-void cache_page(void){
351
+void cachestat_page(void){
352352
sqlite3 *db;
353353
sqlite3_stmt *pStmt;
354354
char zBuf[100];
355355
356356
login_check_credentials();
@@ -396,11 +396,11 @@
396396
**
397397
** Download a single entry for the cache, identified by KEY.
398398
** This page is normally a hyperlink from the /cachestat page.
399399
** Requires Admin privilege.
400400
*/
401
-void cache_getpage(void){
401
+void cacheget_page(void){
402402
const char *zKey;
403403
Blob content;
404404
405405
login_check_credentials();
406406
if( !g.perm.Setup ){ login_needed(0); return; }
407407
--- src/cache.c
+++ src/cache.c
@@ -346,11 +346,11 @@
346 /*
347 ** WEBPAGE: cachestat
348 **
349 ** Show information about the webpage cache. Requires Setup privilege.
350 */
351 void cache_page(void){
352 sqlite3 *db;
353 sqlite3_stmt *pStmt;
354 char zBuf[100];
355
356 login_check_credentials();
@@ -396,11 +396,11 @@
396 **
397 ** Download a single entry for the cache, identified by KEY.
398 ** This page is normally a hyperlink from the /cachestat page.
399 ** Requires Admin privilege.
400 */
401 void cache_getpage(void){
402 const char *zKey;
403 Blob content;
404
405 login_check_credentials();
406 if( !g.perm.Setup ){ login_needed(0); return; }
407
--- src/cache.c
+++ src/cache.c
@@ -346,11 +346,11 @@
346 /*
347 ** WEBPAGE: cachestat
348 **
349 ** Show information about the webpage cache. Requires Setup privilege.
350 */
351 void cachestat_page(void){
352 sqlite3 *db;
353 sqlite3_stmt *pStmt;
354 char zBuf[100];
355
356 login_check_credentials();
@@ -396,11 +396,11 @@
396 **
397 ** Download a single entry for the cache, identified by KEY.
398 ** This page is normally a hyperlink from the /cachestat page.
399 ** Requires Admin privilege.
400 */
401 void cacheget_page(void){
402 const char *zKey;
403 Blob content;
404
405 login_check_credentials();
406 if( !g.perm.Setup ){ login_needed(0); return; }
407
+6 -6
--- src/captcha.c
+++ src/captcha.c
@@ -417,11 +417,11 @@
417417
/*
418418
** COMMAND: test-captcha
419419
**
420420
** Render an ASCII-art captcha for numbers given on the command line.
421421
*/
422
-void test_captcha(void){
422
+void test_captcha_cmd(void){
423423
int i;
424424
unsigned int v;
425425
char *z;
426426
427427
for(i=2; i<g.argc; i++){
@@ -576,11 +576,11 @@
576576
** WEBPAGE: test-captcha
577577
** Test the captcha-generator by rendering the value of the name= query
578578
** parameter using ascii-art. If name= is omitted, show a random 16-digit
579579
** hexadecimal number.
580580
*/
581
-void captcha_test(void){
581
+void test_captcha_page(void){
582582
const char *zPw = P("name");
583583
if( zPw==0 || zPw[0]==0 ){
584584
u64 x;
585585
sqlite3_randomness(sizeof(x), &x);
586586
zPw = mprintf("%016llx", x);
@@ -675,32 +675,32 @@
675675
}
676676
}
677677
}
678678
679679
/*
680
-** WEBPAGE: /captcha-audio
680
+** WEBPAGE: captcha-audio
681681
**
682682
** Return a WAV file that pronounces the digits of the captcha that
683683
** is determined by the seed given in the name= query parameter.
684684
*/
685
-void captcha_wav_page(void){
685
+void captcha_audio_page(void){
686686
const char *zSeed = P("name");
687687
const char *zDecode = captcha_decode((unsigned int)atoi(zSeed));
688688
Blob audio;
689689
captcha_wav(zDecode, &audio);
690690
cgi_set_content_type("audio/wav");
691691
cgi_set_content(&audio);
692692
}
693693
694694
/*
695
-** WEBPAGE: /test-captcha-audio
695
+** WEBPAGE: test-captcha-audio
696696
**
697697
** Return a WAV file that pronounces the hex digits of the name=
698698
** query parameter.
699699
*/
700
-void captcha_test_wav_page(void){
700
+void test_captcha_audio_page(void){
701701
const char *zSeed = P("name");
702702
Blob audio;
703703
captcha_wav(zSeed, &audio);
704704
cgi_set_content_type("audio/wav");
705705
cgi_set_content(&audio);
706706
}
707707
--- src/captcha.c
+++ src/captcha.c
@@ -417,11 +417,11 @@
417 /*
418 ** COMMAND: test-captcha
419 **
420 ** Render an ASCII-art captcha for numbers given on the command line.
421 */
422 void test_captcha(void){
423 int i;
424 unsigned int v;
425 char *z;
426
427 for(i=2; i<g.argc; i++){
@@ -576,11 +576,11 @@
576 ** WEBPAGE: test-captcha
577 ** Test the captcha-generator by rendering the value of the name= query
578 ** parameter using ascii-art. If name= is omitted, show a random 16-digit
579 ** hexadecimal number.
580 */
581 void captcha_test(void){
582 const char *zPw = P("name");
583 if( zPw==0 || zPw[0]==0 ){
584 u64 x;
585 sqlite3_randomness(sizeof(x), &x);
586 zPw = mprintf("%016llx", x);
@@ -675,32 +675,32 @@
675 }
676 }
677 }
678
679 /*
680 ** WEBPAGE: /captcha-audio
681 **
682 ** Return a WAV file that pronounces the digits of the captcha that
683 ** is determined by the seed given in the name= query parameter.
684 */
685 void captcha_wav_page(void){
686 const char *zSeed = P("name");
687 const char *zDecode = captcha_decode((unsigned int)atoi(zSeed));
688 Blob audio;
689 captcha_wav(zDecode, &audio);
690 cgi_set_content_type("audio/wav");
691 cgi_set_content(&audio);
692 }
693
694 /*
695 ** WEBPAGE: /test-captcha-audio
696 **
697 ** Return a WAV file that pronounces the hex digits of the name=
698 ** query parameter.
699 */
700 void captcha_test_wav_page(void){
701 const char *zSeed = P("name");
702 Blob audio;
703 captcha_wav(zSeed, &audio);
704 cgi_set_content_type("audio/wav");
705 cgi_set_content(&audio);
706 }
707
--- src/captcha.c
+++ src/captcha.c
@@ -417,11 +417,11 @@
417 /*
418 ** COMMAND: test-captcha
419 **
420 ** Render an ASCII-art captcha for numbers given on the command line.
421 */
422 void test_captcha_cmd(void){
423 int i;
424 unsigned int v;
425 char *z;
426
427 for(i=2; i<g.argc; i++){
@@ -576,11 +576,11 @@
576 ** WEBPAGE: test-captcha
577 ** Test the captcha-generator by rendering the value of the name= query
578 ** parameter using ascii-art. If name= is omitted, show a random 16-digit
579 ** hexadecimal number.
580 */
581 void test_captcha_page(void){
582 const char *zPw = P("name");
583 if( zPw==0 || zPw[0]==0 ){
584 u64 x;
585 sqlite3_randomness(sizeof(x), &x);
586 zPw = mprintf("%016llx", x);
@@ -675,32 +675,32 @@
675 }
676 }
677 }
678
679 /*
680 ** WEBPAGE: captcha-audio
681 **
682 ** Return a WAV file that pronounces the digits of the captcha that
683 ** is determined by the seed given in the name= query parameter.
684 */
685 void captcha_audio_page(void){
686 const char *zSeed = P("name");
687 const char *zDecode = captcha_decode((unsigned int)atoi(zSeed));
688 Blob audio;
689 captcha_wav(zDecode, &audio);
690 cgi_set_content_type("audio/wav");
691 cgi_set_content(&audio);
692 }
693
694 /*
695 ** WEBPAGE: test-captcha-audio
696 **
697 ** Return a WAV file that pronounces the hex digits of the name=
698 ** query parameter.
699 */
700 void test_captcha_audio_page(void){
701 const char *zSeed = P("name");
702 Blob audio;
703 captcha_wav(zSeed, &audio);
704 cgi_set_content_type("audio/wav");
705 cgi_set_content(&audio);
706 }
707
+3 -3
--- src/checkin.c
+++ src/checkin.c
@@ -349,12 +349,12 @@
349349
if( relPathOption ){ relativePaths = 1; }
350350
return relativePaths;
351351
}
352352
353353
/*
354
-** COMMAND: changes
355354
** COMMAND: status
355
+** COMMAND: changes
356356
**
357357
** Usage: %fossil changes|status ?OPTIONS? ?PATHS ...?
358358
**
359359
** Report the change status of files in the current checkout. If one or
360360
** more PATHS are specified, only changes among the named files and
@@ -1453,11 +1453,11 @@
14531453
** Usage: %fossil test-date-format DATE-STRING...
14541454
**
14551455
** Convert the DATE-STRING into the standard format used in artifacts
14561456
** and display the result.
14571457
*/
1458
-void test_date_format(void){
1458
+void test_date_format_cmd(void){
14591459
int i;
14601460
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
14611461
for(i=2; i<g.argc; i++){
14621462
fossil_print("%s -> %s\n", g.argv[i], date_in_standard_format(g.argv[i]));
14631463
}
@@ -1879,11 +1879,11 @@
18791879
** --no-settings Do not consider any glob settings.
18801880
** -v|--verbose Show per-file results for all pre-commit checks.
18811881
**
18821882
** See also: commit, extras
18831883
*/
1884
-void test_commit_warning(void){
1884
+void test_commit_warning_cmd(void){
18851885
int rc = 0;
18861886
int noSettings;
18871887
int verboseFlag;
18881888
Stmt q;
18891889
noSettings = find_option("no-settings",0,0)!=0;
18901890
--- src/checkin.c
+++ src/checkin.c
@@ -349,12 +349,12 @@
349 if( relPathOption ){ relativePaths = 1; }
350 return relativePaths;
351 }
352
353 /*
354 ** COMMAND: changes
355 ** COMMAND: status
 
356 **
357 ** Usage: %fossil changes|status ?OPTIONS? ?PATHS ...?
358 **
359 ** Report the change status of files in the current checkout. If one or
360 ** more PATHS are specified, only changes among the named files and
@@ -1453,11 +1453,11 @@
1453 ** Usage: %fossil test-date-format DATE-STRING...
1454 **
1455 ** Convert the DATE-STRING into the standard format used in artifacts
1456 ** and display the result.
1457 */
1458 void test_date_format(void){
1459 int i;
1460 db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
1461 for(i=2; i<g.argc; i++){
1462 fossil_print("%s -> %s\n", g.argv[i], date_in_standard_format(g.argv[i]));
1463 }
@@ -1879,11 +1879,11 @@
1879 ** --no-settings Do not consider any glob settings.
1880 ** -v|--verbose Show per-file results for all pre-commit checks.
1881 **
1882 ** See also: commit, extras
1883 */
1884 void test_commit_warning(void){
1885 int rc = 0;
1886 int noSettings;
1887 int verboseFlag;
1888 Stmt q;
1889 noSettings = find_option("no-settings",0,0)!=0;
1890
--- src/checkin.c
+++ src/checkin.c
@@ -349,12 +349,12 @@
349 if( relPathOption ){ relativePaths = 1; }
350 return relativePaths;
351 }
352
353 /*
 
354 ** COMMAND: status
355 ** COMMAND: changes
356 **
357 ** Usage: %fossil changes|status ?OPTIONS? ?PATHS ...?
358 **
359 ** Report the change status of files in the current checkout. If one or
360 ** more PATHS are specified, only changes among the named files and
@@ -1453,11 +1453,11 @@
1453 ** Usage: %fossil test-date-format DATE-STRING...
1454 **
1455 ** Convert the DATE-STRING into the standard format used in artifacts
1456 ** and display the result.
1457 */
1458 void test_date_format_cmd(void){
1459 int i;
1460 db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
1461 for(i=2; i<g.argc; i++){
1462 fossil_print("%s -> %s\n", g.argv[i], date_in_standard_format(g.argv[i]));
1463 }
@@ -1879,11 +1879,11 @@
1879 ** --no-settings Do not consider any glob settings.
1880 ** -v|--verbose Show per-file results for all pre-commit checks.
1881 **
1882 ** See also: commit, extras
1883 */
1884 void test_commit_warning_cmd(void){
1885 int rc = 0;
1886 int noSettings;
1887 int verboseFlag;
1888 Stmt q;
1889 noSettings = find_option("no-settings",0,0)!=0;
1890
+1 -1
--- src/comformat.c
+++ src/comformat.c
@@ -568,11 +568,11 @@
568568
** --indent Number of spaces to indent (default (-1) is to
569569
** auto-detect). Zero means no indent.
570570
** -W|--width <num> Width of lines (default (-1) is to auto-detect).
571571
** Zero means no limit.
572572
*/
573
-void test_comment_format(void){
573
+void test_comment_format_cmd(void){
574574
const char *zWidth;
575575
const char *zIndent;
576576
const char *zPrefix;
577577
char *zText;
578578
char *zOrigText;
579579
--- src/comformat.c
+++ src/comformat.c
@@ -568,11 +568,11 @@
568 ** --indent Number of spaces to indent (default (-1) is to
569 ** auto-detect). Zero means no indent.
570 ** -W|--width <num> Width of lines (default (-1) is to auto-detect).
571 ** Zero means no limit.
572 */
573 void test_comment_format(void){
574 const char *zWidth;
575 const char *zIndent;
576 const char *zPrefix;
577 char *zText;
578 char *zOrigText;
579
--- src/comformat.c
+++ src/comformat.c
@@ -568,11 +568,11 @@
568 ** --indent Number of spaces to indent (default (-1) is to
569 ** auto-detect). Zero means no indent.
570 ** -W|--width <num> Width of lines (default (-1) is to auto-detect).
571 ** Zero means no limit.
572 */
573 void test_comment_format_cmd(void){
574 const char *zWidth;
575 const char *zIndent;
576 const char *zPrefix;
577 char *zText;
578 char *zOrigText;
579
+4 -4
--- src/content.c
+++ src/content.c
@@ -936,11 +936,11 @@
936936
** Options:
937937
**
938938
** --parse Parse all manifests, wikis, tickets, events, and
939939
** so forth, reporting any errors found.
940940
*/
941
-void test_integrity(void){
941
+void test_integrity_cmd(void){
942942
Stmt q;
943943
Blob content;
944944
int n1 = 0;
945945
int n2 = 0;
946946
int nErr = 0;
@@ -1046,11 +1046,11 @@
10461046
/*
10471047
** COMMAND: test-orphans
10481048
**
10491049
** Search the repository for orphaned artifacts.
10501050
*/
1051
-void test_orphans(void){
1051
+void test_orphans_cmd(void){
10521052
Stmt q;
10531053
int cnt = 0;
10541054
10551055
db_find_and_open_repository(0, 0);
10561056
db_multi_exec(
@@ -1155,11 +1155,11 @@
11551155
** Options:
11561156
**
11571157
** --notshunned Do not report shunned artifacts
11581158
** --quiet Only show output if there are errors
11591159
*/
1160
-void test_missing(void){
1160
+void test_missing_cmd(void){
11611161
Stmt q;
11621162
Blob content;
11631163
int nErr = 0;
11641164
int nArtifact = 0;
11651165
int i;
@@ -1227,11 +1227,11 @@
12271227
** the metadata.
12281228
**
12291229
** Note that the arguments are the integer raw RID values from the BLOB table,
12301230
** not artifact hashes or labels.
12311231
*/
1232
-void test_content_erase(void){
1232
+void test_content_erase_cmd(void){
12331233
int i;
12341234
Blob x;
12351235
char c;
12361236
Stmt q;
12371237
prompt_user("This command erases information from the repository and\n"
12381238
--- src/content.c
+++ src/content.c
@@ -936,11 +936,11 @@
936 ** Options:
937 **
938 ** --parse Parse all manifests, wikis, tickets, events, and
939 ** so forth, reporting any errors found.
940 */
941 void test_integrity(void){
942 Stmt q;
943 Blob content;
944 int n1 = 0;
945 int n2 = 0;
946 int nErr = 0;
@@ -1046,11 +1046,11 @@
1046 /*
1047 ** COMMAND: test-orphans
1048 **
1049 ** Search the repository for orphaned artifacts.
1050 */
1051 void test_orphans(void){
1052 Stmt q;
1053 int cnt = 0;
1054
1055 db_find_and_open_repository(0, 0);
1056 db_multi_exec(
@@ -1155,11 +1155,11 @@
1155 ** Options:
1156 **
1157 ** --notshunned Do not report shunned artifacts
1158 ** --quiet Only show output if there are errors
1159 */
1160 void test_missing(void){
1161 Stmt q;
1162 Blob content;
1163 int nErr = 0;
1164 int nArtifact = 0;
1165 int i;
@@ -1227,11 +1227,11 @@
1227 ** the metadata.
1228 **
1229 ** Note that the arguments are the integer raw RID values from the BLOB table,
1230 ** not artifact hashes or labels.
1231 */
1232 void test_content_erase(void){
1233 int i;
1234 Blob x;
1235 char c;
1236 Stmt q;
1237 prompt_user("This command erases information from the repository and\n"
1238
--- src/content.c
+++ src/content.c
@@ -936,11 +936,11 @@
936 ** Options:
937 **
938 ** --parse Parse all manifests, wikis, tickets, events, and
939 ** so forth, reporting any errors found.
940 */
941 void test_integrity_cmd(void){
942 Stmt q;
943 Blob content;
944 int n1 = 0;
945 int n2 = 0;
946 int nErr = 0;
@@ -1046,11 +1046,11 @@
1046 /*
1047 ** COMMAND: test-orphans
1048 **
1049 ** Search the repository for orphaned artifacts.
1050 */
1051 void test_orphans_cmd(void){
1052 Stmt q;
1053 int cnt = 0;
1054
1055 db_find_and_open_repository(0, 0);
1056 db_multi_exec(
@@ -1155,11 +1155,11 @@
1155 ** Options:
1156 **
1157 ** --notshunned Do not report shunned artifacts
1158 ** --quiet Only show output if there are errors
1159 */
1160 void test_missing_cmd(void){
1161 Stmt q;
1162 Blob content;
1163 int nErr = 0;
1164 int nArtifact = 0;
1165 int i;
@@ -1227,11 +1227,11 @@
1227 ** the metadata.
1228 **
1229 ** Note that the arguments are the integer raw RID values from the BLOB table,
1230 ** not artifact hashes or labels.
1231 */
1232 void test_content_erase_cmd(void){
1233 int i;
1234 Blob x;
1235 char c;
1236 Stmt q;
1237 prompt_user("This command erases information from the repository and\n"
1238
+2 -2
--- src/cookies.c
+++ src/cookies.c
@@ -201,16 +201,16 @@
201201
for(i=0; i<cookies.nParam && strcmp(zPName,cookies.aParam[i].zPName); i++){}
202202
return i<cookies.nParam ? cookies.aParam[i].zPValue : zDefault;
203203
}
204204
205205
/*
206
-** WEBPAGE: cookies
206
+** WEBPAGE: cookies
207207
**
208208
** Show the current display settings contained in the
209209
** "fossil_display_settings" cookie.
210210
*/
211
-void cookie_page(void){
211
+void cookies_page(void){
212212
int i;
213213
if( PB("clear") ){
214214
cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1);
215215
cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, "");
216216
}
217217
--- src/cookies.c
+++ src/cookies.c
@@ -201,16 +201,16 @@
201 for(i=0; i<cookies.nParam && strcmp(zPName,cookies.aParam[i].zPName); i++){}
202 return i<cookies.nParam ? cookies.aParam[i].zPValue : zDefault;
203 }
204
205 /*
206 ** WEBPAGE: cookies
207 **
208 ** Show the current display settings contained in the
209 ** "fossil_display_settings" cookie.
210 */
211 void cookie_page(void){
212 int i;
213 if( PB("clear") ){
214 cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1);
215 cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, "");
216 }
217
--- src/cookies.c
+++ src/cookies.c
@@ -201,16 +201,16 @@
201 for(i=0; i<cookies.nParam && strcmp(zPName,cookies.aParam[i].zPName); i++){}
202 return i<cookies.nParam ? cookies.aParam[i].zPValue : zDefault;
203 }
204
205 /*
206 ** WEBPAGE: cookies
207 **
208 ** Show the current display settings contained in the
209 ** "fossil_display_settings" cookie.
210 */
211 void cookies_page(void){
212 int i;
213 if( PB("clear") ){
214 cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1);
215 cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, "");
216 }
217
+7 -7
--- src/db.c
+++ src/db.c
@@ -605,11 +605,11 @@
605605
** COMMAND: test-db-exec-error
606606
**
607607
** Invoke the db_exec() interface with an erroneous SQL statement
608608
** in order to verify the error handling logic.
609609
*/
610
-void db_test_db_exec_cmd(void){
610
+void test_db_exec_error_cmd(void){
611611
Stmt err;
612612
db_find_and_open_repository(0,0);
613613
db_prepare(&err, "INSERT INTO repository.config(name) VALUES(NULL);");
614614
db_exec(&err);
615615
}
@@ -1900,11 +1900,11 @@
19001900
**
19011901
** Change the location of the repository database on a local check-out.
19021902
** Use this command to avoid having to close and reopen a checkout
19031903
** when relocating the repository database.
19041904
*/
1905
-void move_repo_cmd(void){
1905
+void test_move_repo_cmd(void){
19061906
Blob repo;
19071907
char *zRepo;
19081908
if( g.argc!=3 ){
19091909
usage("PATHNAME");
19101910
}
@@ -2950,11 +2950,11 @@
29502950
** times (the timestamp of the last checkin which modified
29512951
** them).
29522952
**
29532953
** See also: close
29542954
*/
2955
-void cmd_open(void){
2955
+void open_cmd(void){
29562956
int emptyFlag;
29572957
int keepFlag;
29582958
int forceMissingFlag;
29592959
int allowNested;
29602960
int allowSymlinks;
@@ -3733,11 +3733,11 @@
37333733
**
37343734
** --exact only consider exact name matches.
37353735
**
37363736
** See also: configuration
37373737
*/
3738
-void setting_cmd(void){
3738
+void settings_cmd(void){
37393739
int i;
37403740
int globalFlag = find_option("global","g",0)!=0;
37413741
int exactFlag = find_option("exact",0,0)!=0;
37423742
int unsetFlag = g.argv[1][0]=='u';
37433743
int nSetting;
@@ -3867,11 +3867,11 @@
38673867
** of SQLite. There is no big advantage to using WITHOUT ROWID in Fossil.
38683868
**
38693869
** Options:
38703870
** --dryrun | -n No changes. Just print what would happen.
38713871
*/
3872
-void test_without_rowid(void){
3872
+void test_without_rowid_cmd(void){
38733873
int i, j;
38743874
Stmt q;
38753875
Blob allSql;
38763876
int dryRun = find_option("dry-run", "n", 0)!=0;
38773877
for(i=2; i<g.argc; i++){
@@ -3969,11 +3969,11 @@
39693969
** Print the names of the various database files:
39703970
** (1) The main repository database
39713971
** (2) The local checkout database
39723972
** (3) The global configuration database
39733973
*/
3974
-void test_database_name_cmd(void){
3974
+void test_database_names_cmd(void){
39753975
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
39763976
fossil_print("Repository database: %s\n", g.zRepositoryName);
39773977
fossil_print("Local database: %s\n", g.zLocalDbName);
39783978
fossil_print("Config database: %s\n", g.zConfigDbName);
39793979
}
@@ -4048,11 +4048,11 @@
40484048
** Display the repository fingerprint using the supplied RCVID or
40494049
** using the latest RCVID if not is given on the command line.
40504050
** Show both the legacy and the newer version of the fingerprint,
40514051
** and the currently stored fingerprint if there is one.
40524052
*/
4053
-void test_fingerprint(void){
4053
+void test_fingerprint_cmd(void){
40544054
int rcvid = 0;
40554055
db_find_and_open_repository(OPEN_ANY_SCHEMA,0);
40564056
if( g.argc==3 ){
40574057
rcvid = atoi(g.argv[2]);
40584058
}else if( g.argc!=2 ){
40594059
--- src/db.c
+++ src/db.c
@@ -605,11 +605,11 @@
605 ** COMMAND: test-db-exec-error
606 **
607 ** Invoke the db_exec() interface with an erroneous SQL statement
608 ** in order to verify the error handling logic.
609 */
610 void db_test_db_exec_cmd(void){
611 Stmt err;
612 db_find_and_open_repository(0,0);
613 db_prepare(&err, "INSERT INTO repository.config(name) VALUES(NULL);");
614 db_exec(&err);
615 }
@@ -1900,11 +1900,11 @@
1900 **
1901 ** Change the location of the repository database on a local check-out.
1902 ** Use this command to avoid having to close and reopen a checkout
1903 ** when relocating the repository database.
1904 */
1905 void move_repo_cmd(void){
1906 Blob repo;
1907 char *zRepo;
1908 if( g.argc!=3 ){
1909 usage("PATHNAME");
1910 }
@@ -2950,11 +2950,11 @@
2950 ** times (the timestamp of the last checkin which modified
2951 ** them).
2952 **
2953 ** See also: close
2954 */
2955 void cmd_open(void){
2956 int emptyFlag;
2957 int keepFlag;
2958 int forceMissingFlag;
2959 int allowNested;
2960 int allowSymlinks;
@@ -3733,11 +3733,11 @@
3733 **
3734 ** --exact only consider exact name matches.
3735 **
3736 ** See also: configuration
3737 */
3738 void setting_cmd(void){
3739 int i;
3740 int globalFlag = find_option("global","g",0)!=0;
3741 int exactFlag = find_option("exact",0,0)!=0;
3742 int unsetFlag = g.argv[1][0]=='u';
3743 int nSetting;
@@ -3867,11 +3867,11 @@
3867 ** of SQLite. There is no big advantage to using WITHOUT ROWID in Fossil.
3868 **
3869 ** Options:
3870 ** --dryrun | -n No changes. Just print what would happen.
3871 */
3872 void test_without_rowid(void){
3873 int i, j;
3874 Stmt q;
3875 Blob allSql;
3876 int dryRun = find_option("dry-run", "n", 0)!=0;
3877 for(i=2; i<g.argc; i++){
@@ -3969,11 +3969,11 @@
3969 ** Print the names of the various database files:
3970 ** (1) The main repository database
3971 ** (2) The local checkout database
3972 ** (3) The global configuration database
3973 */
3974 void test_database_name_cmd(void){
3975 db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
3976 fossil_print("Repository database: %s\n", g.zRepositoryName);
3977 fossil_print("Local database: %s\n", g.zLocalDbName);
3978 fossil_print("Config database: %s\n", g.zConfigDbName);
3979 }
@@ -4048,11 +4048,11 @@
4048 ** Display the repository fingerprint using the supplied RCVID or
4049 ** using the latest RCVID if not is given on the command line.
4050 ** Show both the legacy and the newer version of the fingerprint,
4051 ** and the currently stored fingerprint if there is one.
4052 */
4053 void test_fingerprint(void){
4054 int rcvid = 0;
4055 db_find_and_open_repository(OPEN_ANY_SCHEMA,0);
4056 if( g.argc==3 ){
4057 rcvid = atoi(g.argv[2]);
4058 }else if( g.argc!=2 ){
4059
--- src/db.c
+++ src/db.c
@@ -605,11 +605,11 @@
605 ** COMMAND: test-db-exec-error
606 **
607 ** Invoke the db_exec() interface with an erroneous SQL statement
608 ** in order to verify the error handling logic.
609 */
610 void test_db_exec_error_cmd(void){
611 Stmt err;
612 db_find_and_open_repository(0,0);
613 db_prepare(&err, "INSERT INTO repository.config(name) VALUES(NULL);");
614 db_exec(&err);
615 }
@@ -1900,11 +1900,11 @@
1900 **
1901 ** Change the location of the repository database on a local check-out.
1902 ** Use this command to avoid having to close and reopen a checkout
1903 ** when relocating the repository database.
1904 */
1905 void test_move_repo_cmd(void){
1906 Blob repo;
1907 char *zRepo;
1908 if( g.argc!=3 ){
1909 usage("PATHNAME");
1910 }
@@ -2950,11 +2950,11 @@
2950 ** times (the timestamp of the last checkin which modified
2951 ** them).
2952 **
2953 ** See also: close
2954 */
2955 void open_cmd(void){
2956 int emptyFlag;
2957 int keepFlag;
2958 int forceMissingFlag;
2959 int allowNested;
2960 int allowSymlinks;
@@ -3733,11 +3733,11 @@
3733 **
3734 ** --exact only consider exact name matches.
3735 **
3736 ** See also: configuration
3737 */
3738 void settings_cmd(void){
3739 int i;
3740 int globalFlag = find_option("global","g",0)!=0;
3741 int exactFlag = find_option("exact",0,0)!=0;
3742 int unsetFlag = g.argv[1][0]=='u';
3743 int nSetting;
@@ -3867,11 +3867,11 @@
3867 ** of SQLite. There is no big advantage to using WITHOUT ROWID in Fossil.
3868 **
3869 ** Options:
3870 ** --dryrun | -n No changes. Just print what would happen.
3871 */
3872 void test_without_rowid_cmd(void){
3873 int i, j;
3874 Stmt q;
3875 Blob allSql;
3876 int dryRun = find_option("dry-run", "n", 0)!=0;
3877 for(i=2; i<g.argc; i++){
@@ -3969,11 +3969,11 @@
3969 ** Print the names of the various database files:
3970 ** (1) The main repository database
3971 ** (2) The local checkout database
3972 ** (3) The global configuration database
3973 */
3974 void test_database_names_cmd(void){
3975 db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
3976 fossil_print("Repository database: %s\n", g.zRepositoryName);
3977 fossil_print("Local database: %s\n", g.zLocalDbName);
3978 fossil_print("Config database: %s\n", g.zConfigDbName);
3979 }
@@ -4048,11 +4048,11 @@
4048 ** Display the repository fingerprint using the supplied RCVID or
4049 ** using the latest RCVID if not is given on the command line.
4050 ** Show both the legacy and the newer version of the fingerprint,
4051 ** and the currently stored fingerprint if there is one.
4052 */
4053 void test_fingerprint_cmd(void){
4054 int rcvid = 0;
4055 db_find_and_open_repository(OPEN_ANY_SCHEMA,0);
4056 if( g.argc==3 ){
4057 rcvid = atoi(g.argv[2]);
4058 }else if( g.argc!=2 ){
4059
+4 -4
--- src/deltacmd.c
+++ src/deltacmd.c
@@ -48,11 +48,11 @@
4848
** Usage: %fossil test-delta-create FILE1 FILE2 DELTA
4949
**
5050
** Create and output a delta that carries FILE1 into FILE2.
5151
** Store the result in DELTA.
5252
*/
53
-void delta_create_cmd(void){
53
+void test_delta_create_cmd(void){
5454
Blob orig, target, delta;
5555
if( g.argc!=5 ){
5656
usage("ORIGIN TARGET DELTA");
5757
}
5858
if( blob_read_from_file(&orig, g.argv[2], ExtFILE)<0 ){
@@ -76,11 +76,11 @@
7676
** Usage: %fossil test-delta-analyze FILE1 FILE2
7777
**
7878
** Create and a delta that carries FILE1 into FILE2. Print the
7979
** number bytes copied and the number of bytes inserted.
8080
*/
81
-void delta_analyze_cmd(void){
81
+void test_delta_analyze_cmd(void){
8282
Blob orig, target, delta;
8383
int nCopy = 0;
8484
int nInsert = 0;
8585
int sz1, sz2, sz3;
8686
if( g.argc!=4 ){
@@ -147,11 +147,11 @@
147147
**
148148
** Usage: %fossil test-delta-apply FILE1 DELTA
149149
**
150150
** Apply DELTA to FILE1 and output the result.
151151
*/
152
-void delta_apply_cmd(void){
152
+void test_delta_apply_cmd(void){
153153
Blob orig, target, delta;
154154
if( g.argc!=5 ){
155155
usage("ORIGIN DELTA TARGET");
156156
}
157157
if( blob_read_from_file(&orig, g.argv[2], ExtFILE)<0 ){
@@ -177,11 +177,11 @@
177177
**
178178
** Read two files named on the command-line. Create and apply deltas
179179
** going in both directions. Verify that the original files are
180180
** correctly recovered.
181181
*/
182
-void cmd_test_delta(void){
182
+void test_delta_cmd(void){
183183
Blob f1, f2; /* Original file content */
184184
Blob d12, d21; /* Deltas from f1->f2 and f2->f1 */
185185
Blob a1, a2; /* Recovered file content */
186186
if( g.argc!=4 ) usage("FILE1 FILE2");
187187
blob_read_from_file(&f1, g.argv[2], ExtFILE);
188188
--- src/deltacmd.c
+++ src/deltacmd.c
@@ -48,11 +48,11 @@
48 ** Usage: %fossil test-delta-create FILE1 FILE2 DELTA
49 **
50 ** Create and output a delta that carries FILE1 into FILE2.
51 ** Store the result in DELTA.
52 */
53 void delta_create_cmd(void){
54 Blob orig, target, delta;
55 if( g.argc!=5 ){
56 usage("ORIGIN TARGET DELTA");
57 }
58 if( blob_read_from_file(&orig, g.argv[2], ExtFILE)<0 ){
@@ -76,11 +76,11 @@
76 ** Usage: %fossil test-delta-analyze FILE1 FILE2
77 **
78 ** Create and a delta that carries FILE1 into FILE2. Print the
79 ** number bytes copied and the number of bytes inserted.
80 */
81 void delta_analyze_cmd(void){
82 Blob orig, target, delta;
83 int nCopy = 0;
84 int nInsert = 0;
85 int sz1, sz2, sz3;
86 if( g.argc!=4 ){
@@ -147,11 +147,11 @@
147 **
148 ** Usage: %fossil test-delta-apply FILE1 DELTA
149 **
150 ** Apply DELTA to FILE1 and output the result.
151 */
152 void delta_apply_cmd(void){
153 Blob orig, target, delta;
154 if( g.argc!=5 ){
155 usage("ORIGIN DELTA TARGET");
156 }
157 if( blob_read_from_file(&orig, g.argv[2], ExtFILE)<0 ){
@@ -177,11 +177,11 @@
177 **
178 ** Read two files named on the command-line. Create and apply deltas
179 ** going in both directions. Verify that the original files are
180 ** correctly recovered.
181 */
182 void cmd_test_delta(void){
183 Blob f1, f2; /* Original file content */
184 Blob d12, d21; /* Deltas from f1->f2 and f2->f1 */
185 Blob a1, a2; /* Recovered file content */
186 if( g.argc!=4 ) usage("FILE1 FILE2");
187 blob_read_from_file(&f1, g.argv[2], ExtFILE);
188
--- src/deltacmd.c
+++ src/deltacmd.c
@@ -48,11 +48,11 @@
48 ** Usage: %fossil test-delta-create FILE1 FILE2 DELTA
49 **
50 ** Create and output a delta that carries FILE1 into FILE2.
51 ** Store the result in DELTA.
52 */
53 void test_delta_create_cmd(void){
54 Blob orig, target, delta;
55 if( g.argc!=5 ){
56 usage("ORIGIN TARGET DELTA");
57 }
58 if( blob_read_from_file(&orig, g.argv[2], ExtFILE)<0 ){
@@ -76,11 +76,11 @@
76 ** Usage: %fossil test-delta-analyze FILE1 FILE2
77 **
78 ** Create and a delta that carries FILE1 into FILE2. Print the
79 ** number bytes copied and the number of bytes inserted.
80 */
81 void test_delta_analyze_cmd(void){
82 Blob orig, target, delta;
83 int nCopy = 0;
84 int nInsert = 0;
85 int sz1, sz2, sz3;
86 if( g.argc!=4 ){
@@ -147,11 +147,11 @@
147 **
148 ** Usage: %fossil test-delta-apply FILE1 DELTA
149 **
150 ** Apply DELTA to FILE1 and output the result.
151 */
152 void test_delta_apply_cmd(void){
153 Blob orig, target, delta;
154 if( g.argc!=5 ){
155 usage("ORIGIN DELTA TARGET");
156 }
157 if( blob_read_from_file(&orig, g.argv[2], ExtFILE)<0 ){
@@ -177,11 +177,11 @@
177 **
178 ** Read two files named on the command-line. Create and apply deltas
179 ** going in both directions. Verify that the original files are
180 ** correctly recovered.
181 */
182 void test_delta_cmd(void){
183 Blob f1, f2; /* Original file content */
184 Blob d12, d21; /* Deltas from f1->f2 and f2->f1 */
185 Blob a1, a2; /* Recovered file content */
186 if( g.argc!=4 ) usage("FILE1 FILE2");
187 blob_read_from_file(&f1, g.argv[2], ExtFILE);
188
+1 -1
--- src/diff.c
+++ src/diff.c
@@ -2385,11 +2385,11 @@
23852385
** check-in over the entire repository is used.
23862386
** Specify "origin=trunk" or similar for a reverse
23872387
** annotation
23882388
** w=BOOLEAN Ignore whitespace
23892389
*/
2390
-void annotation_page(void){
2390
+void annotate_page(void){
23912391
int i;
23922392
const char *zLimit; /* Depth limit */
23932393
u64 annFlags = DIFF_STRIP_EOLCR;
23942394
int showLog; /* True to display the log */
23952395
int fileVers; /* Show file version instead of check-in versions */
23962396
--- src/diff.c
+++ src/diff.c
@@ -2385,11 +2385,11 @@
2385 ** check-in over the entire repository is used.
2386 ** Specify "origin=trunk" or similar for a reverse
2387 ** annotation
2388 ** w=BOOLEAN Ignore whitespace
2389 */
2390 void annotation_page(void){
2391 int i;
2392 const char *zLimit; /* Depth limit */
2393 u64 annFlags = DIFF_STRIP_EOLCR;
2394 int showLog; /* True to display the log */
2395 int fileVers; /* Show file version instead of check-in versions */
2396
--- src/diff.c
+++ src/diff.c
@@ -2385,11 +2385,11 @@
2385 ** check-in over the entire repository is used.
2386 ** Specify "origin=trunk" or similar for a reverse
2387 ** annotation
2388 ** w=BOOLEAN Ignore whitespace
2389 */
2390 void annotate_page(void){
2391 int i;
2392 const char *zLimit; /* Depth limit */
2393 u64 annFlags = DIFF_STRIP_EOLCR;
2394 int showLog; /* True to display the log */
2395 int fileVers; /* Show file version instead of check-in versions */
2396
+1 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -498,11 +498,11 @@
498498
/*
499499
** COMMAND: test-list-webpage
500500
**
501501
** List all web pages.
502502
*/
503
-void cmd_test_webpage_list(void){
503
+void test_list_webpage_cmd(void){
504504
int i, nCmd;
505505
const char *aCmd[MX_COMMAND];
506506
for(i=nCmd=0; i<MX_COMMAND; i++){
507507
if(CMDFLAG_WEBPAGE & aCommand[i].eCmdFlags){
508508
aCmd[nCmd++] = aCommand[i].zName;
509509
--- src/dispatch.c
+++ src/dispatch.c
@@ -498,11 +498,11 @@
498 /*
499 ** COMMAND: test-list-webpage
500 **
501 ** List all web pages.
502 */
503 void cmd_test_webpage_list(void){
504 int i, nCmd;
505 const char *aCmd[MX_COMMAND];
506 for(i=nCmd=0; i<MX_COMMAND; i++){
507 if(CMDFLAG_WEBPAGE & aCommand[i].eCmdFlags){
508 aCmd[nCmd++] = aCommand[i].zName;
509
--- src/dispatch.c
+++ src/dispatch.c
@@ -498,11 +498,11 @@
498 /*
499 ** COMMAND: test-list-webpage
500 **
501 ** List all web pages.
502 */
503 void test_list_webpage_cmd(void){
504 int i, nCmd;
505 const char *aCmd[MX_COMMAND];
506 for(i=nCmd=0; i<MX_COMMAND; i++){
507 if(CMDFLAG_WEBPAGE & aCommand[i].eCmdFlags){
508 aCmd[nCmd++] = aCommand[i].zName;
509
+3 -3
--- src/doc.c
+++ src/doc.c
@@ -459,11 +459,11 @@
459459
**
460460
** If Fossil is compiled with -DFOSSIL_DEBUG then the "mimetype-test"
461461
** filename is special and verifies the integrity of the mimetype table.
462462
** It should return "ok".
463463
*/
464
-void mimetype_test_cmd(void){
464
+void test_mimetype_cmd(void){
465465
int i;
466466
mimetype_verify();
467467
db_find_and_open_repository(0, 0);
468468
for(i=2; i<g.argc; i++){
469469
fossil_print("%-20s -> %s\n", g.argv[i], mimetype_from_name(g.argv[i]));
@@ -804,12 +804,12 @@
804804
}
805805
}
806806
807807
808808
/*
809
-** WEBPAGE: uv
810809
** WEBPAGE: doc
810
+** WEBPAGE: uv
811811
** URL: /uv/FILE
812812
** URL: /doc/CHECKIN/FILE
813813
**
814814
** CHECKIN can be either tag or hash prefix or timestamp identifying a
815815
** particular check, or the name of a branch (meaning the most recent
@@ -1159,11 +1159,11 @@
11591159
**
11601160
** Query parameters:
11611161
**
11621162
** s=PATTERN Search for PATTERN
11631163
*/
1164
-void doc_search_page(void){
1164
+void docsrch_page(void){
11651165
login_check_credentials();
11661166
style_header("Document Search");
11671167
search_screen(SRCH_DOC, 0);
11681168
style_footer();
11691169
}
11701170
--- src/doc.c
+++ src/doc.c
@@ -459,11 +459,11 @@
459 **
460 ** If Fossil is compiled with -DFOSSIL_DEBUG then the "mimetype-test"
461 ** filename is special and verifies the integrity of the mimetype table.
462 ** It should return "ok".
463 */
464 void mimetype_test_cmd(void){
465 int i;
466 mimetype_verify();
467 db_find_and_open_repository(0, 0);
468 for(i=2; i<g.argc; i++){
469 fossil_print("%-20s -> %s\n", g.argv[i], mimetype_from_name(g.argv[i]));
@@ -804,12 +804,12 @@
804 }
805 }
806
807
808 /*
809 ** WEBPAGE: uv
810 ** WEBPAGE: doc
 
811 ** URL: /uv/FILE
812 ** URL: /doc/CHECKIN/FILE
813 **
814 ** CHECKIN can be either tag or hash prefix or timestamp identifying a
815 ** particular check, or the name of a branch (meaning the most recent
@@ -1159,11 +1159,11 @@
1159 **
1160 ** Query parameters:
1161 **
1162 ** s=PATTERN Search for PATTERN
1163 */
1164 void doc_search_page(void){
1165 login_check_credentials();
1166 style_header("Document Search");
1167 search_screen(SRCH_DOC, 0);
1168 style_footer();
1169 }
1170
--- src/doc.c
+++ src/doc.c
@@ -459,11 +459,11 @@
459 **
460 ** If Fossil is compiled with -DFOSSIL_DEBUG then the "mimetype-test"
461 ** filename is special and verifies the integrity of the mimetype table.
462 ** It should return "ok".
463 */
464 void test_mimetype_cmd(void){
465 int i;
466 mimetype_verify();
467 db_find_and_open_repository(0, 0);
468 for(i=2; i<g.argc; i++){
469 fossil_print("%-20s -> %s\n", g.argv[i], mimetype_from_name(g.argv[i]));
@@ -804,12 +804,12 @@
804 }
805 }
806
807
808 /*
 
809 ** WEBPAGE: doc
810 ** WEBPAGE: uv
811 ** URL: /uv/FILE
812 ** URL: /doc/CHECKIN/FILE
813 **
814 ** CHECKIN can be either tag or hash prefix or timestamp identifying a
815 ** particular check, or the name of a branch (meaning the most recent
@@ -1159,11 +1159,11 @@
1159 **
1160 ** Query parameters:
1161 **
1162 ** s=PATTERN Search for PATTERN
1163 */
1164 void docsrch_page(void){
1165 login_check_credentials();
1166 style_header("Document Search");
1167 search_screen(SRCH_DOC, 0);
1168 style_footer();
1169 }
1170
+2 -2
--- src/export.c
+++ src/export.c
@@ -837,11 +837,11 @@
837837
** COMMAND: test-topological-sort
838838
**
839839
** Invoke the topological_sort_checkins() interface for testing
840840
** purposes.
841841
*/
842
-void test_topological_sort(void){
842
+void test_topological_sort_cmd(void){
843843
int n;
844844
db_find_and_open_repository(0, 0);
845845
n = topological_sort_checkins(1);
846846
fossil_print("%d reorderings required\n", n);
847847
}
@@ -1662,11 +1662,11 @@
16621662
**
16631663
** fossil git status
16641664
**
16651665
** Show the status of the current Git mirror, if there is one.
16661666
*/
1667
-void gitmirror_command(void){
1667
+void gitmirror_cmd(void){
16681668
char *zCmd;
16691669
int nCmd;
16701670
if( g.argc<3 ){
16711671
usage("export ARGS...");
16721672
}
16731673
--- src/export.c
+++ src/export.c
@@ -837,11 +837,11 @@
837 ** COMMAND: test-topological-sort
838 **
839 ** Invoke the topological_sort_checkins() interface for testing
840 ** purposes.
841 */
842 void test_topological_sort(void){
843 int n;
844 db_find_and_open_repository(0, 0);
845 n = topological_sort_checkins(1);
846 fossil_print("%d reorderings required\n", n);
847 }
@@ -1662,11 +1662,11 @@
1662 **
1663 ** fossil git status
1664 **
1665 ** Show the status of the current Git mirror, if there is one.
1666 */
1667 void gitmirror_command(void){
1668 char *zCmd;
1669 int nCmd;
1670 if( g.argc<3 ){
1671 usage("export ARGS...");
1672 }
1673
--- src/export.c
+++ src/export.c
@@ -837,11 +837,11 @@
837 ** COMMAND: test-topological-sort
838 **
839 ** Invoke the topological_sort_checkins() interface for testing
840 ** purposes.
841 */
842 void test_topological_sort_cmd(void){
843 int n;
844 db_find_and_open_repository(0, 0);
845 n = topological_sort_checkins(1);
846 fossil_print("%d reorderings required\n", n);
847 }
@@ -1662,11 +1662,11 @@
1662 **
1663 ** fossil git status
1664 **
1665 ** Show the status of the current Git mirror, if there is one.
1666 */
1667 void gitmirror_cmd(void){
1668 char *zCmd;
1669 int nCmd;
1670 if( g.argc<3 ){
1671 usage("export ARGS...");
1672 }
1673
+1 -1
--- src/extcgi.c
+++ src/extcgi.c
@@ -383,11 +383,11 @@
383383
/*
384384
** WEBPAGE: extfilelist
385385
**
386386
** List all files in the extension CGI document root and its subfolders.
387387
*/
388
-void ext_filelist_page(void){
388
+void extfilelist_page(void){
389389
Stmt q;
390390
login_check_credentials();
391391
if( !g.perm.Admin ){
392392
login_needed(0);
393393
return;
394394
--- src/extcgi.c
+++ src/extcgi.c
@@ -383,11 +383,11 @@
383 /*
384 ** WEBPAGE: extfilelist
385 **
386 ** List all files in the extension CGI document root and its subfolders.
387 */
388 void ext_filelist_page(void){
389 Stmt q;
390 login_check_credentials();
391 if( !g.perm.Admin ){
392 login_needed(0);
393 return;
394
--- src/extcgi.c
+++ src/extcgi.c
@@ -383,11 +383,11 @@
383 /*
384 ** WEBPAGE: extfilelist
385 **
386 ** List all files in the extension CGI document root and its subfolders.
387 */
388 void extfilelist_page(void){
389 Stmt q;
390 login_check_credentials();
391 if( !g.perm.Admin ){
392 login_needed(0);
393 return;
394
+10 -10
--- src/file.c
+++ src/file.c
@@ -511,11 +511,11 @@
511511
**
512512
** Make a copy of the file at SOURCE into a new name DESTINATION. Any
513513
** directories in the path leading up to DESTINATION that do not already
514514
** exist are created automatically.
515515
*/
516
-void test_file_copy(void){
516
+void test_file_copy_cmd(void){
517517
if( g.argc!=4 ){
518518
fossil_fatal("Usage: %s test-file-copy SOURCE DESTINATION", g.argv[0]);
519519
}
520520
file_copy(g.argv[2], g.argv[3]);
521521
}
@@ -578,11 +578,11 @@
578578
**
579579
** Usage: %fossil test-set-mtime FILENAME DATE/TIME
580580
**
581581
** Sets the mtime of the named file to the date/time shown.
582582
*/
583
-void test_set_mtime(void){
583
+void test_set_mtime_cmd(void){
584584
const char *zFile;
585585
char *zDate;
586586
i64 iMTime;
587587
if( g.argc!=4 ){
588588
usage("FILENAME DATE/TIME");
@@ -734,11 +734,11 @@
734734
** Usage: %fossil test-is-normal-dir NAME...
735735
**
736736
** Returns non-zero if the specified names represent real directories, i.e.
737737
** not junctions, symbolic links, etc.
738738
*/
739
-void test_is_normal_dir(void){
739
+void test_is_normal_dir_cmd(void){
740740
int i;
741741
for(i=2; i<g.argc; i++){
742742
wchar_t *zMbcs = fossil_utf8_to_path(g.argv[i], 1);
743743
fossil_print("ATTRS \"%s\" -> %lx\n", g.argv[i], GetFileAttributesW(zMbcs));
744744
fossil_print("ISDIR \"%s\" -> %d\n", g.argv[i], file_is_normal_dir(zMbcs));
@@ -996,11 +996,11 @@
996996
**
997997
** Usage: %fossil test-simplify-name FILENAME...
998998
**
999999
** Print the simplified versions of each FILENAME.
10001000
*/
1001
-void cmd_test_simplify_name(void){
1001
+void test_simplify_name_cmd(void){
10021002
int i;
10031003
char *z;
10041004
for(i=2; i<g.argc; i++){
10051005
z = mprintf("%s", g.argv[i]);
10061006
fossil_print("[%s] -> ", z);
@@ -1184,11 +1184,11 @@
11841184
** --allow-symlinks BOOLEAN Temporarily turn allow-symlinks on/off
11851185
** --open-config Open the configuration database first.
11861186
** --slash Trailing slashes, if any, are retained.
11871187
** --reset Reset cached stat() info for each file.
11881188
*/
1189
-void cmd_test_file_environment(void){
1189
+void test_file_environment_cmd(void){
11901190
int i;
11911191
int slashFlag = find_option("slash",0,0)!=0;
11921192
int resetFlag = find_option("reset",0,0)!=0;
11931193
const char *zAllow = find_option("allow-symlinks",0,1);
11941194
if( find_option("open-config", 0, 0)!=0 ){
@@ -1214,11 +1214,11 @@
12141214
** Usage: %fossil test-canonical-name FILENAME...
12151215
**
12161216
** Test the operation of the canonical name generator.
12171217
** Also test Fossil's ability to measure attributes of a file.
12181218
*/
1219
-void cmd_test_canonical_name(void){
1219
+void test_canonical_name_cmd(void){
12201220
int i;
12211221
Blob x;
12221222
int slashFlag = find_option("slash",0,0)!=0;
12231223
blob_zero(&x);
12241224
for(i=2; i<g.argc; i++){
@@ -1349,11 +1349,11 @@
13491349
/*
13501350
** COMMAND: test-relative-name
13511351
**
13521352
** Test the operation of the relative name generator.
13531353
*/
1354
-void cmd_test_relative_name(void){
1354
+void test_relative_name_cmd(void){
13551355
int i;
13561356
Blob x;
13571357
int slashFlag = find_option("slash",0,0)!=0;
13581358
blob_zero(&x);
13591359
for(i=2; i<g.argc; i++){
@@ -1468,11 +1468,11 @@
14681468
** Options:
14691469
** --absolute Return an absolute path instead of a relative one.
14701470
** --case-sensitive B Enable or disable case-sensitive filenames. B is
14711471
** a boolean: "yes", "no", "true", "false", etc.
14721472
*/
1473
-void cmd_test_tree_name(void){
1473
+void test_tree_name_cmd(void){
14741474
int i;
14751475
Blob x;
14761476
int absoluteFlag = find_option("absolute",0,0)!=0;
14771477
db_find_and_open_repository(0,0);
14781478
blob_zero(&x);
@@ -1661,11 +1661,11 @@
16611661
**
16621662
** Generate temporary filenames derived from BASENAME. Use the --time
16631663
** option to generate temp names based on the time of day. If --tag NAME
16641664
** is specified, try to use NAME as the differentiator in the temp file.
16651665
*/
1666
-void file_test_tempname(void){
1666
+void test_tempname_cmd(void){
16671667
int i;
16681668
const char *zSuffix = find_option("time",0,1);
16691669
Blob x = BLOB_INITIALIZER;
16701670
char *z;
16711671
const char *zTag = find_option("tag",0,1);
@@ -1893,11 +1893,11 @@
18931893
** COMMAND: test-valid-for-windows
18941894
** Usage: fossil test-valid-for-windows FILENAME ....
18951895
**
18961896
** Show which filenames are not valid for Windows
18971897
*/
1898
-void file_test_valid_for_windows(void){
1898
+void test_valid_for_windows_cmd(void){
18991899
int i;
19001900
for(i=2; i<g.argc; i++){
19011901
fossil_print("%s %s\n", file_is_win_reserved(g.argv[i]), g.argv[i]);
19021902
}
19031903
}
19041904
--- src/file.c
+++ src/file.c
@@ -511,11 +511,11 @@
511 **
512 ** Make a copy of the file at SOURCE into a new name DESTINATION. Any
513 ** directories in the path leading up to DESTINATION that do not already
514 ** exist are created automatically.
515 */
516 void test_file_copy(void){
517 if( g.argc!=4 ){
518 fossil_fatal("Usage: %s test-file-copy SOURCE DESTINATION", g.argv[0]);
519 }
520 file_copy(g.argv[2], g.argv[3]);
521 }
@@ -578,11 +578,11 @@
578 **
579 ** Usage: %fossil test-set-mtime FILENAME DATE/TIME
580 **
581 ** Sets the mtime of the named file to the date/time shown.
582 */
583 void test_set_mtime(void){
584 const char *zFile;
585 char *zDate;
586 i64 iMTime;
587 if( g.argc!=4 ){
588 usage("FILENAME DATE/TIME");
@@ -734,11 +734,11 @@
734 ** Usage: %fossil test-is-normal-dir NAME...
735 **
736 ** Returns non-zero if the specified names represent real directories, i.e.
737 ** not junctions, symbolic links, etc.
738 */
739 void test_is_normal_dir(void){
740 int i;
741 for(i=2; i<g.argc; i++){
742 wchar_t *zMbcs = fossil_utf8_to_path(g.argv[i], 1);
743 fossil_print("ATTRS \"%s\" -> %lx\n", g.argv[i], GetFileAttributesW(zMbcs));
744 fossil_print("ISDIR \"%s\" -> %d\n", g.argv[i], file_is_normal_dir(zMbcs));
@@ -996,11 +996,11 @@
996 **
997 ** Usage: %fossil test-simplify-name FILENAME...
998 **
999 ** Print the simplified versions of each FILENAME.
1000 */
1001 void cmd_test_simplify_name(void){
1002 int i;
1003 char *z;
1004 for(i=2; i<g.argc; i++){
1005 z = mprintf("%s", g.argv[i]);
1006 fossil_print("[%s] -> ", z);
@@ -1184,11 +1184,11 @@
1184 ** --allow-symlinks BOOLEAN Temporarily turn allow-symlinks on/off
1185 ** --open-config Open the configuration database first.
1186 ** --slash Trailing slashes, if any, are retained.
1187 ** --reset Reset cached stat() info for each file.
1188 */
1189 void cmd_test_file_environment(void){
1190 int i;
1191 int slashFlag = find_option("slash",0,0)!=0;
1192 int resetFlag = find_option("reset",0,0)!=0;
1193 const char *zAllow = find_option("allow-symlinks",0,1);
1194 if( find_option("open-config", 0, 0)!=0 ){
@@ -1214,11 +1214,11 @@
1214 ** Usage: %fossil test-canonical-name FILENAME...
1215 **
1216 ** Test the operation of the canonical name generator.
1217 ** Also test Fossil's ability to measure attributes of a file.
1218 */
1219 void cmd_test_canonical_name(void){
1220 int i;
1221 Blob x;
1222 int slashFlag = find_option("slash",0,0)!=0;
1223 blob_zero(&x);
1224 for(i=2; i<g.argc; i++){
@@ -1349,11 +1349,11 @@
1349 /*
1350 ** COMMAND: test-relative-name
1351 **
1352 ** Test the operation of the relative name generator.
1353 */
1354 void cmd_test_relative_name(void){
1355 int i;
1356 Blob x;
1357 int slashFlag = find_option("slash",0,0)!=0;
1358 blob_zero(&x);
1359 for(i=2; i<g.argc; i++){
@@ -1468,11 +1468,11 @@
1468 ** Options:
1469 ** --absolute Return an absolute path instead of a relative one.
1470 ** --case-sensitive B Enable or disable case-sensitive filenames. B is
1471 ** a boolean: "yes", "no", "true", "false", etc.
1472 */
1473 void cmd_test_tree_name(void){
1474 int i;
1475 Blob x;
1476 int absoluteFlag = find_option("absolute",0,0)!=0;
1477 db_find_and_open_repository(0,0);
1478 blob_zero(&x);
@@ -1661,11 +1661,11 @@
1661 **
1662 ** Generate temporary filenames derived from BASENAME. Use the --time
1663 ** option to generate temp names based on the time of day. If --tag NAME
1664 ** is specified, try to use NAME as the differentiator in the temp file.
1665 */
1666 void file_test_tempname(void){
1667 int i;
1668 const char *zSuffix = find_option("time",0,1);
1669 Blob x = BLOB_INITIALIZER;
1670 char *z;
1671 const char *zTag = find_option("tag",0,1);
@@ -1893,11 +1893,11 @@
1893 ** COMMAND: test-valid-for-windows
1894 ** Usage: fossil test-valid-for-windows FILENAME ....
1895 **
1896 ** Show which filenames are not valid for Windows
1897 */
1898 void file_test_valid_for_windows(void){
1899 int i;
1900 for(i=2; i<g.argc; i++){
1901 fossil_print("%s %s\n", file_is_win_reserved(g.argv[i]), g.argv[i]);
1902 }
1903 }
1904
--- src/file.c
+++ src/file.c
@@ -511,11 +511,11 @@
511 **
512 ** Make a copy of the file at SOURCE into a new name DESTINATION. Any
513 ** directories in the path leading up to DESTINATION that do not already
514 ** exist are created automatically.
515 */
516 void test_file_copy_cmd(void){
517 if( g.argc!=4 ){
518 fossil_fatal("Usage: %s test-file-copy SOURCE DESTINATION", g.argv[0]);
519 }
520 file_copy(g.argv[2], g.argv[3]);
521 }
@@ -578,11 +578,11 @@
578 **
579 ** Usage: %fossil test-set-mtime FILENAME DATE/TIME
580 **
581 ** Sets the mtime of the named file to the date/time shown.
582 */
583 void test_set_mtime_cmd(void){
584 const char *zFile;
585 char *zDate;
586 i64 iMTime;
587 if( g.argc!=4 ){
588 usage("FILENAME DATE/TIME");
@@ -734,11 +734,11 @@
734 ** Usage: %fossil test-is-normal-dir NAME...
735 **
736 ** Returns non-zero if the specified names represent real directories, i.e.
737 ** not junctions, symbolic links, etc.
738 */
739 void test_is_normal_dir_cmd(void){
740 int i;
741 for(i=2; i<g.argc; i++){
742 wchar_t *zMbcs = fossil_utf8_to_path(g.argv[i], 1);
743 fossil_print("ATTRS \"%s\" -> %lx\n", g.argv[i], GetFileAttributesW(zMbcs));
744 fossil_print("ISDIR \"%s\" -> %d\n", g.argv[i], file_is_normal_dir(zMbcs));
@@ -996,11 +996,11 @@
996 **
997 ** Usage: %fossil test-simplify-name FILENAME...
998 **
999 ** Print the simplified versions of each FILENAME.
1000 */
1001 void test_simplify_name_cmd(void){
1002 int i;
1003 char *z;
1004 for(i=2; i<g.argc; i++){
1005 z = mprintf("%s", g.argv[i]);
1006 fossil_print("[%s] -> ", z);
@@ -1184,11 +1184,11 @@
1184 ** --allow-symlinks BOOLEAN Temporarily turn allow-symlinks on/off
1185 ** --open-config Open the configuration database first.
1186 ** --slash Trailing slashes, if any, are retained.
1187 ** --reset Reset cached stat() info for each file.
1188 */
1189 void test_file_environment_cmd(void){
1190 int i;
1191 int slashFlag = find_option("slash",0,0)!=0;
1192 int resetFlag = find_option("reset",0,0)!=0;
1193 const char *zAllow = find_option("allow-symlinks",0,1);
1194 if( find_option("open-config", 0, 0)!=0 ){
@@ -1214,11 +1214,11 @@
1214 ** Usage: %fossil test-canonical-name FILENAME...
1215 **
1216 ** Test the operation of the canonical name generator.
1217 ** Also test Fossil's ability to measure attributes of a file.
1218 */
1219 void test_canonical_name_cmd(void){
1220 int i;
1221 Blob x;
1222 int slashFlag = find_option("slash",0,0)!=0;
1223 blob_zero(&x);
1224 for(i=2; i<g.argc; i++){
@@ -1349,11 +1349,11 @@
1349 /*
1350 ** COMMAND: test-relative-name
1351 **
1352 ** Test the operation of the relative name generator.
1353 */
1354 void test_relative_name_cmd(void){
1355 int i;
1356 Blob x;
1357 int slashFlag = find_option("slash",0,0)!=0;
1358 blob_zero(&x);
1359 for(i=2; i<g.argc; i++){
@@ -1468,11 +1468,11 @@
1468 ** Options:
1469 ** --absolute Return an absolute path instead of a relative one.
1470 ** --case-sensitive B Enable or disable case-sensitive filenames. B is
1471 ** a boolean: "yes", "no", "true", "false", etc.
1472 */
1473 void test_tree_name_cmd(void){
1474 int i;
1475 Blob x;
1476 int absoluteFlag = find_option("absolute",0,0)!=0;
1477 db_find_and_open_repository(0,0);
1478 blob_zero(&x);
@@ -1661,11 +1661,11 @@
1661 **
1662 ** Generate temporary filenames derived from BASENAME. Use the --time
1663 ** option to generate temp names based on the time of day. If --tag NAME
1664 ** is specified, try to use NAME as the differentiator in the temp file.
1665 */
1666 void test_tempname_cmd(void){
1667 int i;
1668 const char *zSuffix = find_option("time",0,1);
1669 Blob x = BLOB_INITIALIZER;
1670 char *z;
1671 const char *zTag = find_option("tag",0,1);
@@ -1893,11 +1893,11 @@
1893 ** COMMAND: test-valid-for-windows
1894 ** Usage: fossil test-valid-for-windows FILENAME ....
1895 **
1896 ** Show which filenames are not valid for Windows
1897 */
1898 void test_valid_for_windows_cmd(void){
1899 int i;
1900 for(i=2; i<g.argc; i++){
1901 fossil_print("%s %s\n", file_is_win_reserved(g.argv[i]), g.argv[i]);
1902 }
1903 }
1904
+1 -1
--- src/forum.c
+++ src/forum.c
@@ -253,11 +253,11 @@
253253
** Display a summary of all messages on a thread THREADID. If the
254254
** THREADID argument is omitted, then show a list of all threads.
255255
**
256256
** This command is intended for testing an analysis only.
257257
*/
258
-void forumthread_cmd(void){
258
+void test_forumthread_cmd(void){
259259
int fpid;
260260
int froot;
261261
const char *zName;
262262
ForumThread *pThread;
263263
ForumEntry *p;
264264
--- src/forum.c
+++ src/forum.c
@@ -253,11 +253,11 @@
253 ** Display a summary of all messages on a thread THREADID. If the
254 ** THREADID argument is omitted, then show a list of all threads.
255 **
256 ** This command is intended for testing an analysis only.
257 */
258 void forumthread_cmd(void){
259 int fpid;
260 int froot;
261 const char *zName;
262 ForumThread *pThread;
263 ForumEntry *p;
264
--- src/forum.c
+++ src/forum.c
@@ -253,11 +253,11 @@
253 ** Display a summary of all messages on a thread THREADID. If the
254 ** THREADID argument is omitted, then show a list of all threads.
255 **
256 ** This command is intended for testing an analysis only.
257 */
258 void test_forumthread_cmd(void){
259 int fpid;
260 int froot;
261 const char *zName;
262 ForumThread *pThread;
263 ForumEntry *p;
264
+1 -1
--- src/fuzz.c
+++ src/fuzz.c
@@ -125,11 +125,11 @@
125125
**
126126
** wiki Fuzz the Fossil-wiki translator
127127
** markdown Fuzz the markdown translator
128128
** artifact Fuzz the artifact parser
129129
*/
130
-void fuzz_command(void){
130
+void test_fuzz_cmd(void){
131131
Blob in;
132132
int i;
133133
fuzzer_options();
134134
verify_all_options();
135135
for(i=2; i<g.argc; i++){
136136
--- src/fuzz.c
+++ src/fuzz.c
@@ -125,11 +125,11 @@
125 **
126 ** wiki Fuzz the Fossil-wiki translator
127 ** markdown Fuzz the markdown translator
128 ** artifact Fuzz the artifact parser
129 */
130 void fuzz_command(void){
131 Blob in;
132 int i;
133 fuzzer_options();
134 verify_all_options();
135 for(i=2; i<g.argc; i++){
136
--- src/fuzz.c
+++ src/fuzz.c
@@ -125,11 +125,11 @@
125 **
126 ** wiki Fuzz the Fossil-wiki translator
127 ** markdown Fuzz the markdown translator
128 ** artifact Fuzz the artifact parser
129 */
130 void test_fuzz_cmd(void){
131 Blob in;
132 int i;
133 fuzzer_options();
134 verify_all_options();
135 for(i=2; i<g.argc; i++){
136
+1 -1
--- src/glob.c
+++ src/glob.c
@@ -177,11 +177,11 @@
177177
**
178178
** If PATTERN begins with "@" the rest of the pattern is understood
179179
** to be a setting name (such as binary-glob, crln-glob, or encoding-glob)
180180
** and the value of that setting is used as the actually glob pattern.
181181
*/
182
-void glob_test_cmd(void){
182
+void test_glob_cmd(void){
183183
Glob *pGlob;
184184
int i;
185185
char *zPattern;
186186
if( g.argc<4 ) usage("PATTERN STRING ...");
187187
zPattern = g.argv[2];
188188
--- src/glob.c
+++ src/glob.c
@@ -177,11 +177,11 @@
177 **
178 ** If PATTERN begins with "@" the rest of the pattern is understood
179 ** to be a setting name (such as binary-glob, crln-glob, or encoding-glob)
180 ** and the value of that setting is used as the actually glob pattern.
181 */
182 void glob_test_cmd(void){
183 Glob *pGlob;
184 int i;
185 char *zPattern;
186 if( g.argc<4 ) usage("PATTERN STRING ...");
187 zPattern = g.argv[2];
188
--- src/glob.c
+++ src/glob.c
@@ -177,11 +177,11 @@
177 **
178 ** If PATTERN begins with "@" the rest of the pattern is understood
179 ** to be a setting name (such as binary-glob, crln-glob, or encoding-glob)
180 ** and the value of that setting is used as the actually glob pattern.
181 */
182 void test_glob_cmd(void){
183 Glob *pGlob;
184 int i;
185 char *zPattern;
186 if( g.argc<4 ) usage("PATTERN STRING ...");
187 zPattern = g.argv[2];
188
+1 -1
--- src/hname.c
+++ src/hname.c
@@ -256,11 +256,11 @@
256256
** The default hash policy for existing repositories is "auto", which will
257257
** immediately promote to "sha3" if the repository contains one or more
258258
** artifacts with SHA3 names. The default hash policy for new repositories
259259
** is "shun-sha1".
260260
*/
261
-void hash_policy_command(void){
261
+void hash_policy_cmd(void){
262262
int i;
263263
db_find_and_open_repository(0, 0);
264264
if( g.argc!=2 && g.argc!=3 ) usage("?NEW-POLICY?");
265265
if( g.argc==2 ){
266266
fossil_print("%s\n", azPolicy[g.eHashPolicy]);
267267
--- src/hname.c
+++ src/hname.c
@@ -256,11 +256,11 @@
256 ** The default hash policy for existing repositories is "auto", which will
257 ** immediately promote to "sha3" if the repository contains one or more
258 ** artifacts with SHA3 names. The default hash policy for new repositories
259 ** is "shun-sha1".
260 */
261 void hash_policy_command(void){
262 int i;
263 db_find_and_open_repository(0, 0);
264 if( g.argc!=2 && g.argc!=3 ) usage("?NEW-POLICY?");
265 if( g.argc==2 ){
266 fossil_print("%s\n", azPolicy[g.eHashPolicy]);
267
--- src/hname.c
+++ src/hname.c
@@ -256,11 +256,11 @@
256 ** The default hash policy for existing repositories is "auto", which will
257 ** immediately promote to "sha3" if the repository contains one or more
258 ** artifacts with SHA3 names. The default hash policy for new repositories
259 ** is "shun-sha1".
260 */
261 void hash_policy_cmd(void){
262 int i;
263 db_find_and_open_repository(0, 0);
264 if( g.argc!=2 && g.argc!=3 ) usage("?NEW-POLICY?");
265 if( g.argc==2 ){
266 fossil_print("%s\n", azPolicy[g.eHashPolicy]);
267
+1 -1
--- src/http.c
+++ src/http.c
@@ -484,11 +484,11 @@
484484
** --compress Use ZLIB compression on the payload
485485
** --mimetype TYPE Mimetype of the payload
486486
** --out FILE Store the reply in FILE
487487
** -v Verbose output
488488
*/
489
-void test_httpmsg_command(void){
489
+void test_httpmsg_cmd(void){
490490
const char *zMimetype;
491491
const char *zInFile;
492492
const char *zOutFile;
493493
Blob in, out;
494494
unsigned int mHttpFlags = HTTP_GENERIC|HTTP_NOCOMPRESS;
495495
--- src/http.c
+++ src/http.c
@@ -484,11 +484,11 @@
484 ** --compress Use ZLIB compression on the payload
485 ** --mimetype TYPE Mimetype of the payload
486 ** --out FILE Store the reply in FILE
487 ** -v Verbose output
488 */
489 void test_httpmsg_command(void){
490 const char *zMimetype;
491 const char *zInFile;
492 const char *zOutFile;
493 Blob in, out;
494 unsigned int mHttpFlags = HTTP_GENERIC|HTTP_NOCOMPRESS;
495
--- src/http.c
+++ src/http.c
@@ -484,11 +484,11 @@
484 ** --compress Use ZLIB compression on the payload
485 ** --mimetype TYPE Mimetype of the payload
486 ** --out FILE Store the reply in FILE
487 ** -v Verbose output
488 */
489 void test_httpmsg_cmd(void){
490 const char *zMimetype;
491 const char *zInFile;
492 const char *zOutFile;
493 Blob in, out;
494 unsigned int mHttpFlags = HTTP_GENERIC|HTTP_NOCOMPRESS;
495
+6 -6
--- src/info.c
+++ src/info.c
@@ -340,11 +340,11 @@
340340
**
341341
** Show a timeline of all check-ins and other events that have entries
342342
** in the backlink table. This is used for testing the rendering
343343
** of the "References" section of the /info page.
344344
*/
345
-void backlink_timeline_page(void){
345
+void test_backlinks_page(void){
346346
Blob sql;
347347
Stmt q;
348348
349349
login_check_credentials();
350350
if( !g.perm.Read || !g.perm.RdTkt || !g.perm.RdWiki ){
@@ -639,12 +639,12 @@
639639
db_finalize(&q);
640640
style_footer();
641641
}
642642
643643
/*
644
-** WEBPAGE: vinfo
645644
** WEBPAGE: ci
645
+** WEBPAGE: vinfo
646646
** URL: /ci/ARTIFACTID
647647
** OR: /ci?name=ARTIFACTID
648648
**
649649
** Display information about a particular check-in. The exact
650650
** same information is shown on the /info page if the name query
@@ -1696,11 +1696,11 @@
16961696
** regex=REGEX Only show differences that match REGEX
16971697
** sbs=BOOLEAN Turn side-by-side diffs on and off (default: on)
16981698
** verbose=BOOLEAN Show more detail when describing artifacts
16991699
** w=BOOLEAN Ignore whitespace
17001700
*/
1701
-void diff_page(void){
1701
+void fdiff_page(void){
17021702
int v1, v2;
17031703
int isPatch = P("patch")!=0;
17041704
int diffType; /* 0: none, 1: unified, 2: side-by-side */
17051705
char *zV1;
17061706
char *zV2;
@@ -2187,11 +2187,11 @@
21872187
if( isFile ){
21882188
/* Do a top-level directory listing in /file mode if no argument
21892189
** specified */
21902190
if( zName==0 || zName[0]==0 ){
21912191
if( P("ci")==0 ) cgi_set_query_parameter("ci","tip");
2192
- page_tree();
2192
+ tree_page();
21932193
return;
21942194
}
21952195
/* Look for a single file with the given name */
21962196
rid = db_int(0,
21972197
"SELECT fid FROM filename, mlink, event"
@@ -2210,11 +2210,11 @@
22102210
"SELECT 1 FROM filename"
22112211
" WHERE name GLOB '%.*q/*' AND substr(name,1,%d)=='%.*q/';",
22122212
nName, zName, nName+1, nName, zName
22132213
) ){
22142214
if( P("ci")==0 ) cgi_set_query_parameter("ci","tip");
2215
- page_tree();
2215
+ tree_page();
22162216
return;
22172217
}
22182218
}
22192219
/* If no file or directory called NAME: issue an error */
22202220
if( rid==0 ){
@@ -3136,11 +3136,11 @@
31363136
** year-month-day form, it may be truncated, the "T" may be replaced by
31373137
** a space, and it may also name a timezone offset from UTC as "-HH:MM"
31383138
** (westward) or "+HH:MM" (eastward). Either no timezone suffix or "Z"
31393139
** means UTC.
31403140
*/
3141
-void ci_amend_cmd(void){
3141
+void amend_cmd(void){
31423142
int rid;
31433143
const char *zComment; /* Current comment on the check-in */
31443144
const char *zNewComment; /* Revised check-in comment */
31453145
const char *zComFile; /* Filename from which to read comment */
31463146
const char *zUser; /* Current user for the check-in */
31473147
--- src/info.c
+++ src/info.c
@@ -340,11 +340,11 @@
340 **
341 ** Show a timeline of all check-ins and other events that have entries
342 ** in the backlink table. This is used for testing the rendering
343 ** of the "References" section of the /info page.
344 */
345 void backlink_timeline_page(void){
346 Blob sql;
347 Stmt q;
348
349 login_check_credentials();
350 if( !g.perm.Read || !g.perm.RdTkt || !g.perm.RdWiki ){
@@ -639,12 +639,12 @@
639 db_finalize(&q);
640 style_footer();
641 }
642
643 /*
644 ** WEBPAGE: vinfo
645 ** WEBPAGE: ci
 
646 ** URL: /ci/ARTIFACTID
647 ** OR: /ci?name=ARTIFACTID
648 **
649 ** Display information about a particular check-in. The exact
650 ** same information is shown on the /info page if the name query
@@ -1696,11 +1696,11 @@
1696 ** regex=REGEX Only show differences that match REGEX
1697 ** sbs=BOOLEAN Turn side-by-side diffs on and off (default: on)
1698 ** verbose=BOOLEAN Show more detail when describing artifacts
1699 ** w=BOOLEAN Ignore whitespace
1700 */
1701 void diff_page(void){
1702 int v1, v2;
1703 int isPatch = P("patch")!=0;
1704 int diffType; /* 0: none, 1: unified, 2: side-by-side */
1705 char *zV1;
1706 char *zV2;
@@ -2187,11 +2187,11 @@
2187 if( isFile ){
2188 /* Do a top-level directory listing in /file mode if no argument
2189 ** specified */
2190 if( zName==0 || zName[0]==0 ){
2191 if( P("ci")==0 ) cgi_set_query_parameter("ci","tip");
2192 page_tree();
2193 return;
2194 }
2195 /* Look for a single file with the given name */
2196 rid = db_int(0,
2197 "SELECT fid FROM filename, mlink, event"
@@ -2210,11 +2210,11 @@
2210 "SELECT 1 FROM filename"
2211 " WHERE name GLOB '%.*q/*' AND substr(name,1,%d)=='%.*q/';",
2212 nName, zName, nName+1, nName, zName
2213 ) ){
2214 if( P("ci")==0 ) cgi_set_query_parameter("ci","tip");
2215 page_tree();
2216 return;
2217 }
2218 }
2219 /* If no file or directory called NAME: issue an error */
2220 if( rid==0 ){
@@ -3136,11 +3136,11 @@
3136 ** year-month-day form, it may be truncated, the "T" may be replaced by
3137 ** a space, and it may also name a timezone offset from UTC as "-HH:MM"
3138 ** (westward) or "+HH:MM" (eastward). Either no timezone suffix or "Z"
3139 ** means UTC.
3140 */
3141 void ci_amend_cmd(void){
3142 int rid;
3143 const char *zComment; /* Current comment on the check-in */
3144 const char *zNewComment; /* Revised check-in comment */
3145 const char *zComFile; /* Filename from which to read comment */
3146 const char *zUser; /* Current user for the check-in */
3147
--- src/info.c
+++ src/info.c
@@ -340,11 +340,11 @@
340 **
341 ** Show a timeline of all check-ins and other events that have entries
342 ** in the backlink table. This is used for testing the rendering
343 ** of the "References" section of the /info page.
344 */
345 void test_backlinks_page(void){
346 Blob sql;
347 Stmt q;
348
349 login_check_credentials();
350 if( !g.perm.Read || !g.perm.RdTkt || !g.perm.RdWiki ){
@@ -639,12 +639,12 @@
639 db_finalize(&q);
640 style_footer();
641 }
642
643 /*
 
644 ** WEBPAGE: ci
645 ** WEBPAGE: vinfo
646 ** URL: /ci/ARTIFACTID
647 ** OR: /ci?name=ARTIFACTID
648 **
649 ** Display information about a particular check-in. The exact
650 ** same information is shown on the /info page if the name query
@@ -1696,11 +1696,11 @@
1696 ** regex=REGEX Only show differences that match REGEX
1697 ** sbs=BOOLEAN Turn side-by-side diffs on and off (default: on)
1698 ** verbose=BOOLEAN Show more detail when describing artifacts
1699 ** w=BOOLEAN Ignore whitespace
1700 */
1701 void fdiff_page(void){
1702 int v1, v2;
1703 int isPatch = P("patch")!=0;
1704 int diffType; /* 0: none, 1: unified, 2: side-by-side */
1705 char *zV1;
1706 char *zV2;
@@ -2187,11 +2187,11 @@
2187 if( isFile ){
2188 /* Do a top-level directory listing in /file mode if no argument
2189 ** specified */
2190 if( zName==0 || zName[0]==0 ){
2191 if( P("ci")==0 ) cgi_set_query_parameter("ci","tip");
2192 tree_page();
2193 return;
2194 }
2195 /* Look for a single file with the given name */
2196 rid = db_int(0,
2197 "SELECT fid FROM filename, mlink, event"
@@ -2210,11 +2210,11 @@
2210 "SELECT 1 FROM filename"
2211 " WHERE name GLOB '%.*q/*' AND substr(name,1,%d)=='%.*q/';",
2212 nName, zName, nName+1, nName, zName
2213 ) ){
2214 if( P("ci")==0 ) cgi_set_query_parameter("ci","tip");
2215 tree_page();
2216 return;
2217 }
2218 }
2219 /* If no file or directory called NAME: issue an error */
2220 if( rid==0 ){
@@ -3136,11 +3136,11 @@
3136 ** year-month-day form, it may be truncated, the "T" may be replaced by
3137 ** a space, and it may also name a timezone offset from UTC as "-HH:MM"
3138 ** (westward) or "+HH:MM" (eastward). Either no timezone suffix or "Z"
3139 ** means UTC.
3140 */
3141 void amend_cmd(void){
3142 int rid;
3143 const char *zComment; /* Current comment on the check-in */
3144 const char *zNewComment; /* Revised check-in comment */
3145 const char *zComFile; /* Filename from which to read comment */
3146 const char *zUser; /* Current user for the check-in */
3147
+9 -9
--- src/json.c
+++ src/json.c
@@ -23,12 +23,12 @@
2323
** https://docs.google.com/document/d/1fXViveNhDbiXgCuE7QDXQOKeFzf2qNUkBEgiUvoqFN4/view
2424
**
2525
**
2626
** Notes for hackers...
2727
**
28
-** Here's how command/page dispatching works: json_page_top() (in HTTP mode) or
29
-** json_cmd_top() (in CLI mode) catch the "json" path/command. Those functions then
28
+** Here's how command/page dispatching works: json_page() (in HTTP mode) or
29
+** json_cmd() (in CLI mode) catch the "json" path/command. Those functions then
3030
** dispatch to a JSON-mode-specific command/page handler with the type fossil_json_f().
3131
** See the API docs for that typedef (below) for the semantics of the callbacks.
3232
**
3333
**
3434
*/
@@ -711,11 +711,11 @@
711711
}
712712
713713
/*
714714
** Initializes some JSON bits which need to be initialized relatively
715715
** early on. It should only be called from cgi_init() or
716
-** json_cmd_top() (early on in those functions).
716
+** json_cmd() (early on in those functions).
717717
**
718718
** Initializes g.json.gc and g.json.param. This code does not (and
719719
** must not) rely on any of the fossil environment having been set
720720
** up. e.g. it must not use cgi_parameter() and friends because this
721721
** must be called before those data are initialized.
@@ -919,11 +919,11 @@
919919
}
920920
921921
922922
/*
923923
** Performs some common initialization of JSON-related state. Must be
924
-** called by the json_page_top() and json_cmd_top() dispatching
924
+** called by the json_page() and json_cmd() dispatching
925925
** functions to set up the JSON stat used by the dispatched functions.
926926
**
927927
** Implicitly sets up the login information state in CGI mode, but
928928
** does not perform any permissions checking. It _might_ (haven't
929929
** tested this) die with an error if an auth cookie is malformed.
@@ -2216,11 +2216,11 @@
22162216
/* Last entry MUST have a NULL name. */
22172217
{NULL,NULL,0}
22182218
};
22192219
22202220
/*
2221
-** Internal helper for json_cmd_top() and json_page_top().
2221
+** Internal helper for json_cmd() and json_page().
22222222
**
22232223
** Searches JsonPageDefs for a command with the given name. If found,
22242224
** it is used to generate and output a JSON response. If not found, it
22252225
** generates a JSON-style error response. Returns 0 on success, non-0
22262226
** on error. On error it will set g.json's error state.
@@ -2257,13 +2257,13 @@
22572257
/*
22582258
** WEBPAGE: json
22592259
**
22602260
** Pages under /json/... must be entered into JsonPageDefs.
22612261
** This function dispatches them, and is the HTTP equivalent of
2262
-** json_cmd_top().
2262
+** json_cmd().
22632263
*/
2264
-void json_page_top(void){
2264
+void json_page(void){
22652265
char const * zCommand;
22662266
assert(g.json.gc.a && "json_main_bootstrap() was not called!");
22672267
json_mode_bootstrap();
22682268
zCommand = json_command_arg(1);
22692269
if(!zCommand || !*zCommand){
@@ -2278,11 +2278,11 @@
22782278
22792279
#ifdef FOSSIL_ENABLE_JSON
22802280
/* dupe ifdef needed for mkindex */
22812281
/*
22822282
** This function dispatches json commands and is the CLI equivalent of
2283
-** json_page_top().
2283
+** json_page().
22842284
**
22852285
** COMMAND: json
22862286
**
22872287
** Usage: %fossil json SUBCOMMAND ?OPTIONS?
22882288
**
@@ -2321,11 +2321,11 @@
23212321
**
23222322
** Run '%fossil json' without any subcommand to see the full list (but be
23232323
** aware that some listed might not yet be fully implemented).
23242324
**
23252325
*/
2326
-void json_cmd_top(void){
2326
+void json_cmd(void){
23272327
char const * cmd = NULL;
23282328
int rc = 0;
23292329
memset( &g.perm, 0xff, sizeof(g.perm) )
23302330
/* In CLI mode fossil does not use permissions
23312331
and they all default to false. We enable them
23322332
--- src/json.c
+++ src/json.c
@@ -23,12 +23,12 @@
23 ** https://docs.google.com/document/d/1fXViveNhDbiXgCuE7QDXQOKeFzf2qNUkBEgiUvoqFN4/view
24 **
25 **
26 ** Notes for hackers...
27 **
28 ** Here's how command/page dispatching works: json_page_top() (in HTTP mode) or
29 ** json_cmd_top() (in CLI mode) catch the "json" path/command. Those functions then
30 ** dispatch to a JSON-mode-specific command/page handler with the type fossil_json_f().
31 ** See the API docs for that typedef (below) for the semantics of the callbacks.
32 **
33 **
34 */
@@ -711,11 +711,11 @@
711 }
712
713 /*
714 ** Initializes some JSON bits which need to be initialized relatively
715 ** early on. It should only be called from cgi_init() or
716 ** json_cmd_top() (early on in those functions).
717 **
718 ** Initializes g.json.gc and g.json.param. This code does not (and
719 ** must not) rely on any of the fossil environment having been set
720 ** up. e.g. it must not use cgi_parameter() and friends because this
721 ** must be called before those data are initialized.
@@ -919,11 +919,11 @@
919 }
920
921
922 /*
923 ** Performs some common initialization of JSON-related state. Must be
924 ** called by the json_page_top() and json_cmd_top() dispatching
925 ** functions to set up the JSON stat used by the dispatched functions.
926 **
927 ** Implicitly sets up the login information state in CGI mode, but
928 ** does not perform any permissions checking. It _might_ (haven't
929 ** tested this) die with an error if an auth cookie is malformed.
@@ -2216,11 +2216,11 @@
2216 /* Last entry MUST have a NULL name. */
2217 {NULL,NULL,0}
2218 };
2219
2220 /*
2221 ** Internal helper for json_cmd_top() and json_page_top().
2222 **
2223 ** Searches JsonPageDefs for a command with the given name. If found,
2224 ** it is used to generate and output a JSON response. If not found, it
2225 ** generates a JSON-style error response. Returns 0 on success, non-0
2226 ** on error. On error it will set g.json's error state.
@@ -2257,13 +2257,13 @@
2257 /*
2258 ** WEBPAGE: json
2259 **
2260 ** Pages under /json/... must be entered into JsonPageDefs.
2261 ** This function dispatches them, and is the HTTP equivalent of
2262 ** json_cmd_top().
2263 */
2264 void json_page_top(void){
2265 char const * zCommand;
2266 assert(g.json.gc.a && "json_main_bootstrap() was not called!");
2267 json_mode_bootstrap();
2268 zCommand = json_command_arg(1);
2269 if(!zCommand || !*zCommand){
@@ -2278,11 +2278,11 @@
2278
2279 #ifdef FOSSIL_ENABLE_JSON
2280 /* dupe ifdef needed for mkindex */
2281 /*
2282 ** This function dispatches json commands and is the CLI equivalent of
2283 ** json_page_top().
2284 **
2285 ** COMMAND: json
2286 **
2287 ** Usage: %fossil json SUBCOMMAND ?OPTIONS?
2288 **
@@ -2321,11 +2321,11 @@
2321 **
2322 ** Run '%fossil json' without any subcommand to see the full list (but be
2323 ** aware that some listed might not yet be fully implemented).
2324 **
2325 */
2326 void json_cmd_top(void){
2327 char const * cmd = NULL;
2328 int rc = 0;
2329 memset( &g.perm, 0xff, sizeof(g.perm) )
2330 /* In CLI mode fossil does not use permissions
2331 and they all default to false. We enable them
2332
--- src/json.c
+++ src/json.c
@@ -23,12 +23,12 @@
23 ** https://docs.google.com/document/d/1fXViveNhDbiXgCuE7QDXQOKeFzf2qNUkBEgiUvoqFN4/view
24 **
25 **
26 ** Notes for hackers...
27 **
28 ** Here's how command/page dispatching works: json_page() (in HTTP mode) or
29 ** json_cmd() (in CLI mode) catch the "json" path/command. Those functions then
30 ** dispatch to a JSON-mode-specific command/page handler with the type fossil_json_f().
31 ** See the API docs for that typedef (below) for the semantics of the callbacks.
32 **
33 **
34 */
@@ -711,11 +711,11 @@
711 }
712
713 /*
714 ** Initializes some JSON bits which need to be initialized relatively
715 ** early on. It should only be called from cgi_init() or
716 ** json_cmd() (early on in those functions).
717 **
718 ** Initializes g.json.gc and g.json.param. This code does not (and
719 ** must not) rely on any of the fossil environment having been set
720 ** up. e.g. it must not use cgi_parameter() and friends because this
721 ** must be called before those data are initialized.
@@ -919,11 +919,11 @@
919 }
920
921
922 /*
923 ** Performs some common initialization of JSON-related state. Must be
924 ** called by the json_page() and json_cmd() dispatching
925 ** functions to set up the JSON stat used by the dispatched functions.
926 **
927 ** Implicitly sets up the login information state in CGI mode, but
928 ** does not perform any permissions checking. It _might_ (haven't
929 ** tested this) die with an error if an auth cookie is malformed.
@@ -2216,11 +2216,11 @@
2216 /* Last entry MUST have a NULL name. */
2217 {NULL,NULL,0}
2218 };
2219
2220 /*
2221 ** Internal helper for json_cmd() and json_page().
2222 **
2223 ** Searches JsonPageDefs for a command with the given name. If found,
2224 ** it is used to generate and output a JSON response. If not found, it
2225 ** generates a JSON-style error response. Returns 0 on success, non-0
2226 ** on error. On error it will set g.json's error state.
@@ -2257,13 +2257,13 @@
2257 /*
2258 ** WEBPAGE: json
2259 **
2260 ** Pages under /json/... must be entered into JsonPageDefs.
2261 ** This function dispatches them, and is the HTTP equivalent of
2262 ** json_cmd().
2263 */
2264 void json_page(void){
2265 char const * zCommand;
2266 assert(g.json.gc.a && "json_main_bootstrap() was not called!");
2267 json_mode_bootstrap();
2268 zCommand = json_command_arg(1);
2269 if(!zCommand || !*zCommand){
@@ -2278,11 +2278,11 @@
2278
2279 #ifdef FOSSIL_ENABLE_JSON
2280 /* dupe ifdef needed for mkindex */
2281 /*
2282 ** This function dispatches json commands and is the CLI equivalent of
2283 ** json_page().
2284 **
2285 ** COMMAND: json
2286 **
2287 ** Usage: %fossil json SUBCOMMAND ?OPTIONS?
2288 **
@@ -2321,11 +2321,11 @@
2321 **
2322 ** Run '%fossil json' without any subcommand to see the full list (but be
2323 ** aware that some listed might not yet be fully implemented).
2324 **
2325 */
2326 void json_cmd(void){
2327 char const * cmd = NULL;
2328 int rc = 0;
2329 memset( &g.perm, 0xff, sizeof(g.perm) )
2330 /* In CLI mode fossil does not use permissions
2331 and they all default to false. We enable them
2332
+1 -1
--- src/leaf.c
+++ src/leaf.c
@@ -251,11 +251,11 @@
251251
** Usage: %fossil NAME ...
252252
**
253253
** Resolve each name on the command line and call leaf_ambiguity_warning()
254254
** for each resulting RID.
255255
*/
256
-void leaf_ambiguity_warning_test(void){
256
+void test_leaf_ambiguity_cmd(void){
257257
int i;
258258
int rid;
259259
int rc;
260260
db_find_and_open_repository(0,0);
261261
verify_all_options();
262262
--- src/leaf.c
+++ src/leaf.c
@@ -251,11 +251,11 @@
251 ** Usage: %fossil NAME ...
252 **
253 ** Resolve each name on the command line and call leaf_ambiguity_warning()
254 ** for each resulting RID.
255 */
256 void leaf_ambiguity_warning_test(void){
257 int i;
258 int rid;
259 int rc;
260 db_find_and_open_repository(0,0);
261 verify_all_options();
262
--- src/leaf.c
+++ src/leaf.c
@@ -251,11 +251,11 @@
251 ** Usage: %fossil NAME ...
252 **
253 ** Resolve each name on the command line and call leaf_ambiguity_warning()
254 ** for each resulting RID.
255 */
256 void test_leaf_ambiguity_cmd(void){
257 int i;
258 int rid;
259 int rc;
260 db_find_and_open_repository(0,0);
261 verify_all_options();
262
+1 -1
--- src/loadctrl.c
+++ src/loadctrl.c
@@ -40,11 +40,11 @@
4040
**
4141
** %fossil test-loadavg
4242
**
4343
** Print the load average on the host machine.
4444
*/
45
-void loadavg_test_cmd(void){
45
+void test_loadavg_cmd(void){
4646
fossil_print("load-average: %f\n", load_average());
4747
}
4848
4949
/*
5050
** Abort the current operation of the load average of the host computer
5151
--- src/loadctrl.c
+++ src/loadctrl.c
@@ -40,11 +40,11 @@
40 **
41 ** %fossil test-loadavg
42 **
43 ** Print the load average on the host machine.
44 */
45 void loadavg_test_cmd(void){
46 fossil_print("load-average: %f\n", load_average());
47 }
48
49 /*
50 ** Abort the current operation of the load average of the host computer
51
--- src/loadctrl.c
+++ src/loadctrl.c
@@ -40,11 +40,11 @@
40 **
41 ** %fossil test-loadavg
42 **
43 ** Print the load average on the host machine.
44 */
45 void test_loadavg_cmd(void){
46 fossil_print("load-average: %f\n", load_average());
47 }
48
49 /*
50 ** Abort the current operation of the load average of the host computer
51
+2 -2
--- src/login.c
+++ src/login.c
@@ -421,11 +421,11 @@
421421
**
422422
** Read lines of text from standard input. Interpret each line of text
423423
** as a User-Agent string from an HTTP header. Label each line as HUMAN
424424
** or ROBOT.
425425
*/
426
-void test_ishuman(void){
426
+void test_ishuman_cmd(void){
427427
char zLine[3000];
428428
while( fgets(zLine, sizeof(zLine), stdin) ){
429429
fossil_print("%s %s", isHuman(zLine) ? "HUMAN" : "ROBOT", zLine);
430430
}
431431
}
@@ -1984,11 +1984,11 @@
19841984
** access any other group member as long as they have an entry in the
19851985
** USER table of that member. If a user changes their password using
19861986
** web interface, their password is also automatically changed in every
19871987
** other member of the login group.
19881988
*/
1989
-void login_group_command(void){
1989
+void login_group_cmd(void){
19901990
const char *zLGName;
19911991
const char *zCmd;
19921992
int nCmd;
19931993
Stmt q;
19941994
db_find_and_open_repository(0,0);
19951995
--- src/login.c
+++ src/login.c
@@ -421,11 +421,11 @@
421 **
422 ** Read lines of text from standard input. Interpret each line of text
423 ** as a User-Agent string from an HTTP header. Label each line as HUMAN
424 ** or ROBOT.
425 */
426 void test_ishuman(void){
427 char zLine[3000];
428 while( fgets(zLine, sizeof(zLine), stdin) ){
429 fossil_print("%s %s", isHuman(zLine) ? "HUMAN" : "ROBOT", zLine);
430 }
431 }
@@ -1984,11 +1984,11 @@
1984 ** access any other group member as long as they have an entry in the
1985 ** USER table of that member. If a user changes their password using
1986 ** web interface, their password is also automatically changed in every
1987 ** other member of the login group.
1988 */
1989 void login_group_command(void){
1990 const char *zLGName;
1991 const char *zCmd;
1992 int nCmd;
1993 Stmt q;
1994 db_find_and_open_repository(0,0);
1995
--- src/login.c
+++ src/login.c
@@ -421,11 +421,11 @@
421 **
422 ** Read lines of text from standard input. Interpret each line of text
423 ** as a User-Agent string from an HTTP header. Label each line as HUMAN
424 ** or ROBOT.
425 */
426 void test_ishuman_cmd(void){
427 char zLine[3000];
428 while( fgets(zLine, sizeof(zLine), stdin) ){
429 fossil_print("%s %s", isHuman(zLine) ? "HUMAN" : "ROBOT", zLine);
430 }
431 }
@@ -1984,11 +1984,11 @@
1984 ** access any other group member as long as they have an entry in the
1985 ** USER table of that member. If a user changes their password using
1986 ** web interface, their password is also automatically changed in every
1987 ** other member of the login group.
1988 */
1989 void login_group_cmd(void){
1990 const char *zLGName;
1991 const char *zCmd;
1992 int nCmd;
1993 Stmt q;
1994 db_find_and_open_repository(0,0);
1995
+1 -1
--- src/lookslike.c
+++ src/lookslike.c
@@ -408,11 +408,11 @@
408408
** --utf16 Ignoring BOM and file size, force UTF-16 checking
409409
**
410410
** FILENAME is the name of a file to check for textual content in the UTF-8
411411
** and/or UTF-16 encodings.
412412
*/
413
-void looks_like_utf_test_cmd(void){
413
+void test_looks_like_utf_cmd(void){
414414
Blob blob; /* the contents of the specified file */
415415
int fUtf8 = 0; /* return value of starts_with_utf8_bom() */
416416
int fUtf16 = 0; /* return value of starts_with_utf16_bom() */
417417
int fUnicode = 0; /* return value of could_be_utf16() */
418418
int lookFlags = 0; /* output flags from looks_like_utf8/utf16() */
419419
--- src/lookslike.c
+++ src/lookslike.c
@@ -408,11 +408,11 @@
408 ** --utf16 Ignoring BOM and file size, force UTF-16 checking
409 **
410 ** FILENAME is the name of a file to check for textual content in the UTF-8
411 ** and/or UTF-16 encodings.
412 */
413 void looks_like_utf_test_cmd(void){
414 Blob blob; /* the contents of the specified file */
415 int fUtf8 = 0; /* return value of starts_with_utf8_bom() */
416 int fUtf16 = 0; /* return value of starts_with_utf16_bom() */
417 int fUnicode = 0; /* return value of could_be_utf16() */
418 int lookFlags = 0; /* output flags from looks_like_utf8/utf16() */
419
--- src/lookslike.c
+++ src/lookslike.c
@@ -408,11 +408,11 @@
408 ** --utf16 Ignoring BOM and file size, force UTF-16 checking
409 **
410 ** FILENAME is the name of a file to check for textual content in the UTF-8
411 ** and/or UTF-16 encodings.
412 */
413 void test_looks_like_utf_cmd(void){
414 Blob blob; /* the contents of the specified file */
415 int fUtf8 = 0; /* return value of starts_with_utf8_bom() */
416 int fUtf16 = 0; /* return value of starts_with_utf16_bom() */
417 int fUnicode = 0; /* return value of could_be_utf16() */
418 int lookFlags = 0; /* output flags from looks_like_utf8/utf16() */
419
+6 -6
--- src/main.c
+++ src/main.c
@@ -1240,11 +1240,11 @@
12401240
**
12411241
** Query parameters:
12421242
**
12431243
** verbose Show details
12441244
*/
1245
-void test_version_page(void){
1245
+void version_page(void){
12461246
Blob versionInfo;
12471247
int verboseFlag;
12481248
12491249
login_check_credentials();
12501250
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -1848,11 +1848,11 @@
18481848
Th_WebpageNotify(g.zPath, 0);
18491849
}
18501850
}
18511851
#endif
18521852
}
1853
- }else if( pCmd->xFunc!=page_xfer && db_schema_is_outofdate() ){
1853
+ }else if( pCmd->xFunc!=xfer_page && db_schema_is_outofdate() ){
18541854
#ifdef FOSSIL_ENABLE_JSON
18551855
if(g.json.isJsonMode){
18561856
json_err(FSL_JSON_E_DB_NEEDS_REBUILD,NULL,0);
18571857
}else
18581858
#endif
@@ -2040,11 +2040,11 @@
20402040
** Most CGI files contain only a "repository:" line. It is uncommon to
20412041
** use any other option.
20422042
**
20432043
** See also: http, server, winsrv
20442044
*/
2045
-void cmd_cgi(void){
2045
+void cgi_cmd(void){
20462046
const char *zFile;
20472047
const char *zNotFound = 0;
20482048
char **azRedirect = 0; /* List of repositories to redirect to */
20492049
int nRedirect = 0; /* Number of entries in azRedirect */
20502050
Glob *pFileGlob = 0; /* Pattern for files */
@@ -2377,11 +2377,11 @@
23772377
** --usepidkey Use saved encryption key from parent process. This is
23782378
** only necessary when using SEE on Windows.
23792379
**
23802380
** See also: cgi, server, winsrv
23812381
*/
2382
-void cmd_http(void){
2382
+void http_cmd(void){
23832383
const char *zIpAddr = 0;
23842384
const char *zNotFound;
23852385
const char *zHost;
23862386
const char *zAltBase;
23872387
const char *zFileGlob;
@@ -2500,11 +2500,11 @@
25002500
**
25012501
** Options:
25022502
** --th-trace trace TH1 execution (for debugging purposes)
25032503
**
25042504
*/
2505
-void cmd_test_http(void){
2505
+void test_http_cmd(void){
25062506
const char *zIpAddr; /* IP address of remote client */
25072507
25082508
Th_InitTraceLog();
25092509
login_set_capabilities("sx", 0);
25102510
g.useLocalauth = 1;
@@ -2646,11 +2646,11 @@
26462646
** --usepidkey Use saved encryption key from parent process. This is
26472647
** only necessary when using SEE on Windows.
26482648
**
26492649
** See also: cgi, http, winsrv
26502650
*/
2651
-void cmd_webserver(void){
2651
+void webserver_cmd(void){
26522652
int iPort, mxPort; /* Range of TCP ports allowed */
26532653
const char *zPort; /* Value of the --port option */
26542654
const char *zBrowser; /* Name of web browser program */
26552655
char *zBrowserCmd = 0; /* Command to launch the web browser */
26562656
int isUiCmd; /* True if command is "ui", not "server' */
26572657
--- src/main.c
+++ src/main.c
@@ -1240,11 +1240,11 @@
1240 **
1241 ** Query parameters:
1242 **
1243 ** verbose Show details
1244 */
1245 void test_version_page(void){
1246 Blob versionInfo;
1247 int verboseFlag;
1248
1249 login_check_credentials();
1250 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -1848,11 +1848,11 @@
1848 Th_WebpageNotify(g.zPath, 0);
1849 }
1850 }
1851 #endif
1852 }
1853 }else if( pCmd->xFunc!=page_xfer && db_schema_is_outofdate() ){
1854 #ifdef FOSSIL_ENABLE_JSON
1855 if(g.json.isJsonMode){
1856 json_err(FSL_JSON_E_DB_NEEDS_REBUILD,NULL,0);
1857 }else
1858 #endif
@@ -2040,11 +2040,11 @@
2040 ** Most CGI files contain only a "repository:" line. It is uncommon to
2041 ** use any other option.
2042 **
2043 ** See also: http, server, winsrv
2044 */
2045 void cmd_cgi(void){
2046 const char *zFile;
2047 const char *zNotFound = 0;
2048 char **azRedirect = 0; /* List of repositories to redirect to */
2049 int nRedirect = 0; /* Number of entries in azRedirect */
2050 Glob *pFileGlob = 0; /* Pattern for files */
@@ -2377,11 +2377,11 @@
2377 ** --usepidkey Use saved encryption key from parent process. This is
2378 ** only necessary when using SEE on Windows.
2379 **
2380 ** See also: cgi, server, winsrv
2381 */
2382 void cmd_http(void){
2383 const char *zIpAddr = 0;
2384 const char *zNotFound;
2385 const char *zHost;
2386 const char *zAltBase;
2387 const char *zFileGlob;
@@ -2500,11 +2500,11 @@
2500 **
2501 ** Options:
2502 ** --th-trace trace TH1 execution (for debugging purposes)
2503 **
2504 */
2505 void cmd_test_http(void){
2506 const char *zIpAddr; /* IP address of remote client */
2507
2508 Th_InitTraceLog();
2509 login_set_capabilities("sx", 0);
2510 g.useLocalauth = 1;
@@ -2646,11 +2646,11 @@
2646 ** --usepidkey Use saved encryption key from parent process. This is
2647 ** only necessary when using SEE on Windows.
2648 **
2649 ** See also: cgi, http, winsrv
2650 */
2651 void cmd_webserver(void){
2652 int iPort, mxPort; /* Range of TCP ports allowed */
2653 const char *zPort; /* Value of the --port option */
2654 const char *zBrowser; /* Name of web browser program */
2655 char *zBrowserCmd = 0; /* Command to launch the web browser */
2656 int isUiCmd; /* True if command is "ui", not "server' */
2657
--- src/main.c
+++ src/main.c
@@ -1240,11 +1240,11 @@
1240 **
1241 ** Query parameters:
1242 **
1243 ** verbose Show details
1244 */
1245 void version_page(void){
1246 Blob versionInfo;
1247 int verboseFlag;
1248
1249 login_check_credentials();
1250 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -1848,11 +1848,11 @@
1848 Th_WebpageNotify(g.zPath, 0);
1849 }
1850 }
1851 #endif
1852 }
1853 }else if( pCmd->xFunc!=xfer_page && db_schema_is_outofdate() ){
1854 #ifdef FOSSIL_ENABLE_JSON
1855 if(g.json.isJsonMode){
1856 json_err(FSL_JSON_E_DB_NEEDS_REBUILD,NULL,0);
1857 }else
1858 #endif
@@ -2040,11 +2040,11 @@
2040 ** Most CGI files contain only a "repository:" line. It is uncommon to
2041 ** use any other option.
2042 **
2043 ** See also: http, server, winsrv
2044 */
2045 void cgi_cmd(void){
2046 const char *zFile;
2047 const char *zNotFound = 0;
2048 char **azRedirect = 0; /* List of repositories to redirect to */
2049 int nRedirect = 0; /* Number of entries in azRedirect */
2050 Glob *pFileGlob = 0; /* Pattern for files */
@@ -2377,11 +2377,11 @@
2377 ** --usepidkey Use saved encryption key from parent process. This is
2378 ** only necessary when using SEE on Windows.
2379 **
2380 ** See also: cgi, server, winsrv
2381 */
2382 void http_cmd(void){
2383 const char *zIpAddr = 0;
2384 const char *zNotFound;
2385 const char *zHost;
2386 const char *zAltBase;
2387 const char *zFileGlob;
@@ -2500,11 +2500,11 @@
2500 **
2501 ** Options:
2502 ** --th-trace trace TH1 execution (for debugging purposes)
2503 **
2504 */
2505 void test_http_cmd(void){
2506 const char *zIpAddr; /* IP address of remote client */
2507
2508 Th_InitTraceLog();
2509 login_set_capabilities("sx", 0);
2510 g.useLocalauth = 1;
@@ -2646,11 +2646,11 @@
2646 ** --usepidkey Use saved encryption key from parent process. This is
2647 ** only necessary when using SEE on Windows.
2648 **
2649 ** See also: cgi, http, winsrv
2650 */
2651 void webserver_cmd(void){
2652 int iPort, mxPort; /* Range of TCP ports allowed */
2653 const char *zPort; /* Value of the --port option */
2654 const char *zBrowser; /* Name of web browser program */
2655 char *zBrowserCmd = 0; /* Command to launch the web browser */
2656 int isUiCmd; /* True if command is "ui", not "server' */
2657
+2 -2
--- src/manifest.c
+++ src/manifest.c
@@ -1133,11 +1133,11 @@
11331133
** Usage: %fossil test-parse-manifest FILENAME ?N?
11341134
**
11351135
** Parse the manifest(s) given on the command-line and report any
11361136
** errors. If the N argument is given, run the parsing N times.
11371137
*/
1138
-void manifest_test_parse_cmd(void){
1138
+void test_parse_manifest_cmd(void){
11391139
Manifest *p;
11401140
Blob b;
11411141
int i;
11421142
int n = 1;
11431143
db_find_and_open_repository(0,0);
@@ -1170,11 +1170,11 @@
11701170
** repositories after making any changes to the manifest_parse()
11711171
** implementation to confirm that the changes did not break anything.
11721172
**
11731173
** If the --limit N argument is given, parse no more than N blobs
11741174
*/
1175
-void manifest_test_parse_all_blobs_cmd(void){
1175
+void test_parse_all_blobs_cmd(void){
11761176
Manifest *p;
11771177
Blob err;
11781178
Stmt q;
11791179
int nTest = 0;
11801180
int nErr = 0;
11811181
--- src/manifest.c
+++ src/manifest.c
@@ -1133,11 +1133,11 @@
1133 ** Usage: %fossil test-parse-manifest FILENAME ?N?
1134 **
1135 ** Parse the manifest(s) given on the command-line and report any
1136 ** errors. If the N argument is given, run the parsing N times.
1137 */
1138 void manifest_test_parse_cmd(void){
1139 Manifest *p;
1140 Blob b;
1141 int i;
1142 int n = 1;
1143 db_find_and_open_repository(0,0);
@@ -1170,11 +1170,11 @@
1170 ** repositories after making any changes to the manifest_parse()
1171 ** implementation to confirm that the changes did not break anything.
1172 **
1173 ** If the --limit N argument is given, parse no more than N blobs
1174 */
1175 void manifest_test_parse_all_blobs_cmd(void){
1176 Manifest *p;
1177 Blob err;
1178 Stmt q;
1179 int nTest = 0;
1180 int nErr = 0;
1181
--- src/manifest.c
+++ src/manifest.c
@@ -1133,11 +1133,11 @@
1133 ** Usage: %fossil test-parse-manifest FILENAME ?N?
1134 **
1135 ** Parse the manifest(s) given on the command-line and report any
1136 ** errors. If the N argument is given, run the parsing N times.
1137 */
1138 void test_parse_manifest_cmd(void){
1139 Manifest *p;
1140 Blob b;
1141 int i;
1142 int n = 1;
1143 db_find_and_open_repository(0,0);
@@ -1170,11 +1170,11 @@
1170 ** repositories after making any changes to the manifest_parse()
1171 ** implementation to confirm that the changes did not break anything.
1172 **
1173 ** If the --limit N argument is given, parse no more than N blobs
1174 */
1175 void test_parse_all_blobs_cmd(void){
1176 Manifest *p;
1177 Blob err;
1178 Stmt q;
1179 int nTest = 0;
1180 int nErr = 0;
1181
+1 -1
--- src/md5.c
+++ src/md5.c
@@ -442,11 +442,11 @@
442442
** Usage: %fossil md5sum FILES....
443443
**
444444
** Compute an MD5 checksum of all files named on the command-line.
445445
** If a file is named "-" then content is read from standard input.
446446
*/
447
-void md5sum_test(void){
447
+void md5sum_cmd(void){
448448
int i;
449449
Blob in;
450450
Blob cksum;
451451
452452
for(i=2; i<g.argc; i++){
453453
--- src/md5.c
+++ src/md5.c
@@ -442,11 +442,11 @@
442 ** Usage: %fossil md5sum FILES....
443 **
444 ** Compute an MD5 checksum of all files named on the command-line.
445 ** If a file is named "-" then content is read from standard input.
446 */
447 void md5sum_test(void){
448 int i;
449 Blob in;
450 Blob cksum;
451
452 for(i=2; i<g.argc; i++){
453
--- src/md5.c
+++ src/md5.c
@@ -442,11 +442,11 @@
442 ** Usage: %fossil md5sum FILES....
443 **
444 ** Compute an MD5 checksum of all files named on the command-line.
445 ** If a file is named "-" then content is read from standard input.
446 */
447 void md5sum_cmd(void){
448 int i;
449 Blob in;
450 Blob cksum;
451
452 for(i=2; i<g.argc; i++){
453
+4 -4
--- src/name.c
+++ src/name.c
@@ -530,11 +530,11 @@
530530
** Usage: %fossil test-name-to-id [--count N] NAME
531531
**
532532
** Convert a NAME to a full artifact ID. Repeat the conversion N
533533
** times (for timing purposes) if the --count option is given.
534534
*/
535
-void test_name_to_id(void){
535
+void test_name_to_id_cmd(void){
536536
int i;
537537
int n = 0;
538538
Blob name;
539539
db_must_be_within_tree();
540540
for(i=2; i<g.argc; i++){
@@ -1335,11 +1335,11 @@
13351335
**
13361336
** Usage: %fossil test-unclustered
13371337
**
13381338
** Show all artifacts in the unclustered table
13391339
*/
1340
-void test_unclusterd_cmd(void){
1340
+void test_unclustered_cmd(void){
13411341
db_find_and_open_repository(0,0);
13421342
describe_artifacts_to_stdout("IN unclustered", 0);
13431343
}
13441344
13451345
/*
@@ -1347,11 +1347,11 @@
13471347
**
13481348
** Usage: %fossil test-phantoms
13491349
**
13501350
** Show all phantom artifacts
13511351
*/
1352
-void test_phatoms_cmd(void){
1352
+void test_phantoms_cmd(void){
13531353
db_find_and_open_repository(0,0);
13541354
describe_artifacts_to_stdout("IN (SELECT rid FROM blob WHERE size<0)", 0);
13551355
}
13561356
13571357
/* Maximum number of collision examples to remember */
@@ -1425,11 +1425,11 @@
14251425
/*
14261426
** WEBPAGE: hash-collisions
14271427
**
14281428
** Show the number of hash collisions for hash prefixes of various lengths.
14291429
*/
1430
-void hash_collisions_webpage(void){
1430
+void hash_collisions_page(void){
14311431
login_check_credentials();
14321432
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
14331433
style_header("Hash Prefix Collisions");
14341434
style_submenu_element("Activity Reports", "reports");
14351435
style_submenu_element("Stats", "stat");
14361436
--- src/name.c
+++ src/name.c
@@ -530,11 +530,11 @@
530 ** Usage: %fossil test-name-to-id [--count N] NAME
531 **
532 ** Convert a NAME to a full artifact ID. Repeat the conversion N
533 ** times (for timing purposes) if the --count option is given.
534 */
535 void test_name_to_id(void){
536 int i;
537 int n = 0;
538 Blob name;
539 db_must_be_within_tree();
540 for(i=2; i<g.argc; i++){
@@ -1335,11 +1335,11 @@
1335 **
1336 ** Usage: %fossil test-unclustered
1337 **
1338 ** Show all artifacts in the unclustered table
1339 */
1340 void test_unclusterd_cmd(void){
1341 db_find_and_open_repository(0,0);
1342 describe_artifacts_to_stdout("IN unclustered", 0);
1343 }
1344
1345 /*
@@ -1347,11 +1347,11 @@
1347 **
1348 ** Usage: %fossil test-phantoms
1349 **
1350 ** Show all phantom artifacts
1351 */
1352 void test_phatoms_cmd(void){
1353 db_find_and_open_repository(0,0);
1354 describe_artifacts_to_stdout("IN (SELECT rid FROM blob WHERE size<0)", 0);
1355 }
1356
1357 /* Maximum number of collision examples to remember */
@@ -1425,11 +1425,11 @@
1425 /*
1426 ** WEBPAGE: hash-collisions
1427 **
1428 ** Show the number of hash collisions for hash prefixes of various lengths.
1429 */
1430 void hash_collisions_webpage(void){
1431 login_check_credentials();
1432 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
1433 style_header("Hash Prefix Collisions");
1434 style_submenu_element("Activity Reports", "reports");
1435 style_submenu_element("Stats", "stat");
1436
--- src/name.c
+++ src/name.c
@@ -530,11 +530,11 @@
530 ** Usage: %fossil test-name-to-id [--count N] NAME
531 **
532 ** Convert a NAME to a full artifact ID. Repeat the conversion N
533 ** times (for timing purposes) if the --count option is given.
534 */
535 void test_name_to_id_cmd(void){
536 int i;
537 int n = 0;
538 Blob name;
539 db_must_be_within_tree();
540 for(i=2; i<g.argc; i++){
@@ -1335,11 +1335,11 @@
1335 **
1336 ** Usage: %fossil test-unclustered
1337 **
1338 ** Show all artifacts in the unclustered table
1339 */
1340 void test_unclustered_cmd(void){
1341 db_find_and_open_repository(0,0);
1342 describe_artifacts_to_stdout("IN unclustered", 0);
1343 }
1344
1345 /*
@@ -1347,11 +1347,11 @@
1347 **
1348 ** Usage: %fossil test-phantoms
1349 **
1350 ** Show all phantom artifacts
1351 */
1352 void test_phantoms_cmd(void){
1353 db_find_and_open_repository(0,0);
1354 describe_artifacts_to_stdout("IN (SELECT rid FROM blob WHERE size<0)", 0);
1355 }
1356
1357 /* Maximum number of collision examples to remember */
@@ -1425,11 +1425,11 @@
1425 /*
1426 ** WEBPAGE: hash-collisions
1427 **
1428 ** Show the number of hash collisions for hash prefixes of various lengths.
1429 */
1430 void hash_collisions_page(void){
1431 login_check_credentials();
1432 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
1433 style_header("Hash Prefix Collisions");
1434 style_submenu_element("Activity Reports", "reports");
1435 style_submenu_element("Stats", "stat");
1436
+3 -3
--- src/path.c
+++ src/path.c
@@ -243,11 +243,11 @@
243243
** Usage: %fossil test-shortest-path ?--no-merge? VERSION1 VERSION2
244244
**
245245
** Report the shortest path between two check-ins. If the --no-merge flag
246246
** is used, follow only direct parent-child paths and omit merge links.
247247
*/
248
-void shortest_path_test_cmd(void){
248
+void test_shortest_path_cmd(void){
249249
int iFrom;
250250
int iTo;
251251
PathNode *p;
252252
int n;
253253
int directOnly;
@@ -349,11 +349,11 @@
349349
** Usage: %fossil test-ancestor-path VERSION1 VERSION2
350350
**
351351
** Report the path from VERSION1 to VERSION2 through their most recent
352352
** common ancestor.
353353
*/
354
-void ancestor_path_test_cmd(void){
354
+void test_ancestor_path_cmd(void){
355355
int iFrom;
356356
int iTo;
357357
int iPivot;
358358
PathNode *p;
359359
int n;
@@ -521,11 +521,11 @@
521521
**
522522
** Usage: %fossil test-name-changes [--debug] VERSION1 VERSION2
523523
**
524524
** Show all filename changes that occur going from VERSION1 to VERSION2
525525
*/
526
-void test_name_change(void){
526
+void test_name_changes_cmd(void){
527527
int iFrom;
528528
int iTo;
529529
int *aChng;
530530
int nChng;
531531
int i;
532532
--- src/path.c
+++ src/path.c
@@ -243,11 +243,11 @@
243 ** Usage: %fossil test-shortest-path ?--no-merge? VERSION1 VERSION2
244 **
245 ** Report the shortest path between two check-ins. If the --no-merge flag
246 ** is used, follow only direct parent-child paths and omit merge links.
247 */
248 void shortest_path_test_cmd(void){
249 int iFrom;
250 int iTo;
251 PathNode *p;
252 int n;
253 int directOnly;
@@ -349,11 +349,11 @@
349 ** Usage: %fossil test-ancestor-path VERSION1 VERSION2
350 **
351 ** Report the path from VERSION1 to VERSION2 through their most recent
352 ** common ancestor.
353 */
354 void ancestor_path_test_cmd(void){
355 int iFrom;
356 int iTo;
357 int iPivot;
358 PathNode *p;
359 int n;
@@ -521,11 +521,11 @@
521 **
522 ** Usage: %fossil test-name-changes [--debug] VERSION1 VERSION2
523 **
524 ** Show all filename changes that occur going from VERSION1 to VERSION2
525 */
526 void test_name_change(void){
527 int iFrom;
528 int iTo;
529 int *aChng;
530 int nChng;
531 int i;
532
--- src/path.c
+++ src/path.c
@@ -243,11 +243,11 @@
243 ** Usage: %fossil test-shortest-path ?--no-merge? VERSION1 VERSION2
244 **
245 ** Report the shortest path between two check-ins. If the --no-merge flag
246 ** is used, follow only direct parent-child paths and omit merge links.
247 */
248 void test_shortest_path_cmd(void){
249 int iFrom;
250 int iTo;
251 PathNode *p;
252 int n;
253 int directOnly;
@@ -349,11 +349,11 @@
349 ** Usage: %fossil test-ancestor-path VERSION1 VERSION2
350 **
351 ** Report the path from VERSION1 to VERSION2 through their most recent
352 ** common ancestor.
353 */
354 void test_ancestor_path_cmd(void){
355 int iFrom;
356 int iTo;
357 int iPivot;
358 PathNode *p;
359 int n;
@@ -521,11 +521,11 @@
521 **
522 ** Usage: %fossil test-name-changes [--debug] VERSION1 VERSION2
523 **
524 ** Show all filename changes that occur going from VERSION1 to VERSION2
525 */
526 void test_name_changes_cmd(void){
527 int iFrom;
528 int iTo;
529 int *aChng;
530 int nChng;
531 int i;
532
+1 -1
--- src/piechart.c
+++ src/piechart.c
@@ -265,11 +265,11 @@
265265
/*
266266
** WEBPAGE: test-piechart
267267
**
268268
** Generate a pie-chart based on data input from a form.
269269
*/
270
-void piechart_test_page(void){
270
+void test_piechart_page(void){
271271
const char *zData;
272272
Stmt ins;
273273
int n = 0;
274274
int width;
275275
int height;
276276
--- src/piechart.c
+++ src/piechart.c
@@ -265,11 +265,11 @@
265 /*
266 ** WEBPAGE: test-piechart
267 **
268 ** Generate a pie-chart based on data input from a form.
269 */
270 void piechart_test_page(void){
271 const char *zData;
272 Stmt ins;
273 int n = 0;
274 int width;
275 int height;
276
--- src/piechart.c
+++ src/piechart.c
@@ -265,11 +265,11 @@
265 /*
266 ** WEBPAGE: test-piechart
267 **
268 ** Generate a pie-chart based on data input from a form.
269 */
270 void test_piechart_page(void){
271 const char *zData;
272 Stmt ins;
273 int n = 0;
274 int width;
275 int height;
276
+1 -1
--- src/pivot.c
+++ src/pivot.c
@@ -161,11 +161,11 @@
161161
** Test the pivot_find() procedure.
162162
**
163163
** Options:
164164
** --ignore-merges Ignore merges for discovering name pivots
165165
*/
166
-void test_find_pivot(void){
166
+void test_find_pivot_cmd(void){
167167
int i, rid;
168168
int ignoreMerges = find_option("ignore-merges",0,0)!=0;
169169
int showDetails = find_option("details",0,0)!=0;
170170
if( g.argc<4 ){
171171
usage("?options? PRIMARY SECONDARY ...");
172172
--- src/pivot.c
+++ src/pivot.c
@@ -161,11 +161,11 @@
161 ** Test the pivot_find() procedure.
162 **
163 ** Options:
164 ** --ignore-merges Ignore merges for discovering name pivots
165 */
166 void test_find_pivot(void){
167 int i, rid;
168 int ignoreMerges = find_option("ignore-merges",0,0)!=0;
169 int showDetails = find_option("details",0,0)!=0;
170 if( g.argc<4 ){
171 usage("?options? PRIMARY SECONDARY ...");
172
--- src/pivot.c
+++ src/pivot.c
@@ -161,11 +161,11 @@
161 ** Test the pivot_find() procedure.
162 **
163 ** Options:
164 ** --ignore-merges Ignore merges for discovering name pivots
165 */
166 void test_find_pivot_cmd(void){
167 int i, rid;
168 int ignoreMerges = find_option("ignore-merges",0,0)!=0;
169 int showDetails = find_option("details",0,0)!=0;
170 if( g.argc<4 ){
171 usage("?options? PRIMARY SECONDARY ...");
172
+3 -3
--- src/rebuild.c
+++ src/rebuild.c
@@ -358,11 +358,11 @@
358358
}
359359
360360
/*
361361
** Core function to rebuild the information in the derived tables of a
362362
** fossil repository from the blobs. This function is shared between
363
-** 'rebuild_database' ('rebuild') and 'reconstruct_cmd'
363
+** 'rebuild_database_cmd' ('rebuild') and 'reconstruct_cmd'
364364
** ('reconstruct'), both of which have to regenerate this information
365365
** from scratch.
366366
**
367367
** If the randomize parameter is true, then the BLOBs are deliberately
368368
** extracted in a random order. This feature is used to test the
@@ -604,11 +604,11 @@
604604
** --vacuum Run VACUUM on the database after rebuilding
605605
** --wal Set Write-Ahead-Log journalling mode on the database
606606
**
607607
** See also: deconstruct, reconstruct
608608
*/
609
-void rebuild_database(void){
609
+void rebuild_database_cmd(void){
610610
int forceFlag;
611611
int randomizeFlag;
612612
int errCnt = 0;
613613
int omitVerify;
614614
int doClustering;
@@ -773,11 +773,11 @@
773773
** COMMAND: test-create-clusters
774774
**
775775
** Create clusters for all unclustered artifacts if the number of unclustered
776776
** artifacts exceeds the current clustering threshold.
777777
*/
778
-void test_createcluster_cmd(void){
778
+void test_create_clusters_cmd(void){
779779
if( g.argc==3 ){
780780
db_open_repository(g.argv[2]);
781781
}else{
782782
db_find_and_open_repository(0, 0);
783783
if( g.argc!=2 ){
784784
--- src/rebuild.c
+++ src/rebuild.c
@@ -358,11 +358,11 @@
358 }
359
360 /*
361 ** Core function to rebuild the information in the derived tables of a
362 ** fossil repository from the blobs. This function is shared between
363 ** 'rebuild_database' ('rebuild') and 'reconstruct_cmd'
364 ** ('reconstruct'), both of which have to regenerate this information
365 ** from scratch.
366 **
367 ** If the randomize parameter is true, then the BLOBs are deliberately
368 ** extracted in a random order. This feature is used to test the
@@ -604,11 +604,11 @@
604 ** --vacuum Run VACUUM on the database after rebuilding
605 ** --wal Set Write-Ahead-Log journalling mode on the database
606 **
607 ** See also: deconstruct, reconstruct
608 */
609 void rebuild_database(void){
610 int forceFlag;
611 int randomizeFlag;
612 int errCnt = 0;
613 int omitVerify;
614 int doClustering;
@@ -773,11 +773,11 @@
773 ** COMMAND: test-create-clusters
774 **
775 ** Create clusters for all unclustered artifacts if the number of unclustered
776 ** artifacts exceeds the current clustering threshold.
777 */
778 void test_createcluster_cmd(void){
779 if( g.argc==3 ){
780 db_open_repository(g.argv[2]);
781 }else{
782 db_find_and_open_repository(0, 0);
783 if( g.argc!=2 ){
784
--- src/rebuild.c
+++ src/rebuild.c
@@ -358,11 +358,11 @@
358 }
359
360 /*
361 ** Core function to rebuild the information in the derived tables of a
362 ** fossil repository from the blobs. This function is shared between
363 ** 'rebuild_database_cmd' ('rebuild') and 'reconstruct_cmd'
364 ** ('reconstruct'), both of which have to regenerate this information
365 ** from scratch.
366 **
367 ** If the randomize parameter is true, then the BLOBs are deliberately
368 ** extracted in a random order. This feature is used to test the
@@ -604,11 +604,11 @@
604 ** --vacuum Run VACUUM on the database after rebuilding
605 ** --wal Set Write-Ahead-Log journalling mode on the database
606 **
607 ** See also: deconstruct, reconstruct
608 */
609 void rebuild_database_cmd(void){
610 int forceFlag;
611 int randomizeFlag;
612 int errCnt = 0;
613 int omitVerify;
614 int doClustering;
@@ -773,11 +773,11 @@
773 ** COMMAND: test-create-clusters
774 **
775 ** Create clusters for all unclustered artifacts if the number of unclustered
776 ** artifacts exceeds the current clustering threshold.
777 */
778 void test_create_clusters_cmd(void){
779 if( g.argc==3 ){
780 db_open_repository(g.argv[2]);
781 }else{
782 db_find_and_open_repository(0, 0);
783 if( g.argc!=2 ){
784
+2 -2
--- src/regexp.c
+++ src/regexp.c
@@ -764,11 +764,11 @@
764764
**
765765
** Options:
766766
**
767767
** -i|--ignore-case Ignore case
768768
*/
769
-void re_test_grep(void){
769
+void test_grep_cmd(void){
770770
ReCompiled *pRe;
771771
const char *zErr;
772772
int ignoreCase = find_option("ignore-case","i",0)!=0;
773773
if( g.argc<3 ){
774774
usage("REGEXP [FILE...]");
@@ -817,11 +817,11 @@
817817
** or unreadable files
818818
** -v|--invert-match Invert the sense of matching. Show only
819819
** files that have no matches. Implies -l
820820
** --verbose Show each file as it is analyzed
821821
*/
822
-void re_grep_cmd(void){
822
+void grep_cmd(void){
823823
u32 flags = 0;
824824
int bVerbose = 0;
825825
ReCompiled *pRe;
826826
const char *zErr;
827827
int ignoreCase = 0;
828828
--- src/regexp.c
+++ src/regexp.c
@@ -764,11 +764,11 @@
764 **
765 ** Options:
766 **
767 ** -i|--ignore-case Ignore case
768 */
769 void re_test_grep(void){
770 ReCompiled *pRe;
771 const char *zErr;
772 int ignoreCase = find_option("ignore-case","i",0)!=0;
773 if( g.argc<3 ){
774 usage("REGEXP [FILE...]");
@@ -817,11 +817,11 @@
817 ** or unreadable files
818 ** -v|--invert-match Invert the sense of matching. Show only
819 ** files that have no matches. Implies -l
820 ** --verbose Show each file as it is analyzed
821 */
822 void re_grep_cmd(void){
823 u32 flags = 0;
824 int bVerbose = 0;
825 ReCompiled *pRe;
826 const char *zErr;
827 int ignoreCase = 0;
828
--- src/regexp.c
+++ src/regexp.c
@@ -764,11 +764,11 @@
764 **
765 ** Options:
766 **
767 ** -i|--ignore-case Ignore case
768 */
769 void test_grep_cmd(void){
770 ReCompiled *pRe;
771 const char *zErr;
772 int ignoreCase = find_option("ignore-case","i",0)!=0;
773 if( g.argc<3 ){
774 usage("REGEXP [FILE...]");
@@ -817,11 +817,11 @@
817 ** or unreadable files
818 ** -v|--invert-match Invert the sense of matching. Show only
819 ** files that have no matches. Implies -l
820 ** --verbose Show each file as it is analyzed
821 */
822 void grep_cmd(void){
823 u32 flags = 0;
824 int bVerbose = 0;
825 ReCompiled *pRe;
826 const char *zErr;
827 int ignoreCase = 0;
828
+1 -1
--- src/repolist.c
+++ src/repolist.c
@@ -276,11 +276,11 @@
276276
** Usage: %fossil test-list-page DIRECTORY
277277
**
278278
** Show all repositories underneath DIRECTORY. Or if DIRECTORY is "/"
279279
** show all repositories in the ~/.fossil file.
280280
*/
281
-void test_list_page(void){
281
+void test_list_page_cmd(void){
282282
if( g.argc<3 ){
283283
g.zRepositoryName = "/";
284284
}else{
285285
g.zRepositoryName = g.argv[2];
286286
}
287287
--- src/repolist.c
+++ src/repolist.c
@@ -276,11 +276,11 @@
276 ** Usage: %fossil test-list-page DIRECTORY
277 **
278 ** Show all repositories underneath DIRECTORY. Or if DIRECTORY is "/"
279 ** show all repositories in the ~/.fossil file.
280 */
281 void test_list_page(void){
282 if( g.argc<3 ){
283 g.zRepositoryName = "/";
284 }else{
285 g.zRepositoryName = g.argv[2];
286 }
287
--- src/repolist.c
+++ src/repolist.c
@@ -276,11 +276,11 @@
276 ** Usage: %fossil test-list-page DIRECTORY
277 **
278 ** Show all repositories underneath DIRECTORY. Or if DIRECTORY is "/"
279 ** show all repositories in the ~/.fossil file.
280 */
281 void test_list_page_cmd(void){
282 if( g.argc<3 ){
283 g.zRepositoryName = "/";
284 }else{
285 g.zRepositoryName = g.argv[2];
286 }
287
+3 -3
--- src/report.c
+++ src/report.c
@@ -32,11 +32,11 @@
3232
/*
3333
** WEBPAGE: reportlist
3434
**
3535
** Main menu for Tickets.
3636
*/
37
-void view_list(void){
37
+void reportlist_page(void){
3838
const char *zScript;
3939
Blob ril; /* Report Item List */
4040
Stmt q;
4141
int rn = 0;
4242
int cnt = 0;
@@ -299,11 +299,11 @@
299299
** URL: /rptsql?rn=N
300300
**
301301
** Display the SQL query used to generate a ticket report. The rn=N
302302
** query parameter identifies the specific report number to be displayed.
303303
*/
304
-void view_see_sql(void){
304
+void rptsql_page(void){
305305
int rn;
306306
const char *zTitle;
307307
const char *zSQL;
308308
const char *zOwner;
309309
const char *zClrKey;
@@ -357,11 +357,11 @@
357357
** t=TITLE Title of the report format
358358
** w=USER Owner of the report format
359359
** s=SQL SQL text used to implement the report
360360
** k=KEY Color key
361361
*/
362
-void view_edit(void){
362
+void rptedit_page(void){
363363
int rn;
364364
const char *zTitle;
365365
const char *z;
366366
const char *zOwner;
367367
const char *zClrKey;
368368
--- src/report.c
+++ src/report.c
@@ -32,11 +32,11 @@
32 /*
33 ** WEBPAGE: reportlist
34 **
35 ** Main menu for Tickets.
36 */
37 void view_list(void){
38 const char *zScript;
39 Blob ril; /* Report Item List */
40 Stmt q;
41 int rn = 0;
42 int cnt = 0;
@@ -299,11 +299,11 @@
299 ** URL: /rptsql?rn=N
300 **
301 ** Display the SQL query used to generate a ticket report. The rn=N
302 ** query parameter identifies the specific report number to be displayed.
303 */
304 void view_see_sql(void){
305 int rn;
306 const char *zTitle;
307 const char *zSQL;
308 const char *zOwner;
309 const char *zClrKey;
@@ -357,11 +357,11 @@
357 ** t=TITLE Title of the report format
358 ** w=USER Owner of the report format
359 ** s=SQL SQL text used to implement the report
360 ** k=KEY Color key
361 */
362 void view_edit(void){
363 int rn;
364 const char *zTitle;
365 const char *z;
366 const char *zOwner;
367 const char *zClrKey;
368
--- src/report.c
+++ src/report.c
@@ -32,11 +32,11 @@
32 /*
33 ** WEBPAGE: reportlist
34 **
35 ** Main menu for Tickets.
36 */
37 void reportlist_page(void){
38 const char *zScript;
39 Blob ril; /* Report Item List */
40 Stmt q;
41 int rn = 0;
42 int cnt = 0;
@@ -299,11 +299,11 @@
299 ** URL: /rptsql?rn=N
300 **
301 ** Display the SQL query used to generate a ticket report. The rn=N
302 ** query parameter identifies the specific report number to be displayed.
303 */
304 void rptsql_page(void){
305 int rn;
306 const char *zTitle;
307 const char *zSQL;
308 const char *zOwner;
309 const char *zClrKey;
@@ -357,11 +357,11 @@
357 ** t=TITLE Title of the report format
358 ** w=USER Owner of the report format
359 ** s=SQL SQL text used to implement the report
360 ** k=KEY Color key
361 */
362 void rptedit_page(void){
363 int rn;
364 const char *zTitle;
365 const char *z;
366 const char *zOwner;
367 const char *zClrKey;
368
+2 -2
--- src/rss.c
+++ src/rss.c
@@ -40,11 +40,11 @@
4040
** In addition, name=FILENAME filters for a specific file. This may be
4141
** combined with one of the other filters (useful for looking at a specific
4242
** branch).
4343
*/
4444
45
-void page_timeline_rss(void){
45
+void timeline_rss_page(void){
4646
Stmt q;
4747
int nLine=0;
4848
char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
4949
Blob bSQL;
5050
const char *zType = PD("y","all"); /* Type of events. All if NULL */
@@ -250,11 +250,11 @@
250250
**
251251
** -url STRING
252252
** Sets the RSS feed's root URL to the given string. The default is
253253
** "URL-PLACEHOLDER" (without quotes).
254254
*/
255
-void cmd_timeline_rss(void){
255
+void timeline_rss_cmd(void){
256256
Stmt q;
257257
int nLine=0;
258258
char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
259259
Blob bSQL;
260260
const char *zType = find_option("type","y",1); /* Type of events. All if NULL */
261261
--- src/rss.c
+++ src/rss.c
@@ -40,11 +40,11 @@
40 ** In addition, name=FILENAME filters for a specific file. This may be
41 ** combined with one of the other filters (useful for looking at a specific
42 ** branch).
43 */
44
45 void page_timeline_rss(void){
46 Stmt q;
47 int nLine=0;
48 char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
49 Blob bSQL;
50 const char *zType = PD("y","all"); /* Type of events. All if NULL */
@@ -250,11 +250,11 @@
250 **
251 ** -url STRING
252 ** Sets the RSS feed's root URL to the given string. The default is
253 ** "URL-PLACEHOLDER" (without quotes).
254 */
255 void cmd_timeline_rss(void){
256 Stmt q;
257 int nLine=0;
258 char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
259 Blob bSQL;
260 const char *zType = find_option("type","y",1); /* Type of events. All if NULL */
261
--- src/rss.c
+++ src/rss.c
@@ -40,11 +40,11 @@
40 ** In addition, name=FILENAME filters for a specific file. This may be
41 ** combined with one of the other filters (useful for looking at a specific
42 ** branch).
43 */
44
45 void timeline_rss_page(void){
46 Stmt q;
47 int nLine=0;
48 char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
49 Blob bSQL;
50 const char *zType = PD("y","all"); /* Type of events. All if NULL */
@@ -250,11 +250,11 @@
250 **
251 ** -url STRING
252 ** Sets the RSS feed's root URL to the given string. The default is
253 ** "URL-PLACEHOLDER" (without quotes).
254 */
255 void timeline_rss_cmd(void){
256 Stmt q;
257 int nLine=0;
258 char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
259 Blob bSQL;
260 const char *zType = find_option("type","y",1); /* Type of events. All if NULL */
261
+3 -3
--- src/search.c
+++ src/search.c
@@ -1459,11 +1459,11 @@
14591459
** Compute the search text for document TYPE-RID whose name is NAME.
14601460
** The TYPE is one of "c", "d", "t", "w", or "e". The RID is the document
14611461
** ID. The NAME is used to figure out a mimetype to use for formatting
14621462
** the raw document text.
14631463
*/
1464
-void test_search_stext(void){
1464
+void test_search_stext_cmd(void){
14651465
Blob out;
14661466
db_find_and_open_repository(0,0);
14671467
if( g.argc!=5 ) usage("TYPE RID NAME");
14681468
search_stext(g.argv[2][0], atoi(g.argv[3]), g.argv[4], &out);
14691469
fossil_print("%s\n",blob_str(&out));
@@ -1476,11 +1476,11 @@
14761476
** Usage: fossil test-convert-stext FILE MIMETYPE
14771477
**
14781478
** Read the content of FILE and convert it to stext according to MIMETYPE.
14791479
** Send the result to standard output.
14801480
*/
1481
-void test_convert_stext(void){
1481
+void test_convert_stext_cmd(void){
14821482
Blob in, out;
14831483
db_find_and_open_repository(0,0);
14841484
if( g.argc!=4 ) usage("FILENAME MIMETYPE");
14851485
blob_read_from_file(&in, g.argv[2], ExtFILE);
14861486
blob_init(&out, 0, 0);
@@ -1954,11 +1954,11 @@
19541954
/*
19551955
** WEBPAGE: test-ftsdocs
19561956
**
19571957
** Show a table of all documents currently in the search index.
19581958
*/
1959
-void search_data_page(void){
1959
+void test_ftsdocs_page(void){
19601960
Stmt q;
19611961
const char *zId = P("id");
19621962
const char *zType = P("y");
19631963
const char *zIdxed = P("ixed");
19641964
int id;
19651965
--- src/search.c
+++ src/search.c
@@ -1459,11 +1459,11 @@
1459 ** Compute the search text for document TYPE-RID whose name is NAME.
1460 ** The TYPE is one of "c", "d", "t", "w", or "e". The RID is the document
1461 ** ID. The NAME is used to figure out a mimetype to use for formatting
1462 ** the raw document text.
1463 */
1464 void test_search_stext(void){
1465 Blob out;
1466 db_find_and_open_repository(0,0);
1467 if( g.argc!=5 ) usage("TYPE RID NAME");
1468 search_stext(g.argv[2][0], atoi(g.argv[3]), g.argv[4], &out);
1469 fossil_print("%s\n",blob_str(&out));
@@ -1476,11 +1476,11 @@
1476 ** Usage: fossil test-convert-stext FILE MIMETYPE
1477 **
1478 ** Read the content of FILE and convert it to stext according to MIMETYPE.
1479 ** Send the result to standard output.
1480 */
1481 void test_convert_stext(void){
1482 Blob in, out;
1483 db_find_and_open_repository(0,0);
1484 if( g.argc!=4 ) usage("FILENAME MIMETYPE");
1485 blob_read_from_file(&in, g.argv[2], ExtFILE);
1486 blob_init(&out, 0, 0);
@@ -1954,11 +1954,11 @@
1954 /*
1955 ** WEBPAGE: test-ftsdocs
1956 **
1957 ** Show a table of all documents currently in the search index.
1958 */
1959 void search_data_page(void){
1960 Stmt q;
1961 const char *zId = P("id");
1962 const char *zType = P("y");
1963 const char *zIdxed = P("ixed");
1964 int id;
1965
--- src/search.c
+++ src/search.c
@@ -1459,11 +1459,11 @@
1459 ** Compute the search text for document TYPE-RID whose name is NAME.
1460 ** The TYPE is one of "c", "d", "t", "w", or "e". The RID is the document
1461 ** ID. The NAME is used to figure out a mimetype to use for formatting
1462 ** the raw document text.
1463 */
1464 void test_search_stext_cmd(void){
1465 Blob out;
1466 db_find_and_open_repository(0,0);
1467 if( g.argc!=5 ) usage("TYPE RID NAME");
1468 search_stext(g.argv[2][0], atoi(g.argv[3]), g.argv[4], &out);
1469 fossil_print("%s\n",blob_str(&out));
@@ -1476,11 +1476,11 @@
1476 ** Usage: fossil test-convert-stext FILE MIMETYPE
1477 **
1478 ** Read the content of FILE and convert it to stext according to MIMETYPE.
1479 ** Send the result to standard output.
1480 */
1481 void test_convert_stext_cmd(void){
1482 Blob in, out;
1483 db_find_and_open_repository(0,0);
1484 if( g.argc!=4 ) usage("FILENAME MIMETYPE");
1485 blob_read_from_file(&in, g.argv[2], ExtFILE);
1486 blob_init(&out, 0, 0);
@@ -1954,11 +1954,11 @@
1954 /*
1955 ** WEBPAGE: test-ftsdocs
1956 **
1957 ** Show a table of all documents currently in the search index.
1958 */
1959 void test_ftsdocs_page(void){
1960 Stmt q;
1961 const char *zId = P("id");
1962 const char *zType = P("y");
1963 const char *zIdxed = P("ixed");
1964 int id;
1965
+14 -14
--- src/setup.c
+++ src/setup.c
@@ -311,11 +311,11 @@
311311
/*
312312
** WEBPAGE: setup_access
313313
**
314314
** The access-control settings page. Requires Setup privileges.
315315
*/
316
-void setup_access(void){
316
+void setup_access_page(void){
317317
static const char *const azRedirectOpts[] = {
318318
"0", "Off",
319319
"1", "Login Page Only",
320320
"2", "All Pages"
321321
};
@@ -542,11 +542,11 @@
542542
** WEBPAGE: setup_login_group
543543
**
544544
** Change how the current repository participates in a login
545545
** group.
546546
*/
547
-void setup_login_group(void){
547
+void setup_login_group_page(void){
548548
const char *zGroup;
549549
char *zErrMsg = 0;
550550
Blob fullName;
551551
char *zSelfRepo;
552552
const char *zRepo = PD("repo", "");
@@ -665,11 +665,11 @@
665665
** WEBPAGE: setup_timeline
666666
**
667667
** Edit administrative settings controlling the display of
668668
** timelines.
669669
*/
670
-void setup_timeline(void){
670
+void setup_timeline_page(void){
671671
double tmDiff;
672672
char zTmDiff[20];
673673
static const char *const azTimeFormats[] = {
674674
"0", "HH:MM",
675675
"1", "HH:MM:SS",
@@ -804,11 +804,11 @@
804804
** WEBPAGE: setup_settings
805805
**
806806
** Change or view miscellaneous settings. Part of the
807807
** /setup pages requiring Setup privileges.
808808
*/
809
-void setup_settings(void){
809
+void setup_settings_page(void){
810810
int nSetting;
811811
int i;
812812
Setting const *pSet;
813813
const Setting *aSetting = setting_info(&nSetting);
814814
@@ -891,11 +891,11 @@
891891
/*
892892
** WEBPAGE: setup_config
893893
**
894894
** The "Admin/Configuration" page. Requires Setup privilege.
895895
*/
896
-void setup_config(void){
896
+void setup_config_page(void){
897897
login_check_credentials();
898898
if( !g.perm.Setup ){
899899
login_needed(0);
900900
return;
901901
}
@@ -987,11 +987,11 @@
987987
/*
988988
** WEBPAGE: setup_wiki
989989
**
990990
** The "Admin/Wiki" page. Requires Setup privilege.
991991
*/
992
-void setup_wiki(void){
992
+void setup_wiki_page(void){
993993
login_check_credentials();
994994
if( !g.perm.Setup ){
995995
login_needed(0);
996996
return;
997997
}
@@ -1047,11 +1047,11 @@
10471047
/*
10481048
** WEBPAGE: setup_modreq
10491049
**
10501050
** Admin page for setting up moderation of tickets and wiki.
10511051
*/
1052
-void setup_modreq(void){
1052
+void setup_modreq_page(void){
10531053
login_check_credentials();
10541054
if( !g.perm.Admin ){
10551055
login_needed(0);
10561056
return;
10571057
}
@@ -1095,11 +1095,11 @@
10951095
** WEBPAGE: setup_adunit
10961096
**
10971097
** Administrative page for configuring and controlling ad units
10981098
** and how they are displayed.
10991099
*/
1100
-void setup_adunit(void){
1100
+void setup_adunit_page(void){
11011101
login_check_credentials();
11021102
if( !g.perm.Admin ){
11031103
login_needed(0);
11041104
return;
11051105
}
@@ -1171,11 +1171,11 @@
11711171
/*
11721172
** WEBPAGE: setup_logo
11731173
**
11741174
** Administrative page for changing the logo image.
11751175
*/
1176
-void setup_logo(void){
1176
+void setup_logo_page(void){
11771177
const char *zLogoMtime = db_get_mtime("logo-image", 0, 0);
11781178
const char *zLogoMime = db_get("logo-mimetype","image/gif");
11791179
const char *aLogoImg = P("logoim");
11801180
int szLogoImg = atoi(PD("logoim:bytes","0"));
11811181
const char *zBgMtime = db_get_mtime("background-image", 0, 0);
@@ -1330,11 +1330,11 @@
13301330
** WEBPAGE: admin_sql
13311331
**
13321332
** Run raw SQL commands against the database file using the web interface.
13331333
** Requires Setup privileges.
13341334
*/
1335
-void sql_page(void){
1335
+void admin_sql_page(void){
13361336
const char *zQ;
13371337
int go = P("go")!=0;
13381338
login_check_credentials();
13391339
if( !g.perm.Setup ){
13401340
login_needed(0);
@@ -1469,11 +1469,11 @@
14691469
**
14701470
** Run raw TH1 commands using the web interface. If Tcl integration was
14711471
** enabled at compile-time and the "tcl" setting is enabled, Tcl commands
14721472
** may be run as well. Requires Admin privilege.
14731473
*/
1474
-void th1_page(void){
1474
+void admin_th1_page(void){
14751475
const char *zQ = P("q");
14761476
int go = P("go")!=0;
14771477
login_check_credentials();
14781478
if( !g.perm.Setup ){
14791479
login_needed(0);
@@ -1512,11 +1512,11 @@
15121512
**
15131513
** Shows the contents of the admin_log table, which is only created if
15141514
** the admin-log setting is enabled. Requires Admin or Setup ('a' or
15151515
** 's') permissions.
15161516
*/
1517
-void page_admin_log(){
1517
+void admin_log_page(){
15181518
Stmt stLog;
15191519
int limit; /* How many entries to show */
15201520
int ofst; /* Offset to the first entry */
15211521
int fLogEnabled;
15221522
int counter = 0;
@@ -1577,11 +1577,11 @@
15771577
/*
15781578
** WEBPAGE: srchsetup
15791579
**
15801580
** Configure the search engine. Requires Admin privilege.
15811581
*/
1582
-void page_srchsetup(){
1582
+void srchsetup_page(){
15831583
login_check_credentials();
15841584
if( !g.perm.Admin ){
15851585
login_needed(0);
15861586
return;
15871587
}
@@ -1699,11 +1699,11 @@
16991699
/*
17001700
** WEBPAGE: waliassetup
17011701
**
17021702
** Configure the URL aliases
17031703
*/
1704
-void page_waliassetup(){
1704
+void waliassetup_page(){
17051705
Stmt q;
17061706
int cnt = 0;
17071707
Blob namelist;
17081708
login_check_credentials();
17091709
if( !g.perm.Admin ){
17101710
--- src/setup.c
+++ src/setup.c
@@ -311,11 +311,11 @@
311 /*
312 ** WEBPAGE: setup_access
313 **
314 ** The access-control settings page. Requires Setup privileges.
315 */
316 void setup_access(void){
317 static const char *const azRedirectOpts[] = {
318 "0", "Off",
319 "1", "Login Page Only",
320 "2", "All Pages"
321 };
@@ -542,11 +542,11 @@
542 ** WEBPAGE: setup_login_group
543 **
544 ** Change how the current repository participates in a login
545 ** group.
546 */
547 void setup_login_group(void){
548 const char *zGroup;
549 char *zErrMsg = 0;
550 Blob fullName;
551 char *zSelfRepo;
552 const char *zRepo = PD("repo", "");
@@ -665,11 +665,11 @@
665 ** WEBPAGE: setup_timeline
666 **
667 ** Edit administrative settings controlling the display of
668 ** timelines.
669 */
670 void setup_timeline(void){
671 double tmDiff;
672 char zTmDiff[20];
673 static const char *const azTimeFormats[] = {
674 "0", "HH:MM",
675 "1", "HH:MM:SS",
@@ -804,11 +804,11 @@
804 ** WEBPAGE: setup_settings
805 **
806 ** Change or view miscellaneous settings. Part of the
807 ** /setup pages requiring Setup privileges.
808 */
809 void setup_settings(void){
810 int nSetting;
811 int i;
812 Setting const *pSet;
813 const Setting *aSetting = setting_info(&nSetting);
814
@@ -891,11 +891,11 @@
891 /*
892 ** WEBPAGE: setup_config
893 **
894 ** The "Admin/Configuration" page. Requires Setup privilege.
895 */
896 void setup_config(void){
897 login_check_credentials();
898 if( !g.perm.Setup ){
899 login_needed(0);
900 return;
901 }
@@ -987,11 +987,11 @@
987 /*
988 ** WEBPAGE: setup_wiki
989 **
990 ** The "Admin/Wiki" page. Requires Setup privilege.
991 */
992 void setup_wiki(void){
993 login_check_credentials();
994 if( !g.perm.Setup ){
995 login_needed(0);
996 return;
997 }
@@ -1047,11 +1047,11 @@
1047 /*
1048 ** WEBPAGE: setup_modreq
1049 **
1050 ** Admin page for setting up moderation of tickets and wiki.
1051 */
1052 void setup_modreq(void){
1053 login_check_credentials();
1054 if( !g.perm.Admin ){
1055 login_needed(0);
1056 return;
1057 }
@@ -1095,11 +1095,11 @@
1095 ** WEBPAGE: setup_adunit
1096 **
1097 ** Administrative page for configuring and controlling ad units
1098 ** and how they are displayed.
1099 */
1100 void setup_adunit(void){
1101 login_check_credentials();
1102 if( !g.perm.Admin ){
1103 login_needed(0);
1104 return;
1105 }
@@ -1171,11 +1171,11 @@
1171 /*
1172 ** WEBPAGE: setup_logo
1173 **
1174 ** Administrative page for changing the logo image.
1175 */
1176 void setup_logo(void){
1177 const char *zLogoMtime = db_get_mtime("logo-image", 0, 0);
1178 const char *zLogoMime = db_get("logo-mimetype","image/gif");
1179 const char *aLogoImg = P("logoim");
1180 int szLogoImg = atoi(PD("logoim:bytes","0"));
1181 const char *zBgMtime = db_get_mtime("background-image", 0, 0);
@@ -1330,11 +1330,11 @@
1330 ** WEBPAGE: admin_sql
1331 **
1332 ** Run raw SQL commands against the database file using the web interface.
1333 ** Requires Setup privileges.
1334 */
1335 void sql_page(void){
1336 const char *zQ;
1337 int go = P("go")!=0;
1338 login_check_credentials();
1339 if( !g.perm.Setup ){
1340 login_needed(0);
@@ -1469,11 +1469,11 @@
1469 **
1470 ** Run raw TH1 commands using the web interface. If Tcl integration was
1471 ** enabled at compile-time and the "tcl" setting is enabled, Tcl commands
1472 ** may be run as well. Requires Admin privilege.
1473 */
1474 void th1_page(void){
1475 const char *zQ = P("q");
1476 int go = P("go")!=0;
1477 login_check_credentials();
1478 if( !g.perm.Setup ){
1479 login_needed(0);
@@ -1512,11 +1512,11 @@
1512 **
1513 ** Shows the contents of the admin_log table, which is only created if
1514 ** the admin-log setting is enabled. Requires Admin or Setup ('a' or
1515 ** 's') permissions.
1516 */
1517 void page_admin_log(){
1518 Stmt stLog;
1519 int limit; /* How many entries to show */
1520 int ofst; /* Offset to the first entry */
1521 int fLogEnabled;
1522 int counter = 0;
@@ -1577,11 +1577,11 @@
1577 /*
1578 ** WEBPAGE: srchsetup
1579 **
1580 ** Configure the search engine. Requires Admin privilege.
1581 */
1582 void page_srchsetup(){
1583 login_check_credentials();
1584 if( !g.perm.Admin ){
1585 login_needed(0);
1586 return;
1587 }
@@ -1699,11 +1699,11 @@
1699 /*
1700 ** WEBPAGE: waliassetup
1701 **
1702 ** Configure the URL aliases
1703 */
1704 void page_waliassetup(){
1705 Stmt q;
1706 int cnt = 0;
1707 Blob namelist;
1708 login_check_credentials();
1709 if( !g.perm.Admin ){
1710
--- src/setup.c
+++ src/setup.c
@@ -311,11 +311,11 @@
311 /*
312 ** WEBPAGE: setup_access
313 **
314 ** The access-control settings page. Requires Setup privileges.
315 */
316 void setup_access_page(void){
317 static const char *const azRedirectOpts[] = {
318 "0", "Off",
319 "1", "Login Page Only",
320 "2", "All Pages"
321 };
@@ -542,11 +542,11 @@
542 ** WEBPAGE: setup_login_group
543 **
544 ** Change how the current repository participates in a login
545 ** group.
546 */
547 void setup_login_group_page(void){
548 const char *zGroup;
549 char *zErrMsg = 0;
550 Blob fullName;
551 char *zSelfRepo;
552 const char *zRepo = PD("repo", "");
@@ -665,11 +665,11 @@
665 ** WEBPAGE: setup_timeline
666 **
667 ** Edit administrative settings controlling the display of
668 ** timelines.
669 */
670 void setup_timeline_page(void){
671 double tmDiff;
672 char zTmDiff[20];
673 static const char *const azTimeFormats[] = {
674 "0", "HH:MM",
675 "1", "HH:MM:SS",
@@ -804,11 +804,11 @@
804 ** WEBPAGE: setup_settings
805 **
806 ** Change or view miscellaneous settings. Part of the
807 ** /setup pages requiring Setup privileges.
808 */
809 void setup_settings_page(void){
810 int nSetting;
811 int i;
812 Setting const *pSet;
813 const Setting *aSetting = setting_info(&nSetting);
814
@@ -891,11 +891,11 @@
891 /*
892 ** WEBPAGE: setup_config
893 **
894 ** The "Admin/Configuration" page. Requires Setup privilege.
895 */
896 void setup_config_page(void){
897 login_check_credentials();
898 if( !g.perm.Setup ){
899 login_needed(0);
900 return;
901 }
@@ -987,11 +987,11 @@
987 /*
988 ** WEBPAGE: setup_wiki
989 **
990 ** The "Admin/Wiki" page. Requires Setup privilege.
991 */
992 void setup_wiki_page(void){
993 login_check_credentials();
994 if( !g.perm.Setup ){
995 login_needed(0);
996 return;
997 }
@@ -1047,11 +1047,11 @@
1047 /*
1048 ** WEBPAGE: setup_modreq
1049 **
1050 ** Admin page for setting up moderation of tickets and wiki.
1051 */
1052 void setup_modreq_page(void){
1053 login_check_credentials();
1054 if( !g.perm.Admin ){
1055 login_needed(0);
1056 return;
1057 }
@@ -1095,11 +1095,11 @@
1095 ** WEBPAGE: setup_adunit
1096 **
1097 ** Administrative page for configuring and controlling ad units
1098 ** and how they are displayed.
1099 */
1100 void setup_adunit_page(void){
1101 login_check_credentials();
1102 if( !g.perm.Admin ){
1103 login_needed(0);
1104 return;
1105 }
@@ -1171,11 +1171,11 @@
1171 /*
1172 ** WEBPAGE: setup_logo
1173 **
1174 ** Administrative page for changing the logo image.
1175 */
1176 void setup_logo_page(void){
1177 const char *zLogoMtime = db_get_mtime("logo-image", 0, 0);
1178 const char *zLogoMime = db_get("logo-mimetype","image/gif");
1179 const char *aLogoImg = P("logoim");
1180 int szLogoImg = atoi(PD("logoim:bytes","0"));
1181 const char *zBgMtime = db_get_mtime("background-image", 0, 0);
@@ -1330,11 +1330,11 @@
1330 ** WEBPAGE: admin_sql
1331 **
1332 ** Run raw SQL commands against the database file using the web interface.
1333 ** Requires Setup privileges.
1334 */
1335 void admin_sql_page(void){
1336 const char *zQ;
1337 int go = P("go")!=0;
1338 login_check_credentials();
1339 if( !g.perm.Setup ){
1340 login_needed(0);
@@ -1469,11 +1469,11 @@
1469 **
1470 ** Run raw TH1 commands using the web interface. If Tcl integration was
1471 ** enabled at compile-time and the "tcl" setting is enabled, Tcl commands
1472 ** may be run as well. Requires Admin privilege.
1473 */
1474 void admin_th1_page(void){
1475 const char *zQ = P("q");
1476 int go = P("go")!=0;
1477 login_check_credentials();
1478 if( !g.perm.Setup ){
1479 login_needed(0);
@@ -1512,11 +1512,11 @@
1512 **
1513 ** Shows the contents of the admin_log table, which is only created if
1514 ** the admin-log setting is enabled. Requires Admin or Setup ('a' or
1515 ** 's') permissions.
1516 */
1517 void admin_log_page(){
1518 Stmt stLog;
1519 int limit; /* How many entries to show */
1520 int ofst; /* Offset to the first entry */
1521 int fLogEnabled;
1522 int counter = 0;
@@ -1577,11 +1577,11 @@
1577 /*
1578 ** WEBPAGE: srchsetup
1579 **
1580 ** Configure the search engine. Requires Admin privilege.
1581 */
1582 void srchsetup_page(){
1583 login_check_credentials();
1584 if( !g.perm.Admin ){
1585 login_needed(0);
1586 return;
1587 }
@@ -1699,11 +1699,11 @@
1699 /*
1700 ** WEBPAGE: waliassetup
1701 **
1702 ** Configure the URL aliases
1703 */
1704 void waliassetup_page(){
1705 Stmt q;
1706 int cnt = 0;
1707 Blob namelist;
1708 login_check_credentials();
1709 if( !g.perm.Admin ){
1710
+4 -4
--- src/setupuser.c
+++ src/setupuser.c
@@ -31,11 +31,11 @@
3131
**
3232
** Query parameters:
3333
**
3434
** with=CAP Only show users that have one or more capabilities in CAP.
3535
*/
36
-void setup_ulist(void){
36
+void setup_ulist_page(void){
3737
Stmt s;
3838
double rNow;
3939
const char *zWith = P("with");
4040
int bUnusedOnly = P("unused")!=0;
4141
@@ -190,11 +190,11 @@
190190
**
191191
** A documentation page showing notes about user configuration. This
192192
** information used to be a side-bar on the user list page, but has been
193193
** factored out for improved presentation.
194194
*/
195
-void setup_ulist_notes(void){
195
+void setup_ulist_notes_page(void){
196196
style_header("User Configuration Notes");
197197
@ <h1>User Configuration Notes:</h1>
198198
@ <ol>
199199
@ <li><p>
200200
@ Every user, logged in or not, inherits the privileges of
@@ -235,11 +235,11 @@
235235
** WEBPAGE: setup_ucap_list
236236
**
237237
** A documentation page showing the meaning of the various user capabilities
238238
** code letters.
239239
*/
240
-void setup_ucap_list(void){
240
+void setup_ucap_list_page(void){
241241
style_header("User Capability Codes");
242242
@ <h1>All capabilities</h1>
243243
capabilities_table(CAPCLASS_ALL);
244244
@ <h1>Capabilities associated with checked-in content</h1>
245245
capabilities_table(CAPCLASS_CODE);
@@ -276,11 +276,11 @@
276276
** WEBPAGE: setup_uedit
277277
**
278278
** Edit information about a user or create a new user.
279279
** Requires Admin privileges.
280280
*/
281
-void user_edit(void){
281
+void setup_uedit_page(void){
282282
const char *zId, *zLogin, *zInfo, *zCap, *zPw;
283283
const char *zGroup;
284284
const char *zOldLogin;
285285
int uid, i;
286286
char *zDeleteVerify = 0; /* Delete user verification text */
287287
--- src/setupuser.c
+++ src/setupuser.c
@@ -31,11 +31,11 @@
31 **
32 ** Query parameters:
33 **
34 ** with=CAP Only show users that have one or more capabilities in CAP.
35 */
36 void setup_ulist(void){
37 Stmt s;
38 double rNow;
39 const char *zWith = P("with");
40 int bUnusedOnly = P("unused")!=0;
41
@@ -190,11 +190,11 @@
190 **
191 ** A documentation page showing notes about user configuration. This
192 ** information used to be a side-bar on the user list page, but has been
193 ** factored out for improved presentation.
194 */
195 void setup_ulist_notes(void){
196 style_header("User Configuration Notes");
197 @ <h1>User Configuration Notes:</h1>
198 @ <ol>
199 @ <li><p>
200 @ Every user, logged in or not, inherits the privileges of
@@ -235,11 +235,11 @@
235 ** WEBPAGE: setup_ucap_list
236 **
237 ** A documentation page showing the meaning of the various user capabilities
238 ** code letters.
239 */
240 void setup_ucap_list(void){
241 style_header("User Capability Codes");
242 @ <h1>All capabilities</h1>
243 capabilities_table(CAPCLASS_ALL);
244 @ <h1>Capabilities associated with checked-in content</h1>
245 capabilities_table(CAPCLASS_CODE);
@@ -276,11 +276,11 @@
276 ** WEBPAGE: setup_uedit
277 **
278 ** Edit information about a user or create a new user.
279 ** Requires Admin privileges.
280 */
281 void user_edit(void){
282 const char *zId, *zLogin, *zInfo, *zCap, *zPw;
283 const char *zGroup;
284 const char *zOldLogin;
285 int uid, i;
286 char *zDeleteVerify = 0; /* Delete user verification text */
287
--- src/setupuser.c
+++ src/setupuser.c
@@ -31,11 +31,11 @@
31 **
32 ** Query parameters:
33 **
34 ** with=CAP Only show users that have one or more capabilities in CAP.
35 */
36 void setup_ulist_page(void){
37 Stmt s;
38 double rNow;
39 const char *zWith = P("with");
40 int bUnusedOnly = P("unused")!=0;
41
@@ -190,11 +190,11 @@
190 **
191 ** A documentation page showing notes about user configuration. This
192 ** information used to be a side-bar on the user list page, but has been
193 ** factored out for improved presentation.
194 */
195 void setup_ulist_notes_page(void){
196 style_header("User Configuration Notes");
197 @ <h1>User Configuration Notes:</h1>
198 @ <ol>
199 @ <li><p>
200 @ Every user, logged in or not, inherits the privileges of
@@ -235,11 +235,11 @@
235 ** WEBPAGE: setup_ucap_list
236 **
237 ** A documentation page showing the meaning of the various user capabilities
238 ** code letters.
239 */
240 void setup_ucap_list_page(void){
241 style_header("User Capability Codes");
242 @ <h1>All capabilities</h1>
243 capabilities_table(CAPCLASS_ALL);
244 @ <h1>Capabilities associated with checked-in content</h1>
245 capabilities_table(CAPCLASS_CODE);
@@ -276,11 +276,11 @@
276 ** WEBPAGE: setup_uedit
277 **
278 ** Edit information about a user or create a new user.
279 ** Requires Admin privileges.
280 */
281 void setup_uedit_page(void){
282 const char *zId, *zLogin, *zInfo, *zCap, *zPw;
283 const char *zGroup;
284 const char *zOldLogin;
285 int uid, i;
286 char *zDeleteVerify = 0; /* Delete user verification text */
287
+1 -1
--- src/sha1.c
+++ src/sha1.c
@@ -508,11 +508,11 @@
508508
** -h, --dereference If FILE is a symbolic link, compute the hash
509509
** on the object that the link points to. Normally,
510510
** the hash is over the name of the object that
511511
** the link points to.
512512
*/
513
-void sha1sum_test(void){
513
+void sha1sum_cmd(void){
514514
int i;
515515
Blob in;
516516
Blob cksum;
517517
int eFType = SymFILE;
518518
if( find_option("dereference","h",0)!=0 ){
519519
--- src/sha1.c
+++ src/sha1.c
@@ -508,11 +508,11 @@
508 ** -h, --dereference If FILE is a symbolic link, compute the hash
509 ** on the object that the link points to. Normally,
510 ** the hash is over the name of the object that
511 ** the link points to.
512 */
513 void sha1sum_test(void){
514 int i;
515 Blob in;
516 Blob cksum;
517 int eFType = SymFILE;
518 if( find_option("dereference","h",0)!=0 ){
519
--- src/sha1.c
+++ src/sha1.c
@@ -508,11 +508,11 @@
508 ** -h, --dereference If FILE is a symbolic link, compute the hash
509 ** on the object that the link points to. Normally,
510 ** the hash is over the name of the object that
511 ** the link points to.
512 */
513 void sha1sum_cmd(void){
514 int i;
515 Blob in;
516 Blob cksum;
517 int eFType = SymFILE;
518 if( find_option("dereference","h",0)!=0 ){
519
+1 -1
--- src/sha3.c
+++ src/sha3.c
@@ -638,11 +638,11 @@
638638
** --size N An N-bit hash. N must be a multiple of 32 between
639639
** 128 and 512.
640640
** -h, --dereference If FILE is a symbolic link, compute the hash on
641641
** the object pointed to, not on the link itself.
642642
*/
643
-void sha3sum_test(void){
643
+void sha3sum_cmd(void){
644644
int i;
645645
Blob in;
646646
Blob cksum;
647647
int iSize = 256;
648648
int eFType = SymFILE;
649649
--- src/sha3.c
+++ src/sha3.c
@@ -638,11 +638,11 @@
638 ** --size N An N-bit hash. N must be a multiple of 32 between
639 ** 128 and 512.
640 ** -h, --dereference If FILE is a symbolic link, compute the hash on
641 ** the object pointed to, not on the link itself.
642 */
643 void sha3sum_test(void){
644 int i;
645 Blob in;
646 Blob cksum;
647 int iSize = 256;
648 int eFType = SymFILE;
649
--- src/sha3.c
+++ src/sha3.c
@@ -638,11 +638,11 @@
638 ** --size N An N-bit hash. N must be a multiple of 32 between
639 ** 128 and 512.
640 ** -h, --dereference If FILE is a symbolic link, compute the hash on
641 ** the object pointed to, not on the link itself.
642 */
643 void sha3sum_cmd(void){
644 int i;
645 Blob in;
646 Blob cksum;
647 int iSize = 256;
648 int eFType = SymFILE;
649
+3 -3
--- src/skins.c
+++ src/skins.c
@@ -448,11 +448,11 @@
448448
/*
449449
** WEBPAGE: setup_skin_admin
450450
**
451451
** Administrative actions on skins. For administrators only.
452452
*/
453
-void setup_skin_admin(void){
453
+void setup_skin_admin_page(void){
454454
const char *z;
455455
char *zName;
456456
char *zErr = 0;
457457
const char *zCurrent = 0; /* Current skin */
458458
int i; /* Loop counter */
@@ -698,11 +698,11 @@
698698
** Requires Admin or Setup privileges.
699699
**
700700
** w=NUM -- 0=CSS, 1=footer, 2=header, 3=details, 4=js
701701
** sk=NUM -- the draft skin number
702702
*/
703
-void setup_skinedit(void){
703
+void setup_skinedit_page(void){
704704
static const struct sSkinAddr {
705705
const char *zFile;
706706
const char *zTitle;
707707
const char *zSubmenu;
708708
} aSkinAttr[] = {
@@ -874,11 +874,11 @@
874874
/*
875875
** WEBPAGE: setup_skin
876876
**
877877
** Generate a page showing the steps needed to customize a skin.
878878
*/
879
-void setup_skin(void){
879
+void setup_skin_page(void){
880880
int i; /* Loop counter */
881881
int iSkin; /* Which draft skin is being edited */
882882
int isSetup; /* True for an administrator */
883883
int isEditor; /* Others authorized to make edits */
884884
char *zAllowedEditors; /* Who may edit the draft skin */
885885
--- src/skins.c
+++ src/skins.c
@@ -448,11 +448,11 @@
448 /*
449 ** WEBPAGE: setup_skin_admin
450 **
451 ** Administrative actions on skins. For administrators only.
452 */
453 void setup_skin_admin(void){
454 const char *z;
455 char *zName;
456 char *zErr = 0;
457 const char *zCurrent = 0; /* Current skin */
458 int i; /* Loop counter */
@@ -698,11 +698,11 @@
698 ** Requires Admin or Setup privileges.
699 **
700 ** w=NUM -- 0=CSS, 1=footer, 2=header, 3=details, 4=js
701 ** sk=NUM -- the draft skin number
702 */
703 void setup_skinedit(void){
704 static const struct sSkinAddr {
705 const char *zFile;
706 const char *zTitle;
707 const char *zSubmenu;
708 } aSkinAttr[] = {
@@ -874,11 +874,11 @@
874 /*
875 ** WEBPAGE: setup_skin
876 **
877 ** Generate a page showing the steps needed to customize a skin.
878 */
879 void setup_skin(void){
880 int i; /* Loop counter */
881 int iSkin; /* Which draft skin is being edited */
882 int isSetup; /* True for an administrator */
883 int isEditor; /* Others authorized to make edits */
884 char *zAllowedEditors; /* Who may edit the draft skin */
885
--- src/skins.c
+++ src/skins.c
@@ -448,11 +448,11 @@
448 /*
449 ** WEBPAGE: setup_skin_admin
450 **
451 ** Administrative actions on skins. For administrators only.
452 */
453 void setup_skin_admin_page(void){
454 const char *z;
455 char *zName;
456 char *zErr = 0;
457 const char *zCurrent = 0; /* Current skin */
458 int i; /* Loop counter */
@@ -698,11 +698,11 @@
698 ** Requires Admin or Setup privileges.
699 **
700 ** w=NUM -- 0=CSS, 1=footer, 2=header, 3=details, 4=js
701 ** sk=NUM -- the draft skin number
702 */
703 void setup_skinedit_page(void){
704 static const struct sSkinAddr {
705 const char *zFile;
706 const char *zTitle;
707 const char *zSubmenu;
708 } aSkinAttr[] = {
@@ -874,11 +874,11 @@
874 /*
875 ** WEBPAGE: setup_skin
876 **
877 ** Generate a page showing the steps needed to customize a skin.
878 */
879 void setup_skin_page(void){
880 int i; /* Loop counter */
881 int iSkin; /* Which draft skin is being edited */
882 int isSetup; /* True for an administrator */
883 int isEditor; /* Others authorized to make edits */
884 char *zAllowedEditors; /* Who may edit the draft skin */
885
+9 -9
--- src/smtp.c
+++ src/smtp.c
@@ -133,11 +133,11 @@
133133
** Usage: %fossil test-find-mx DOMAIN ...
134134
**
135135
** Do a DNS MX lookup to find the hostname for sending email for
136136
** DOMAIN.
137137
*/
138
-void test_find_mx(void){
138
+void test_find_mx_cmd(void){
139139
int i;
140140
if( g.argc<=2 ){
141141
usage("DOMAIN ...");
142142
}
143143
for(i=2; i<g.argc; i++){
@@ -427,11 +427,11 @@
427427
** Options:
428428
**
429429
** --direct Use DOMAIN directly without going through MX
430430
** --port N Talk on TCP port N
431431
*/
432
-void test_smtp_probe(void){
432
+void test_smtp_probe_cmd(void){
433433
SmtpSession *p;
434434
const char *zDomain;
435435
const char *zSelf;
436436
const char *zPort;
437437
int iPort = 25;
@@ -507,11 +507,11 @@
507507
**
508508
** Read content from FILE, then send it to stdout encoded as if sent
509509
** to the DATA portion of an SMTP session. This command is used to
510510
** test the encoding logic.
511511
*/
512
-void test_smtp_senddata(void){
512
+void test_smtp_senddata_cmd(void){
513513
Blob f;
514514
if( g.argc!=3 ) usage("FILE");
515515
blob_read_from_file(&f, g.argv[2], ExtFILE);
516516
smtp_send_email_body(blob_str(&f), smtp_test_sender, 0);
517517
blob_reset(&f);
@@ -602,11 +602,11 @@
602602
** --direct Go directly to the TO domain. Bypass MX lookup
603603
** --relayhost R Use R as relay host directly for delivery.
604604
** --port N Use TCP port N instead of 25
605605
** --trace Show the SMTP conversation on the console
606606
*/
607
-void test_smtp_send(void){
607
+void test_smtp_send_cmd(void){
608608
SmtpSession *p;
609609
const char *zFrom;
610610
int nTo;
611611
const char *zToDomain;
612612
const char *zFromDomain;
@@ -761,11 +761,11 @@
761761
**
762762
** Administrative page for configuring and controlling inbound email and
763763
** output email queuing. This page is available to administrators
764764
** only via the /Admin/EmailServer menu.
765765
*/
766
-void setup_smtp(void){
766
+void setup_smtp_page(void){
767767
Stmt q;
768768
login_check_credentials();
769769
if( !g.perm.Setup ){
770770
login_needed(0);
771771
return;
@@ -822,11 +822,11 @@
822822
** oaddr=ADDR The original email address prior to editing.
823823
** Omit to add a new address.
824824
**
825825
** epolicy=TXT The routing policy.
826826
*/
827
-void setup_smtp_route(void){
827
+void setup_smtp_route_page(void){
828828
char *zEAddr = PT("eaddr"); /* new email address */
829829
char *zEPolicy = PT("epolicy"); /* new routing policy */
830830
char *zOAddr = PT("oaddr"); /* original email address */
831831
char *zErr = 0;
832832
int iErr = 0;
@@ -1258,11 +1258,11 @@
12581258
** Use the --repair command to fix up the enref field. The --full option
12591259
** gives a full report showing the enref value on all entries in the
12601260
** emailblob table. If the --clean flags is used together with --repair,
12611261
** then emailblob table entires with enref==0 are removed.
12621262
*/
1263
-void test_refcheck_emailblob(void){
1263
+void test_emailblob_refcheck_cmd(void){
12641264
int doRepair;
12651265
int fullReport;
12661266
int doClean;
12671267
Blob sql;
12681268
Stmt q;
@@ -1336,11 +1336,11 @@
13361336
**
13371337
** --ipaddr ADDR The SMTP connection originates at ADDR. Or if ADDR
13381338
** is the name of an environment variable, the address
13391339
** is taken from that environment variable.
13401340
*/
1341
-void smtp_server(void){
1341
+void smtp_server_cmd(void){
13421342
char *zDbName;
13431343
const char *zDomain;
13441344
SmtpServer x;
13451345
char z[5000];
13461346
@@ -1482,11 +1482,11 @@
14821482
** --logdir DIR Each pop3d session creates a new logfile
14831483
** in the directory DIR and records a transcript
14841484
** of the session there. The logfile is opened
14851485
** before entering the chroot jail.
14861486
*/
1487
-void pop3d_command(void){
1487
+void pop3d_cmd(void){
14881488
char *zDbName;
14891489
char *zA1, *zA2, *zCmd, *z;
14901490
int inAuth = 1;
14911491
int i;
14921492
FILE *pLog = 0;
14931493
--- src/smtp.c
+++ src/smtp.c
@@ -133,11 +133,11 @@
133 ** Usage: %fossil test-find-mx DOMAIN ...
134 **
135 ** Do a DNS MX lookup to find the hostname for sending email for
136 ** DOMAIN.
137 */
138 void test_find_mx(void){
139 int i;
140 if( g.argc<=2 ){
141 usage("DOMAIN ...");
142 }
143 for(i=2; i<g.argc; i++){
@@ -427,11 +427,11 @@
427 ** Options:
428 **
429 ** --direct Use DOMAIN directly without going through MX
430 ** --port N Talk on TCP port N
431 */
432 void test_smtp_probe(void){
433 SmtpSession *p;
434 const char *zDomain;
435 const char *zSelf;
436 const char *zPort;
437 int iPort = 25;
@@ -507,11 +507,11 @@
507 **
508 ** Read content from FILE, then send it to stdout encoded as if sent
509 ** to the DATA portion of an SMTP session. This command is used to
510 ** test the encoding logic.
511 */
512 void test_smtp_senddata(void){
513 Blob f;
514 if( g.argc!=3 ) usage("FILE");
515 blob_read_from_file(&f, g.argv[2], ExtFILE);
516 smtp_send_email_body(blob_str(&f), smtp_test_sender, 0);
517 blob_reset(&f);
@@ -602,11 +602,11 @@
602 ** --direct Go directly to the TO domain. Bypass MX lookup
603 ** --relayhost R Use R as relay host directly for delivery.
604 ** --port N Use TCP port N instead of 25
605 ** --trace Show the SMTP conversation on the console
606 */
607 void test_smtp_send(void){
608 SmtpSession *p;
609 const char *zFrom;
610 int nTo;
611 const char *zToDomain;
612 const char *zFromDomain;
@@ -761,11 +761,11 @@
761 **
762 ** Administrative page for configuring and controlling inbound email and
763 ** output email queuing. This page is available to administrators
764 ** only via the /Admin/EmailServer menu.
765 */
766 void setup_smtp(void){
767 Stmt q;
768 login_check_credentials();
769 if( !g.perm.Setup ){
770 login_needed(0);
771 return;
@@ -822,11 +822,11 @@
822 ** oaddr=ADDR The original email address prior to editing.
823 ** Omit to add a new address.
824 **
825 ** epolicy=TXT The routing policy.
826 */
827 void setup_smtp_route(void){
828 char *zEAddr = PT("eaddr"); /* new email address */
829 char *zEPolicy = PT("epolicy"); /* new routing policy */
830 char *zOAddr = PT("oaddr"); /* original email address */
831 char *zErr = 0;
832 int iErr = 0;
@@ -1258,11 +1258,11 @@
1258 ** Use the --repair command to fix up the enref field. The --full option
1259 ** gives a full report showing the enref value on all entries in the
1260 ** emailblob table. If the --clean flags is used together with --repair,
1261 ** then emailblob table entires with enref==0 are removed.
1262 */
1263 void test_refcheck_emailblob(void){
1264 int doRepair;
1265 int fullReport;
1266 int doClean;
1267 Blob sql;
1268 Stmt q;
@@ -1336,11 +1336,11 @@
1336 **
1337 ** --ipaddr ADDR The SMTP connection originates at ADDR. Or if ADDR
1338 ** is the name of an environment variable, the address
1339 ** is taken from that environment variable.
1340 */
1341 void smtp_server(void){
1342 char *zDbName;
1343 const char *zDomain;
1344 SmtpServer x;
1345 char z[5000];
1346
@@ -1482,11 +1482,11 @@
1482 ** --logdir DIR Each pop3d session creates a new logfile
1483 ** in the directory DIR and records a transcript
1484 ** of the session there. The logfile is opened
1485 ** before entering the chroot jail.
1486 */
1487 void pop3d_command(void){
1488 char *zDbName;
1489 char *zA1, *zA2, *zCmd, *z;
1490 int inAuth = 1;
1491 int i;
1492 FILE *pLog = 0;
1493
--- src/smtp.c
+++ src/smtp.c
@@ -133,11 +133,11 @@
133 ** Usage: %fossil test-find-mx DOMAIN ...
134 **
135 ** Do a DNS MX lookup to find the hostname for sending email for
136 ** DOMAIN.
137 */
138 void test_find_mx_cmd(void){
139 int i;
140 if( g.argc<=2 ){
141 usage("DOMAIN ...");
142 }
143 for(i=2; i<g.argc; i++){
@@ -427,11 +427,11 @@
427 ** Options:
428 **
429 ** --direct Use DOMAIN directly without going through MX
430 ** --port N Talk on TCP port N
431 */
432 void test_smtp_probe_cmd(void){
433 SmtpSession *p;
434 const char *zDomain;
435 const char *zSelf;
436 const char *zPort;
437 int iPort = 25;
@@ -507,11 +507,11 @@
507 **
508 ** Read content from FILE, then send it to stdout encoded as if sent
509 ** to the DATA portion of an SMTP session. This command is used to
510 ** test the encoding logic.
511 */
512 void test_smtp_senddata_cmd(void){
513 Blob f;
514 if( g.argc!=3 ) usage("FILE");
515 blob_read_from_file(&f, g.argv[2], ExtFILE);
516 smtp_send_email_body(blob_str(&f), smtp_test_sender, 0);
517 blob_reset(&f);
@@ -602,11 +602,11 @@
602 ** --direct Go directly to the TO domain. Bypass MX lookup
603 ** --relayhost R Use R as relay host directly for delivery.
604 ** --port N Use TCP port N instead of 25
605 ** --trace Show the SMTP conversation on the console
606 */
607 void test_smtp_send_cmd(void){
608 SmtpSession *p;
609 const char *zFrom;
610 int nTo;
611 const char *zToDomain;
612 const char *zFromDomain;
@@ -761,11 +761,11 @@
761 **
762 ** Administrative page for configuring and controlling inbound email and
763 ** output email queuing. This page is available to administrators
764 ** only via the /Admin/EmailServer menu.
765 */
766 void setup_smtp_page(void){
767 Stmt q;
768 login_check_credentials();
769 if( !g.perm.Setup ){
770 login_needed(0);
771 return;
@@ -822,11 +822,11 @@
822 ** oaddr=ADDR The original email address prior to editing.
823 ** Omit to add a new address.
824 **
825 ** epolicy=TXT The routing policy.
826 */
827 void setup_smtp_route_page(void){
828 char *zEAddr = PT("eaddr"); /* new email address */
829 char *zEPolicy = PT("epolicy"); /* new routing policy */
830 char *zOAddr = PT("oaddr"); /* original email address */
831 char *zErr = 0;
832 int iErr = 0;
@@ -1258,11 +1258,11 @@
1258 ** Use the --repair command to fix up the enref field. The --full option
1259 ** gives a full report showing the enref value on all entries in the
1260 ** emailblob table. If the --clean flags is used together with --repair,
1261 ** then emailblob table entires with enref==0 are removed.
1262 */
1263 void test_emailblob_refcheck_cmd(void){
1264 int doRepair;
1265 int fullReport;
1266 int doClean;
1267 Blob sql;
1268 Stmt q;
@@ -1336,11 +1336,11 @@
1336 **
1337 ** --ipaddr ADDR The SMTP connection originates at ADDR. Or if ADDR
1338 ** is the name of an environment variable, the address
1339 ** is taken from that environment variable.
1340 */
1341 void smtp_server_cmd(void){
1342 char *zDbName;
1343 const char *zDomain;
1344 SmtpServer x;
1345 char z[5000];
1346
@@ -1482,11 +1482,11 @@
1482 ** --logdir DIR Each pop3d session creates a new logfile
1483 ** in the directory DIR and records a transcript
1484 ** of the session there. The logfile is opened
1485 ** before entering the chroot jail.
1486 */
1487 void pop3d_cmd(void){
1488 char *zDbName;
1489 char *zA1, *zA2, *zCmd, *z;
1490 int inAuth = 1;
1491 int i;
1492 FILE *pLog = 0;
1493
+1 -1
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -315,11 +315,11 @@
315315
** standard SQLite.
316316
**
317317
** symbolic_name_to_rid(X) Return the BLOB.RID corresponding to symbolic
318318
** name X.
319319
*/
320
-void cmd_sqlite3(void){
320
+void sqlite3_cmd(void){
321321
int noRepository;
322322
char *zConfigDb;
323323
extern int sqlite3_shell(int, char**);
324324
#ifdef FOSSIL_ENABLE_TH1_HOOKS
325325
g.fNoThHook = 1;
326326
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -315,11 +315,11 @@
315 ** standard SQLite.
316 **
317 ** symbolic_name_to_rid(X) Return the BLOB.RID corresponding to symbolic
318 ** name X.
319 */
320 void cmd_sqlite3(void){
321 int noRepository;
322 char *zConfigDb;
323 extern int sqlite3_shell(int, char**);
324 #ifdef FOSSIL_ENABLE_TH1_HOOKS
325 g.fNoThHook = 1;
326
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -315,11 +315,11 @@
315 ** standard SQLite.
316 **
317 ** symbolic_name_to_rid(X) Return the BLOB.RID corresponding to symbolic
318 ** name X.
319 */
320 void sqlite3_cmd(void){
321 int noRepository;
322 char *zConfigDb;
323 extern int sqlite3_shell(int, char**);
324 #ifdef FOSSIL_ENABLE_TH1_HOOKS
325 g.fNoThHook = 1;
326
+1 -1
--- src/statrep.c
+++ src/statrep.c
@@ -735,11 +735,11 @@
735735
** view=byweek:
736736
**
737737
** y=YYYY The year to report (default is the server's
738738
** current year).
739739
*/
740
-void stats_report_page(){
740
+void reports_page(){
741741
const char *zView = P("view"); /* Which view/report to show. */
742742
int eType = RPT_NONE; /* Numeric code for view/report to show */
743743
int i; /* Loop counter */
744744
const char *zUserName; /* Name of user */
745745
const char *azView[16]; /* Drop-down menu of view types */
746746
--- src/statrep.c
+++ src/statrep.c
@@ -735,11 +735,11 @@
735 ** view=byweek:
736 **
737 ** y=YYYY The year to report (default is the server's
738 ** current year).
739 */
740 void stats_report_page(){
741 const char *zView = P("view"); /* Which view/report to show. */
742 int eType = RPT_NONE; /* Numeric code for view/report to show */
743 int i; /* Loop counter */
744 const char *zUserName; /* Name of user */
745 const char *azView[16]; /* Drop-down menu of view types */
746
--- src/statrep.c
+++ src/statrep.c
@@ -735,11 +735,11 @@
735 ** view=byweek:
736 **
737 ** y=YYYY The year to report (default is the server's
738 ** current year).
739 */
740 void reports_page(){
741 const char *zView = P("view"); /* Which view/report to show. */
742 int eType = RPT_NONE; /* Numeric code for view/report to show */
743 int i; /* Loop counter */
744 const char *zUserName; /* Name of user */
745 const char *azView[16]; /* Drop-down menu of view types */
746
+5 -5
--- src/style.c
+++ src/style.c
@@ -1014,11 +1014,11 @@
10141014
**
10151015
** Usage: %fossil test-contains-selector FILENAME SELECTOR
10161016
**
10171017
** Determine if the CSS stylesheet FILENAME contains SELECTOR.
10181018
*/
1019
-void contains_selector_cmd(void){
1019
+void test_contains_selector_cmd(void){
10201020
int found;
10211021
char *zSelector;
10221022
Blob css;
10231023
if( g.argc!=4 ) usage("FILENAME SELECTOR");
10241024
blob_read_from_file(&css, g.argv[2], ExtFILE);
@@ -1031,11 +1031,11 @@
10311031
/*
10321032
** WEBPAGE: script.js
10331033
**
10341034
** Return the "Javascript" content for the current skin (if there is any)
10351035
*/
1036
-void page_script_js(void){
1036
+void script_js_page(void){
10371037
const char *zScript = skin_get("js");
10381038
if( P("test") ){
10391039
/* Render the script as plain-text for testing purposes, if the "test"
10401040
** query parameter is present */
10411041
cgi_set_content_type("text/plain");
@@ -1051,11 +1051,11 @@
10511051
/*
10521052
** WEBPAGE: style.css
10531053
**
10541054
** Return the style sheet.
10551055
*/
1056
-void page_style_css(void){
1056
+void style_css_page(void){
10571057
Blob css;
10581058
int i;
10591059
int isInit = 0;
10601060
10611061
cgi_set_content_type("text/css");
@@ -1104,11 +1104,11 @@
11041104
** by many Fossil web pages to load built-in javascript files.
11051105
**
11061106
** If the id= query parameter is present, then Fossil assumes that the
11071107
** result is immutable and sets a very large cache retention time (1 year).
11081108
*/
1109
-void page_builtin_text(void){
1109
+void builtin_page(void){
11101110
Blob out;
11111111
const char *zName = P("name");
11121112
const char *zTxt = 0;
11131113
const char *zId = P("id");
11141114
int nId;
@@ -1170,11 +1170,11 @@
11701170
** WEBPAGE: test_env
11711171
**
11721172
** Display CGI-variables and other aspects of the run-time
11731173
** environment, for debugging and trouble-shooting purposes.
11741174
*/
1175
-void page_test_env(void){
1175
+void test_env_page(void){
11761176
webpage_error("");
11771177
}
11781178
11791179
/*
11801180
** WEBPAGE: honeypot
11811181
--- src/style.c
+++ src/style.c
@@ -1014,11 +1014,11 @@
1014 **
1015 ** Usage: %fossil test-contains-selector FILENAME SELECTOR
1016 **
1017 ** Determine if the CSS stylesheet FILENAME contains SELECTOR.
1018 */
1019 void contains_selector_cmd(void){
1020 int found;
1021 char *zSelector;
1022 Blob css;
1023 if( g.argc!=4 ) usage("FILENAME SELECTOR");
1024 blob_read_from_file(&css, g.argv[2], ExtFILE);
@@ -1031,11 +1031,11 @@
1031 /*
1032 ** WEBPAGE: script.js
1033 **
1034 ** Return the "Javascript" content for the current skin (if there is any)
1035 */
1036 void page_script_js(void){
1037 const char *zScript = skin_get("js");
1038 if( P("test") ){
1039 /* Render the script as plain-text for testing purposes, if the "test"
1040 ** query parameter is present */
1041 cgi_set_content_type("text/plain");
@@ -1051,11 +1051,11 @@
1051 /*
1052 ** WEBPAGE: style.css
1053 **
1054 ** Return the style sheet.
1055 */
1056 void page_style_css(void){
1057 Blob css;
1058 int i;
1059 int isInit = 0;
1060
1061 cgi_set_content_type("text/css");
@@ -1104,11 +1104,11 @@
1104 ** by many Fossil web pages to load built-in javascript files.
1105 **
1106 ** If the id= query parameter is present, then Fossil assumes that the
1107 ** result is immutable and sets a very large cache retention time (1 year).
1108 */
1109 void page_builtin_text(void){
1110 Blob out;
1111 const char *zName = P("name");
1112 const char *zTxt = 0;
1113 const char *zId = P("id");
1114 int nId;
@@ -1170,11 +1170,11 @@
1170 ** WEBPAGE: test_env
1171 **
1172 ** Display CGI-variables and other aspects of the run-time
1173 ** environment, for debugging and trouble-shooting purposes.
1174 */
1175 void page_test_env(void){
1176 webpage_error("");
1177 }
1178
1179 /*
1180 ** WEBPAGE: honeypot
1181
--- src/style.c
+++ src/style.c
@@ -1014,11 +1014,11 @@
1014 **
1015 ** Usage: %fossil test-contains-selector FILENAME SELECTOR
1016 **
1017 ** Determine if the CSS stylesheet FILENAME contains SELECTOR.
1018 */
1019 void test_contains_selector_cmd(void){
1020 int found;
1021 char *zSelector;
1022 Blob css;
1023 if( g.argc!=4 ) usage("FILENAME SELECTOR");
1024 blob_read_from_file(&css, g.argv[2], ExtFILE);
@@ -1031,11 +1031,11 @@
1031 /*
1032 ** WEBPAGE: script.js
1033 **
1034 ** Return the "Javascript" content for the current skin (if there is any)
1035 */
1036 void script_js_page(void){
1037 const char *zScript = skin_get("js");
1038 if( P("test") ){
1039 /* Render the script as plain-text for testing purposes, if the "test"
1040 ** query parameter is present */
1041 cgi_set_content_type("text/plain");
@@ -1051,11 +1051,11 @@
1051 /*
1052 ** WEBPAGE: style.css
1053 **
1054 ** Return the style sheet.
1055 */
1056 void style_css_page(void){
1057 Blob css;
1058 int i;
1059 int isInit = 0;
1060
1061 cgi_set_content_type("text/css");
@@ -1104,11 +1104,11 @@
1104 ** by many Fossil web pages to load built-in javascript files.
1105 **
1106 ** If the id= query parameter is present, then Fossil assumes that the
1107 ** result is immutable and sets a very large cache retention time (1 year).
1108 */
1109 void builtin_page(void){
1110 Blob out;
1111 const char *zName = P("name");
1112 const char *zTxt = 0;
1113 const char *zId = P("id");
1114 int nId;
@@ -1170,11 +1170,11 @@
1170 ** WEBPAGE: test_env
1171 **
1172 ** Display CGI-variables and other aspects of the run-time
1173 ** environment, for debugging and trouble-shooting purposes.
1174 */
1175 void test_env_page(void){
1176 webpage_error("");
1177 }
1178
1179 /*
1180 ** WEBPAGE: honeypot
1181
+2 -2
--- src/tag.c
+++ src/tag.c
@@ -250,11 +250,11 @@
250250
** Add a tag or anti-tag to the rebuildable tables of the local repository.
251251
** No tag artifact is created so the new tag is erased the next
252252
** time the repository is rebuilt. This routine is for testing
253253
** use only.
254254
*/
255
-void testtag_cmd(void){
255
+void test_tag_cmd(void){
256256
const char *zTag;
257257
const char *zValue;
258258
int rid;
259259
int tagtype;
260260
db_must_be_within_tree();
@@ -728,11 +728,11 @@
728728
db_finalize(&q);
729729
style_footer();
730730
}
731731
732732
/*
733
-** WEBPAGE: /tagtimeline
733
+** WEBPAGE: tagtimeline
734734
**
735735
** Render a timeline with all check-ins that contain non-propagating
736736
** symbolic tags.
737737
**
738738
** Query parameters:
739739
--- src/tag.c
+++ src/tag.c
@@ -250,11 +250,11 @@
250 ** Add a tag or anti-tag to the rebuildable tables of the local repository.
251 ** No tag artifact is created so the new tag is erased the next
252 ** time the repository is rebuilt. This routine is for testing
253 ** use only.
254 */
255 void testtag_cmd(void){
256 const char *zTag;
257 const char *zValue;
258 int rid;
259 int tagtype;
260 db_must_be_within_tree();
@@ -728,11 +728,11 @@
728 db_finalize(&q);
729 style_footer();
730 }
731
732 /*
733 ** WEBPAGE: /tagtimeline
734 **
735 ** Render a timeline with all check-ins that contain non-propagating
736 ** symbolic tags.
737 **
738 ** Query parameters:
739
--- src/tag.c
+++ src/tag.c
@@ -250,11 +250,11 @@
250 ** Add a tag or anti-tag to the rebuildable tables of the local repository.
251 ** No tag artifact is created so the new tag is erased the next
252 ** time the repository is rebuilt. This routine is for testing
253 ** use only.
254 */
255 void test_tag_cmd(void){
256 const char *zTag;
257 const char *zValue;
258 int rid;
259 int tagtype;
260 db_must_be_within_tree();
@@ -728,11 +728,11 @@
728 db_finalize(&q);
729 style_footer();
730 }
731
732 /*
733 ** WEBPAGE: tagtimeline
734 **
735 ** Render a timeline with all check-ins that contain non-propagating
736 ** symbolic tags.
737 **
738 ** Query parameters:
739
+4 -4
--- src/th_main.c
+++ src/th_main.c
@@ -2660,11 +2660,11 @@
26602660
** --open-config Open the configuration database
26612661
** --set-anon-caps Set anonymous login capabilities
26622662
** --set-user-caps Set user login capabilities
26632663
** --th-trace Trace TH1 execution (for debugging purposes)
26642664
*/
2665
-void test_th_render(void){
2665
+void test_th_render_cmd(void){
26662666
int forceCgi, fullHttpReply;
26672667
Blob in;
26682668
Th_InitTraceLog();
26692669
forceCgi = find_option("cgi", 0, 0)!=0;
26702670
fullHttpReply = find_option("http", 0, 0)!=0;
@@ -2709,11 +2709,11 @@
27092709
** --open-config Open the configuration database
27102710
** --set-anon-caps Set anonymous login capabilities
27112711
** --set-user-caps Set user login capabilities
27122712
** --th-trace Trace TH1 execution (for debugging purposes)
27132713
*/
2714
-void test_th_eval(void){
2714
+void test_th_eval_cmd(void){
27152715
int rc;
27162716
const char *zRc;
27172717
int forceCgi, fullHttpReply;
27182718
Th_InitTraceLog();
27192719
forceCgi = find_option("cgi", 0, 0)!=0;
@@ -2761,11 +2761,11 @@
27612761
** --open-config Open the configuration database
27622762
** --set-anon-caps Set anonymous login capabilities
27632763
** --set-user-caps Set user login capabilities
27642764
** --th-trace Trace TH1 execution (for debugging purposes)
27652765
*/
2766
-void test_th_source(void){
2766
+void test_th_source_cmd(void){
27672767
int rc;
27682768
const char *zRc;
27692769
int forceCgi, fullHttpReply;
27702770
Blob in;
27712771
Th_InitTraceLog();
@@ -2835,11 +2835,11 @@
28352835
**
28362836
** --cgi Include a CGI response header in the output
28372837
** --http Include an HTTP response header in the output
28382838
** --th-trace Trace TH1 execution (for debugging purposes)
28392839
*/
2840
-void test_th_hook(void){
2840
+void test_th_hook_cmd(void){
28412841
int rc = TH_OK;
28422842
int nResult = 0;
28432843
char *zResult = 0;
28442844
int forceCgi, fullHttpReply;
28452845
Th_InitTraceLog();
28462846
--- src/th_main.c
+++ src/th_main.c
@@ -2660,11 +2660,11 @@
2660 ** --open-config Open the configuration database
2661 ** --set-anon-caps Set anonymous login capabilities
2662 ** --set-user-caps Set user login capabilities
2663 ** --th-trace Trace TH1 execution (for debugging purposes)
2664 */
2665 void test_th_render(void){
2666 int forceCgi, fullHttpReply;
2667 Blob in;
2668 Th_InitTraceLog();
2669 forceCgi = find_option("cgi", 0, 0)!=0;
2670 fullHttpReply = find_option("http", 0, 0)!=0;
@@ -2709,11 +2709,11 @@
2709 ** --open-config Open the configuration database
2710 ** --set-anon-caps Set anonymous login capabilities
2711 ** --set-user-caps Set user login capabilities
2712 ** --th-trace Trace TH1 execution (for debugging purposes)
2713 */
2714 void test_th_eval(void){
2715 int rc;
2716 const char *zRc;
2717 int forceCgi, fullHttpReply;
2718 Th_InitTraceLog();
2719 forceCgi = find_option("cgi", 0, 0)!=0;
@@ -2761,11 +2761,11 @@
2761 ** --open-config Open the configuration database
2762 ** --set-anon-caps Set anonymous login capabilities
2763 ** --set-user-caps Set user login capabilities
2764 ** --th-trace Trace TH1 execution (for debugging purposes)
2765 */
2766 void test_th_source(void){
2767 int rc;
2768 const char *zRc;
2769 int forceCgi, fullHttpReply;
2770 Blob in;
2771 Th_InitTraceLog();
@@ -2835,11 +2835,11 @@
2835 **
2836 ** --cgi Include a CGI response header in the output
2837 ** --http Include an HTTP response header in the output
2838 ** --th-trace Trace TH1 execution (for debugging purposes)
2839 */
2840 void test_th_hook(void){
2841 int rc = TH_OK;
2842 int nResult = 0;
2843 char *zResult = 0;
2844 int forceCgi, fullHttpReply;
2845 Th_InitTraceLog();
2846
--- src/th_main.c
+++ src/th_main.c
@@ -2660,11 +2660,11 @@
2660 ** --open-config Open the configuration database
2661 ** --set-anon-caps Set anonymous login capabilities
2662 ** --set-user-caps Set user login capabilities
2663 ** --th-trace Trace TH1 execution (for debugging purposes)
2664 */
2665 void test_th_render_cmd(void){
2666 int forceCgi, fullHttpReply;
2667 Blob in;
2668 Th_InitTraceLog();
2669 forceCgi = find_option("cgi", 0, 0)!=0;
2670 fullHttpReply = find_option("http", 0, 0)!=0;
@@ -2709,11 +2709,11 @@
2709 ** --open-config Open the configuration database
2710 ** --set-anon-caps Set anonymous login capabilities
2711 ** --set-user-caps Set user login capabilities
2712 ** --th-trace Trace TH1 execution (for debugging purposes)
2713 */
2714 void test_th_eval_cmd(void){
2715 int rc;
2716 const char *zRc;
2717 int forceCgi, fullHttpReply;
2718 Th_InitTraceLog();
2719 forceCgi = find_option("cgi", 0, 0)!=0;
@@ -2761,11 +2761,11 @@
2761 ** --open-config Open the configuration database
2762 ** --set-anon-caps Set anonymous login capabilities
2763 ** --set-user-caps Set user login capabilities
2764 ** --th-trace Trace TH1 execution (for debugging purposes)
2765 */
2766 void test_th_source_cmd(void){
2767 int rc;
2768 const char *zRc;
2769 int forceCgi, fullHttpReply;
2770 Blob in;
2771 Th_InitTraceLog();
@@ -2835,11 +2835,11 @@
2835 **
2836 ** --cgi Include a CGI response header in the output
2837 ** --http Include an HTTP response header in the output
2838 ** --th-trace Trace TH1 execution (for debugging purposes)
2839 */
2840 void test_th_hook_cmd(void){
2841 int rc = TH_OK;
2842 int nResult = 0;
2843 char *zResult = 0;
2844 int forceCgi, fullHttpReply;
2845 Th_InitTraceLog();
2846
+5 -5
--- src/timeline.c
+++ src/timeline.c
@@ -168,11 +168,11 @@
168168
** Usage: %fossil test-hash-color TAG ...
169169
**
170170
** Print out the color names associated with each tag. Used for
171171
** testing the hash_color() function.
172172
*/
173
-void test_hash_color(void){
173
+void test_hash_color_cmd(void){
174174
int i;
175175
for(i=2; i<g.argc; i++){
176176
fossil_print("%20s: %s\n", g.argv[i], hash_color(g.argv[i]));
177177
}
178178
}
@@ -181,11 +181,11 @@
181181
** WEBPAGE: hash-color-test
182182
**
183183
** Print out the color names associated with each tag. Used for
184184
** testing the hash_color() function.
185185
*/
186
-void test_hash_color_page(void){
186
+void hash_color_test_page(void){
187187
const char *zBr;
188188
char zNm[10];
189189
int i, cnt;
190190
login_check_credentials();
191191
@@ -1618,11 +1618,11 @@
16181618
** If both a= and b= appear then both upper and lower bounds are honored.
16191619
**
16201620
** CHECKIN or TIMEORTAG can be a check-in hash prefix, or a tag, or the
16211621
** name of a branch.
16221622
*/
1623
-void page_timeline(void){
1623
+void timeline_page(void){
16241624
Stmt q; /* Query used to generate the timeline */
16251625
Blob sql; /* text of SQL used to generate timeline */
16261626
Blob desc; /* Description of the timeline */
16271627
int nEntry; /* Max number of entries on timeline */
16281628
int p_rid = name_to_typed_rid(P("p"),"ci"); /* artifact p and its parents */
@@ -3022,11 +3022,11 @@
30223022
**
30233023
** Display all instances of child check-ins that appear earlier in time
30243024
** than their parent. If the -v|--verbose option is provided, both the
30253025
** parent and child check-ins and their times are shown.
30263026
*/
3027
-void test_timewarp_cmd(void){
3027
+void test_timewarp_list_cmd(void){
30283028
Stmt q;
30293029
int verboseFlag;
30303030
30313031
db_find_and_open_repository(0, 0);
30323032
verboseFlag = find_option("verbose", "v", 0)!=0;
@@ -3060,11 +3060,11 @@
30603060
** Show all check-ins that are "timewarps". A timewarp is a
30613061
** check-in that occurs before its parent, according to the
30623062
** timestamp information on the check-in. This can only actually
30633063
** happen, of course, if a users system clock is set incorrectly.
30643064
*/
3065
-void test_timewarp_page(void){
3065
+void timewarps_page(void){
30663066
Stmt q;
30673067
int cnt = 0;
30683068
30693069
login_check_credentials();
30703070
if( !g.perm.Read || !g.perm.Hyperlink ){
30713071
--- src/timeline.c
+++ src/timeline.c
@@ -168,11 +168,11 @@
168 ** Usage: %fossil test-hash-color TAG ...
169 **
170 ** Print out the color names associated with each tag. Used for
171 ** testing the hash_color() function.
172 */
173 void test_hash_color(void){
174 int i;
175 for(i=2; i<g.argc; i++){
176 fossil_print("%20s: %s\n", g.argv[i], hash_color(g.argv[i]));
177 }
178 }
@@ -181,11 +181,11 @@
181 ** WEBPAGE: hash-color-test
182 **
183 ** Print out the color names associated with each tag. Used for
184 ** testing the hash_color() function.
185 */
186 void test_hash_color_page(void){
187 const char *zBr;
188 char zNm[10];
189 int i, cnt;
190 login_check_credentials();
191
@@ -1618,11 +1618,11 @@
1618 ** If both a= and b= appear then both upper and lower bounds are honored.
1619 **
1620 ** CHECKIN or TIMEORTAG can be a check-in hash prefix, or a tag, or the
1621 ** name of a branch.
1622 */
1623 void page_timeline(void){
1624 Stmt q; /* Query used to generate the timeline */
1625 Blob sql; /* text of SQL used to generate timeline */
1626 Blob desc; /* Description of the timeline */
1627 int nEntry; /* Max number of entries on timeline */
1628 int p_rid = name_to_typed_rid(P("p"),"ci"); /* artifact p and its parents */
@@ -3022,11 +3022,11 @@
3022 **
3023 ** Display all instances of child check-ins that appear earlier in time
3024 ** than their parent. If the -v|--verbose option is provided, both the
3025 ** parent and child check-ins and their times are shown.
3026 */
3027 void test_timewarp_cmd(void){
3028 Stmt q;
3029 int verboseFlag;
3030
3031 db_find_and_open_repository(0, 0);
3032 verboseFlag = find_option("verbose", "v", 0)!=0;
@@ -3060,11 +3060,11 @@
3060 ** Show all check-ins that are "timewarps". A timewarp is a
3061 ** check-in that occurs before its parent, according to the
3062 ** timestamp information on the check-in. This can only actually
3063 ** happen, of course, if a users system clock is set incorrectly.
3064 */
3065 void test_timewarp_page(void){
3066 Stmt q;
3067 int cnt = 0;
3068
3069 login_check_credentials();
3070 if( !g.perm.Read || !g.perm.Hyperlink ){
3071
--- src/timeline.c
+++ src/timeline.c
@@ -168,11 +168,11 @@
168 ** Usage: %fossil test-hash-color TAG ...
169 **
170 ** Print out the color names associated with each tag. Used for
171 ** testing the hash_color() function.
172 */
173 void test_hash_color_cmd(void){
174 int i;
175 for(i=2; i<g.argc; i++){
176 fossil_print("%20s: %s\n", g.argv[i], hash_color(g.argv[i]));
177 }
178 }
@@ -181,11 +181,11 @@
181 ** WEBPAGE: hash-color-test
182 **
183 ** Print out the color names associated with each tag. Used for
184 ** testing the hash_color() function.
185 */
186 void hash_color_test_page(void){
187 const char *zBr;
188 char zNm[10];
189 int i, cnt;
190 login_check_credentials();
191
@@ -1618,11 +1618,11 @@
1618 ** If both a= and b= appear then both upper and lower bounds are honored.
1619 **
1620 ** CHECKIN or TIMEORTAG can be a check-in hash prefix, or a tag, or the
1621 ** name of a branch.
1622 */
1623 void timeline_page(void){
1624 Stmt q; /* Query used to generate the timeline */
1625 Blob sql; /* text of SQL used to generate timeline */
1626 Blob desc; /* Description of the timeline */
1627 int nEntry; /* Max number of entries on timeline */
1628 int p_rid = name_to_typed_rid(P("p"),"ci"); /* artifact p and its parents */
@@ -3022,11 +3022,11 @@
3022 **
3023 ** Display all instances of child check-ins that appear earlier in time
3024 ** than their parent. If the -v|--verbose option is provided, both the
3025 ** parent and child check-ins and their times are shown.
3026 */
3027 void test_timewarp_list_cmd(void){
3028 Stmt q;
3029 int verboseFlag;
3030
3031 db_find_and_open_repository(0, 0);
3032 verboseFlag = find_option("verbose", "v", 0)!=0;
@@ -3060,11 +3060,11 @@
3060 ** Show all check-ins that are "timewarps". A timewarp is a
3061 ** check-in that occurs before its parent, according to the
3062 ** timestamp information on the check-in. This can only actually
3063 ** happen, of course, if a users system clock is set incorrectly.
3064 */
3065 void timewarps_page(void){
3066 Stmt q;
3067 int cnt = 0;
3068
3069 login_check_credentials();
3070 if( !g.perm.Read || !g.perm.Hyperlink ){
3071
+5 -5
--- src/tkt.c
+++ src/tkt.c
@@ -409,11 +409,11 @@
409409
** Usage: %fossil test-ticket-rebuild TICKETID|all
410410
**
411411
** Rebuild the TICKET and TICKETCHNG tables for the given ticket ID
412412
** or for ALL.
413413
*/
414
-void test_ticket_rebuild(void){
414
+void test_ticket_rebuild_cmd(void){
415415
db_find_and_open_repository(0, 0);
416416
if( g.argc!=3 ) usage("TICKETID|all");
417417
if( fossil_strcmp(g.argv[2], "all")==0 ){
418418
ticket_rebuild();
419419
}else{
@@ -1474,27 +1474,27 @@
14741474
**
14751475
** This is intended to be the primary "Ticket" page. Render as
14761476
** either ticket-search (if search is enabled) or as the
14771477
** /reportlist page (if ticket search is disabled).
14781478
*/
1479
-void tkt_home_page(void){
1479
+void ticket_page(void){
14801480
login_check_credentials();
14811481
if( search_restrict(SRCH_TKT)!=0 ){
1482
- tkt_srchpage();
1482
+ tktsrch_page();
14831483
}else{
1484
- view_list();
1484
+ reportlist_page();
14851485
}
14861486
}
14871487
14881488
/*
14891489
** WEBPAGE: tktsrch
14901490
** Usage: /tktsrch?s=PATTERN
14911491
**
14921492
** Full-text search of all current tickets
14931493
*/
1494
-void tkt_srchpage(void){
1494
+void tktsrch_page(void){
14951495
login_check_credentials();
14961496
style_header("Ticket Search");
14971497
ticket_standard_submenu(T_ALL_BUT(T_SRCH));
14981498
search_screen(SRCH_TKT, 0);
14991499
style_footer();
15001500
}
15011501
--- src/tkt.c
+++ src/tkt.c
@@ -409,11 +409,11 @@
409 ** Usage: %fossil test-ticket-rebuild TICKETID|all
410 **
411 ** Rebuild the TICKET and TICKETCHNG tables for the given ticket ID
412 ** or for ALL.
413 */
414 void test_ticket_rebuild(void){
415 db_find_and_open_repository(0, 0);
416 if( g.argc!=3 ) usage("TICKETID|all");
417 if( fossil_strcmp(g.argv[2], "all")==0 ){
418 ticket_rebuild();
419 }else{
@@ -1474,27 +1474,27 @@
1474 **
1475 ** This is intended to be the primary "Ticket" page. Render as
1476 ** either ticket-search (if search is enabled) or as the
1477 ** /reportlist page (if ticket search is disabled).
1478 */
1479 void tkt_home_page(void){
1480 login_check_credentials();
1481 if( search_restrict(SRCH_TKT)!=0 ){
1482 tkt_srchpage();
1483 }else{
1484 view_list();
1485 }
1486 }
1487
1488 /*
1489 ** WEBPAGE: tktsrch
1490 ** Usage: /tktsrch?s=PATTERN
1491 **
1492 ** Full-text search of all current tickets
1493 */
1494 void tkt_srchpage(void){
1495 login_check_credentials();
1496 style_header("Ticket Search");
1497 ticket_standard_submenu(T_ALL_BUT(T_SRCH));
1498 search_screen(SRCH_TKT, 0);
1499 style_footer();
1500 }
1501
--- src/tkt.c
+++ src/tkt.c
@@ -409,11 +409,11 @@
409 ** Usage: %fossil test-ticket-rebuild TICKETID|all
410 **
411 ** Rebuild the TICKET and TICKETCHNG tables for the given ticket ID
412 ** or for ALL.
413 */
414 void test_ticket_rebuild_cmd(void){
415 db_find_and_open_repository(0, 0);
416 if( g.argc!=3 ) usage("TICKETID|all");
417 if( fossil_strcmp(g.argv[2], "all")==0 ){
418 ticket_rebuild();
419 }else{
@@ -1474,27 +1474,27 @@
1474 **
1475 ** This is intended to be the primary "Ticket" page. Render as
1476 ** either ticket-search (if search is enabled) or as the
1477 ** /reportlist page (if ticket search is disabled).
1478 */
1479 void ticket_page(void){
1480 login_check_credentials();
1481 if( search_restrict(SRCH_TKT)!=0 ){
1482 tktsrch_page();
1483 }else{
1484 reportlist_page();
1485 }
1486 }
1487
1488 /*
1489 ** WEBPAGE: tktsrch
1490 ** Usage: /tktsrch?s=PATTERN
1491 **
1492 ** Full-text search of all current tickets
1493 */
1494 void tktsrch_page(void){
1495 login_check_credentials();
1496 style_header("Ticket Search");
1497 ticket_standard_submenu(T_ALL_BUT(T_SRCH));
1498 search_screen(SRCH_TKT, 0);
1499 style_footer();
1500 }
1501
+1 -1
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -774,11 +774,11 @@
774774
/*
775775
** WEBPAGE: tktsetup_reportlist
776776
** Administrative page used to view or edit the TH1 script that
777777
** defines the "report list" page.
778778
*/
779
-void tktsetup_reportlist(void){
779
+void tktsetup_reportlist_page(void){
780780
static const char zDesc[] =
781781
@ Enter HTML with embedded TH1 script that will render the "report list" page
782782
;
783783
tktsetup_generic(
784784
"HTML For Report List",
785785
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -774,11 +774,11 @@
774 /*
775 ** WEBPAGE: tktsetup_reportlist
776 ** Administrative page used to view or edit the TH1 script that
777 ** defines the "report list" page.
778 */
779 void tktsetup_reportlist(void){
780 static const char zDesc[] =
781 @ Enter HTML with embedded TH1 script that will render the "report list" page
782 ;
783 tktsetup_generic(
784 "HTML For Report List",
785
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -774,11 +774,11 @@
774 /*
775 ** WEBPAGE: tktsetup_reportlist
776 ** Administrative page used to view or edit the TH1 script that
777 ** defines the "report list" page.
778 */
779 void tktsetup_reportlist_page(void){
780 static const char zDesc[] =
781 @ Enter HTML with embedded TH1 script that will render the "report list" page
782 ;
783 tktsetup_generic(
784 "HTML For Report List",
785
+1 -1
--- src/url.c
+++ src/url.c
@@ -322,11 +322,11 @@
322322
** Usage: %fossil test-urlparser URL ?options?
323323
**
324324
** --remember Store results in last-sync-url
325325
** --prompt-pw Prompt for password if missing
326326
*/
327
-void cmd_test_urlparser(void){
327
+void test_urlparser_cmd(void){
328328
int i;
329329
unsigned fg = 0;
330330
url_proxy_options();
331331
if( find_option("remember",0,0) ){
332332
db_must_be_within_tree();
333333
--- src/url.c
+++ src/url.c
@@ -322,11 +322,11 @@
322 ** Usage: %fossil test-urlparser URL ?options?
323 **
324 ** --remember Store results in last-sync-url
325 ** --prompt-pw Prompt for password if missing
326 */
327 void cmd_test_urlparser(void){
328 int i;
329 unsigned fg = 0;
330 url_proxy_options();
331 if( find_option("remember",0,0) ){
332 db_must_be_within_tree();
333
--- src/url.c
+++ src/url.c
@@ -322,11 +322,11 @@
322 ** Usage: %fossil test-urlparser URL ?options?
323 **
324 ** --remember Store results in last-sync-url
325 ** --prompt-pw Prompt for password if missing
326 */
327 void test_urlparser_cmd(void){
328 int i;
329 unsigned fg = 0;
330 url_proxy_options();
331 if( find_option("remember",0,0) ){
332 db_must_be_within_tree();
333
+1 -1
--- src/user.c
+++ src/user.c
@@ -568,11 +568,11 @@
568568
**
569569
** Convert all local password storage to use a SHA1 hash of the password
570570
** rather than cleartext. Passwords that are already stored as the SHA1
571571
** has are unchanged.
572572
*/
573
-void user_hash_passwords_cmd(void){
573
+void test_hash_passwords_cmd(void){
574574
if( g.argc!=3 ) usage("REPOSITORY");
575575
db_open_repository(g.argv[2]);
576576
sqlite3_create_function(g.db, "shared_secret", 2, SQLITE_UTF8, 0,
577577
sha1_shared_secret_sql_function, 0, 0);
578578
db_multi_exec(
579579
--- src/user.c
+++ src/user.c
@@ -568,11 +568,11 @@
568 **
569 ** Convert all local password storage to use a SHA1 hash of the password
570 ** rather than cleartext. Passwords that are already stored as the SHA1
571 ** has are unchanged.
572 */
573 void user_hash_passwords_cmd(void){
574 if( g.argc!=3 ) usage("REPOSITORY");
575 db_open_repository(g.argv[2]);
576 sqlite3_create_function(g.db, "shared_secret", 2, SQLITE_UTF8, 0,
577 sha1_shared_secret_sql_function, 0, 0);
578 db_multi_exec(
579
--- src/user.c
+++ src/user.c
@@ -568,11 +568,11 @@
568 **
569 ** Convert all local password storage to use a SHA1 hash of the password
570 ** rather than cleartext. Passwords that are already stored as the SHA1
571 ** has are unchanged.
572 */
573 void test_hash_passwords_cmd(void){
574 if( g.argc!=3 ) usage("REPOSITORY");
575 db_open_repository(g.argv[2]);
576 sqlite3_create_function(g.db, "shared_secret", 2, SQLITE_UTF8, 0,
577 sha1_shared_secret_sql_function, 0, 0);
578 db_multi_exec(
579
+1 -1
--- src/util.c
+++ src/util.c
@@ -566,11 +566,11 @@
566566
**
567567
** Generate a random password string of approximately N characters in length.
568568
** If N is omitted, use 10. Values of N less than 8 are changed to 8
569569
** and greater than 55 and changed to 55.
570570
*/
571
-void test_random_password(void){
571
+void test_random_password_cmd(void){
572572
int N = 10;
573573
if( g.argc>=3 ){
574574
N = atoi(g.argv[2]);
575575
}
576576
fossil_print("%s\n", fossil_random_password(N));
577577
--- src/util.c
+++ src/util.c
@@ -566,11 +566,11 @@
566 **
567 ** Generate a random password string of approximately N characters in length.
568 ** If N is omitted, use 10. Values of N less than 8 are changed to 8
569 ** and greater than 55 and changed to 55.
570 */
571 void test_random_password(void){
572 int N = 10;
573 if( g.argc>=3 ){
574 N = atoi(g.argv[2]);
575 }
576 fossil_print("%s\n", fossil_random_password(N));
577
--- src/util.c
+++ src/util.c
@@ -566,11 +566,11 @@
566 **
567 ** Generate a random password string of approximately N characters in length.
568 ** If N is omitted, use 10. Values of N less than 8 are changed to 8
569 ** and greater than 55 and changed to 55.
570 */
571 void test_random_password_cmd(void){
572 int N = 10;
573 if( g.argc>=3 ){
574 N = atoi(g.argv[2]);
575 }
576 fossil_print("%s\n", fossil_random_password(N));
577
+1 -1
--- src/verify.c
+++ src/verify.c
@@ -111,11 +111,11 @@
111111
/*
112112
** COMMAND: test-verify-all
113113
**
114114
** Verify all records in the repository.
115115
*/
116
-void verify_all_cmd(void){
116
+void test_verify_all_cmd(void){
117117
Stmt q;
118118
int cnt = 0;
119119
db_must_be_within_tree();
120120
db_prepare(&q, "SELECT rid FROM blob");
121121
while( db_step(&q)==SQLITE_ROW ){
122122
--- src/verify.c
+++ src/verify.c
@@ -111,11 +111,11 @@
111 /*
112 ** COMMAND: test-verify-all
113 **
114 ** Verify all records in the repository.
115 */
116 void verify_all_cmd(void){
117 Stmt q;
118 int cnt = 0;
119 db_must_be_within_tree();
120 db_prepare(&q, "SELECT rid FROM blob");
121 while( db_step(&q)==SQLITE_ROW ){
122
--- src/verify.c
+++ src/verify.c
@@ -111,11 +111,11 @@
111 /*
112 ** COMMAND: test-verify-all
113 **
114 ** Verify all records in the repository.
115 */
116 void test_verify_all_cmd(void){
117 Stmt q;
118 int cnt = 0;
119 db_must_be_within_tree();
120 db_prepare(&q, "SELECT rid FROM blob");
121 while( db_step(&q)==SQLITE_ROW ){
122
+6 -6
--- src/webmail.c
+++ src/webmail.c
@@ -306,11 +306,11 @@
306306
** Usage: %fossil test-decode-email FILE
307307
**
308308
** Read an rfc-2822 formatted email out of FILE, then write a decoding
309309
** to stdout. Use for testing and validating the email decoder.
310310
*/
311
-void test_email_decode_cmd(void){
311
+void test_decode_email_cmd(void){
312312
Blob email;
313313
EmailToc *p;
314314
int i;
315315
verify_all_options();
316316
if( g.argc!=3 ) usage("FILE");
@@ -574,11 +574,11 @@
574574
};
575575
style_submenu_multichoice("d", sizeof(az)/(2*sizeof(az[0])), az, 0);
576576
}
577577
578578
/*
579
-** WEBPAGE: webmail
579
+** WEBPAGE: webmail
580580
**
581581
** This page can be used to read content from the EMAILBOX table
582582
** that contains email received by the "fossil smtpd" command.
583583
**
584584
** Query parameters:
@@ -762,20 +762,20 @@
762762
style_footer();
763763
db_end_transaction(0);
764764
}
765765
766766
/*
767
-** WEBPAGE: emailblob
767
+** WEBPAGE: emailblob
768768
**
769769
** This page, accessible only to administrators, allows easy viewing of
770770
** the emailblob table - the table that contains the text of email messages
771771
** both inbound and outbound, and transcripts of SMTP sessions.
772772
**
773773
** id=N Show the text of emailblob with emailid==N
774774
**
775775
*/
776
-void webmail_emailblob_page(void){
776
+void emailblob_page(void){
777777
int id = atoi(PD("id","0"));
778778
Stmt q;
779779
login_check_credentials();
780780
if( !g.perm.Setup ){
781781
login_needed(0);
@@ -858,17 +858,17 @@
858858
}
859859
style_footer();
860860
}
861861
862862
/*
863
-** WEBPAGE: emailoutq
863
+** WEBPAGE: emailoutq
864864
**
865865
** This page, accessible only to administrators, allows easy viewing of
866866
** the emailoutq table - the table that contains the email messages
867867
** that are queued for transmission via SMTP.
868868
*/
869
-void webmail_emailoutq_page(void){
869
+void emailoutq_page(void){
870870
Stmt q;
871871
login_check_credentials();
872872
if( !g.perm.Setup ){
873873
login_needed(0);
874874
return;
875875
--- src/webmail.c
+++ src/webmail.c
@@ -306,11 +306,11 @@
306 ** Usage: %fossil test-decode-email FILE
307 **
308 ** Read an rfc-2822 formatted email out of FILE, then write a decoding
309 ** to stdout. Use for testing and validating the email decoder.
310 */
311 void test_email_decode_cmd(void){
312 Blob email;
313 EmailToc *p;
314 int i;
315 verify_all_options();
316 if( g.argc!=3 ) usage("FILE");
@@ -574,11 +574,11 @@
574 };
575 style_submenu_multichoice("d", sizeof(az)/(2*sizeof(az[0])), az, 0);
576 }
577
578 /*
579 ** WEBPAGE: webmail
580 **
581 ** This page can be used to read content from the EMAILBOX table
582 ** that contains email received by the "fossil smtpd" command.
583 **
584 ** Query parameters:
@@ -762,20 +762,20 @@
762 style_footer();
763 db_end_transaction(0);
764 }
765
766 /*
767 ** WEBPAGE: emailblob
768 **
769 ** This page, accessible only to administrators, allows easy viewing of
770 ** the emailblob table - the table that contains the text of email messages
771 ** both inbound and outbound, and transcripts of SMTP sessions.
772 **
773 ** id=N Show the text of emailblob with emailid==N
774 **
775 */
776 void webmail_emailblob_page(void){
777 int id = atoi(PD("id","0"));
778 Stmt q;
779 login_check_credentials();
780 if( !g.perm.Setup ){
781 login_needed(0);
@@ -858,17 +858,17 @@
858 }
859 style_footer();
860 }
861
862 /*
863 ** WEBPAGE: emailoutq
864 **
865 ** This page, accessible only to administrators, allows easy viewing of
866 ** the emailoutq table - the table that contains the email messages
867 ** that are queued for transmission via SMTP.
868 */
869 void webmail_emailoutq_page(void){
870 Stmt q;
871 login_check_credentials();
872 if( !g.perm.Setup ){
873 login_needed(0);
874 return;
875
--- src/webmail.c
+++ src/webmail.c
@@ -306,11 +306,11 @@
306 ** Usage: %fossil test-decode-email FILE
307 **
308 ** Read an rfc-2822 formatted email out of FILE, then write a decoding
309 ** to stdout. Use for testing and validating the email decoder.
310 */
311 void test_decode_email_cmd(void){
312 Blob email;
313 EmailToc *p;
314 int i;
315 verify_all_options();
316 if( g.argc!=3 ) usage("FILE");
@@ -574,11 +574,11 @@
574 };
575 style_submenu_multichoice("d", sizeof(az)/(2*sizeof(az[0])), az, 0);
576 }
577
578 /*
579 ** WEBPAGE: webmail
580 **
581 ** This page can be used to read content from the EMAILBOX table
582 ** that contains email received by the "fossil smtpd" command.
583 **
584 ** Query parameters:
@@ -762,20 +762,20 @@
762 style_footer();
763 db_end_transaction(0);
764 }
765
766 /*
767 ** WEBPAGE: emailblob
768 **
769 ** This page, accessible only to administrators, allows easy viewing of
770 ** the emailblob table - the table that contains the text of email messages
771 ** both inbound and outbound, and transcripts of SMTP sessions.
772 **
773 ** id=N Show the text of emailblob with emailid==N
774 **
775 */
776 void emailblob_page(void){
777 int id = atoi(PD("id","0"));
778 Stmt q;
779 login_check_credentials();
780 if( !g.perm.Setup ){
781 login_needed(0);
@@ -858,17 +858,17 @@
858 }
859 style_footer();
860 }
861
862 /*
863 ** WEBPAGE: emailoutq
864 **
865 ** This page, accessible only to administrators, allows easy viewing of
866 ** the emailoutq table - the table that contains the email messages
867 ** that are queued for transmission via SMTP.
868 */
869 void emailoutq_page(void){
870 Stmt q;
871 login_check_credentials();
872 if( !g.perm.Setup ){
873 login_needed(0);
874 return;
875
+5 -5
--- src/wiki.c
+++ src/wiki.c
@@ -209,11 +209,11 @@
209209
/*
210210
** WEBPAGE: md_rules
211211
**
212212
** Show a summary of the Markdown wiki formatting rules.
213213
*/
214
-void markdown_rules_page(void){
214
+void md_rules_page(void){
215215
Blob x;
216216
int fTxt = P("txt")!=0;
217217
style_header("Markdown Formatting Rules");
218218
if( fTxt ){
219219
style_submenu_element("Formatted", "%R/md_rules");
@@ -318,11 +318,11 @@
318318
319319
/*
320320
** WEBPAGE: wikihelp
321321
** A generic landing page for wiki.
322322
*/
323
-void wiki_helppage(void){
323
+void wikihelp_page(void){
324324
login_check_credentials();
325325
if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; }
326326
style_header("Wiki Help");
327327
wiki_standard_submenu(W_ALL_BUT(W_HELP));
328328
@ <h2>Wiki Links</h2>
@@ -356,11 +356,11 @@
356356
** WEBPAGE: wikisrch
357357
** Usage: /wikisrch?s=PATTERN
358358
**
359359
** Full-text search of all current wiki text
360360
*/
361
-void wiki_srchpage(void){
361
+void wikisrch_page(void){
362362
login_check_credentials();
363363
style_header("Wiki Search");
364364
wiki_standard_submenu(W_HELP|W_LIST|W_SANDBOX);
365365
search_screen(SRCH_WIKI, 0);
366366
style_footer();
@@ -478,13 +478,13 @@
478478
login_check_credentials();
479479
if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; }
480480
zPageName = P("name");
481481
if( zPageName==0 ){
482482
if( search_restrict(SRCH_WIKI)!=0 ){
483
- wiki_srchpage();
483
+ wikisrch_page();
484484
}else{
485
- wiki_helppage();
485
+ wikihelp_page();
486486
}
487487
return;
488488
}
489489
if( check_name(zPageName) ) return;
490490
isSandbox = is_sandbox(zPageName);
491491
--- src/wiki.c
+++ src/wiki.c
@@ -209,11 +209,11 @@
209 /*
210 ** WEBPAGE: md_rules
211 **
212 ** Show a summary of the Markdown wiki formatting rules.
213 */
214 void markdown_rules_page(void){
215 Blob x;
216 int fTxt = P("txt")!=0;
217 style_header("Markdown Formatting Rules");
218 if( fTxt ){
219 style_submenu_element("Formatted", "%R/md_rules");
@@ -318,11 +318,11 @@
318
319 /*
320 ** WEBPAGE: wikihelp
321 ** A generic landing page for wiki.
322 */
323 void wiki_helppage(void){
324 login_check_credentials();
325 if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; }
326 style_header("Wiki Help");
327 wiki_standard_submenu(W_ALL_BUT(W_HELP));
328 @ <h2>Wiki Links</h2>
@@ -356,11 +356,11 @@
356 ** WEBPAGE: wikisrch
357 ** Usage: /wikisrch?s=PATTERN
358 **
359 ** Full-text search of all current wiki text
360 */
361 void wiki_srchpage(void){
362 login_check_credentials();
363 style_header("Wiki Search");
364 wiki_standard_submenu(W_HELP|W_LIST|W_SANDBOX);
365 search_screen(SRCH_WIKI, 0);
366 style_footer();
@@ -478,13 +478,13 @@
478 login_check_credentials();
479 if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; }
480 zPageName = P("name");
481 if( zPageName==0 ){
482 if( search_restrict(SRCH_WIKI)!=0 ){
483 wiki_srchpage();
484 }else{
485 wiki_helppage();
486 }
487 return;
488 }
489 if( check_name(zPageName) ) return;
490 isSandbox = is_sandbox(zPageName);
491
--- src/wiki.c
+++ src/wiki.c
@@ -209,11 +209,11 @@
209 /*
210 ** WEBPAGE: md_rules
211 **
212 ** Show a summary of the Markdown wiki formatting rules.
213 */
214 void md_rules_page(void){
215 Blob x;
216 int fTxt = P("txt")!=0;
217 style_header("Markdown Formatting Rules");
218 if( fTxt ){
219 style_submenu_element("Formatted", "%R/md_rules");
@@ -318,11 +318,11 @@
318
319 /*
320 ** WEBPAGE: wikihelp
321 ** A generic landing page for wiki.
322 */
323 void wikihelp_page(void){
324 login_check_credentials();
325 if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; }
326 style_header("Wiki Help");
327 wiki_standard_submenu(W_ALL_BUT(W_HELP));
328 @ <h2>Wiki Links</h2>
@@ -356,11 +356,11 @@
356 ** WEBPAGE: wikisrch
357 ** Usage: /wikisrch?s=PATTERN
358 **
359 ** Full-text search of all current wiki text
360 */
361 void wikisrch_page(void){
362 login_check_credentials();
363 style_header("Wiki Search");
364 wiki_standard_submenu(W_HELP|W_LIST|W_SANDBOX);
365 search_screen(SRCH_WIKI, 0);
366 style_footer();
@@ -478,13 +478,13 @@
478 login_check_credentials();
479 if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; }
480 zPageName = P("name");
481 if( zPageName==0 ){
482 if( search_restrict(SRCH_WIKI)!=0 ){
483 wikisrch_page();
484 }else{
485 wikihelp_page();
486 }
487 return;
488 }
489 if( check_name(zPageName) ) return;
490 isSandbox = is_sandbox(zPageName);
491
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1784,11 +1784,11 @@
17841784
** --linksonly Set the WIKI_LINKSONLY flag
17851785
** --nobadlinks Set the WIKI_NOBADLINKS flag
17861786
** --inline Set the WIKI_INLINE flag
17871787
** --noblock Set the WIKI_NOBLOCK flag
17881788
*/
1789
-void test_wiki_render(void){
1789
+void test_wiki_render_cmd(void){
17901790
Blob in, out;
17911791
int flags = 0;
17921792
if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS;
17931793
if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY;
17941794
if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY;
@@ -1809,11 +1809,11 @@
18091809
**
18101810
** Usage: %fossil test-markdown-render FILE
18111811
**
18121812
** Render markdown in FILE as HTML on stdout.
18131813
*/
1814
-void test_markdown_render(void){
1814
+void test_markdown_render_cmd(void){
18151815
Blob in, out;
18161816
db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
18171817
verify_all_options();
18181818
if( g.argc!=3 ) usage("FILE");
18191819
blob_zero(&out);
@@ -2139,11 +2139,11 @@
21392139
** COMMAND: test-html-tokenize
21402140
**
21412141
** Tokenize an HTML file. Return the offset and length and text of
21422142
** each token - one token per line. Omit white-space tokens.
21432143
*/
2144
-void test_html_tokenize(void){
2144
+void test_html_tokenize_cmd(void){
21452145
Blob in;
21462146
char *z;
21472147
int i;
21482148
int iOfst, n;
21492149
@@ -2274,11 +2274,11 @@
22742274
** COMMAND: test-html-tidy
22752275
**
22762276
** Run the htmlTidy() routine on the content of all files named on
22772277
** the command-line and write the results to standard output.
22782278
*/
2279
-void test_html_tidy(void){
2279
+void test_html_tidy_cmd(void){
22802280
Blob in, out;
22812281
int i;
22822282
22832283
for(i=2; i<g.argc; i++){
22842284
blob_read_from_file(&in, g.argv[i], ExtFILE);
@@ -2401,11 +2401,11 @@
24012401
** output.
24022402
**
24032403
** This command is intended as a test and debug interface for
24042404
** the html_to_plaintext() routine.
24052405
*/
2406
-void test_html_to_text(void){
2406
+void test_html_to_text_cmd(void){
24072407
Blob in, out;
24082408
int i;
24092409
24102410
for(i=2; i<g.argc; i++){
24112411
blob_read_from_file(&in, g.argv[i], ExtFILE);
24122412
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1784,11 +1784,11 @@
1784 ** --linksonly Set the WIKI_LINKSONLY flag
1785 ** --nobadlinks Set the WIKI_NOBADLINKS flag
1786 ** --inline Set the WIKI_INLINE flag
1787 ** --noblock Set the WIKI_NOBLOCK flag
1788 */
1789 void test_wiki_render(void){
1790 Blob in, out;
1791 int flags = 0;
1792 if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS;
1793 if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY;
1794 if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY;
@@ -1809,11 +1809,11 @@
1809 **
1810 ** Usage: %fossil test-markdown-render FILE
1811 **
1812 ** Render markdown in FILE as HTML on stdout.
1813 */
1814 void test_markdown_render(void){
1815 Blob in, out;
1816 db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
1817 verify_all_options();
1818 if( g.argc!=3 ) usage("FILE");
1819 blob_zero(&out);
@@ -2139,11 +2139,11 @@
2139 ** COMMAND: test-html-tokenize
2140 **
2141 ** Tokenize an HTML file. Return the offset and length and text of
2142 ** each token - one token per line. Omit white-space tokens.
2143 */
2144 void test_html_tokenize(void){
2145 Blob in;
2146 char *z;
2147 int i;
2148 int iOfst, n;
2149
@@ -2274,11 +2274,11 @@
2274 ** COMMAND: test-html-tidy
2275 **
2276 ** Run the htmlTidy() routine on the content of all files named on
2277 ** the command-line and write the results to standard output.
2278 */
2279 void test_html_tidy(void){
2280 Blob in, out;
2281 int i;
2282
2283 for(i=2; i<g.argc; i++){
2284 blob_read_from_file(&in, g.argv[i], ExtFILE);
@@ -2401,11 +2401,11 @@
2401 ** output.
2402 **
2403 ** This command is intended as a test and debug interface for
2404 ** the html_to_plaintext() routine.
2405 */
2406 void test_html_to_text(void){
2407 Blob in, out;
2408 int i;
2409
2410 for(i=2; i<g.argc; i++){
2411 blob_read_from_file(&in, g.argv[i], ExtFILE);
2412
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1784,11 +1784,11 @@
1784 ** --linksonly Set the WIKI_LINKSONLY flag
1785 ** --nobadlinks Set the WIKI_NOBADLINKS flag
1786 ** --inline Set the WIKI_INLINE flag
1787 ** --noblock Set the WIKI_NOBLOCK flag
1788 */
1789 void test_wiki_render_cmd(void){
1790 Blob in, out;
1791 int flags = 0;
1792 if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS;
1793 if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY;
1794 if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY;
@@ -1809,11 +1809,11 @@
1809 **
1810 ** Usage: %fossil test-markdown-render FILE
1811 **
1812 ** Render markdown in FILE as HTML on stdout.
1813 */
1814 void test_markdown_render_cmd(void){
1815 Blob in, out;
1816 db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
1817 verify_all_options();
1818 if( g.argc!=3 ) usage("FILE");
1819 blob_zero(&out);
@@ -2139,11 +2139,11 @@
2139 ** COMMAND: test-html-tokenize
2140 **
2141 ** Tokenize an HTML file. Return the offset and length and text of
2142 ** each token - one token per line. Omit white-space tokens.
2143 */
2144 void test_html_tokenize_cmd(void){
2145 Blob in;
2146 char *z;
2147 int i;
2148 int iOfst, n;
2149
@@ -2274,11 +2274,11 @@
2274 ** COMMAND: test-html-tidy
2275 **
2276 ** Run the htmlTidy() routine on the content of all files named on
2277 ** the command-line and write the results to standard output.
2278 */
2279 void test_html_tidy_cmd(void){
2280 Blob in, out;
2281 int i;
2282
2283 for(i=2; i<g.argc; i++){
2284 blob_read_from_file(&in, g.argv[i], ExtFILE);
@@ -2401,11 +2401,11 @@
2401 ** output.
2402 **
2403 ** This command is intended as a test and debug interface for
2404 ** the html_to_plaintext() routine.
2405 */
2406 void test_html_to_text_cmd(void){
2407 Blob in, out;
2408 int i;
2409
2410 for(i=2; i<g.argc; i++){
2411 blob_read_from_file(&in, g.argv[i], ExtFILE);
2412
+1 -1
--- src/winhttp.c
+++ src/winhttp.c
@@ -1018,11 +1018,11 @@
10181018
**
10191019
** NOTE: This command is available on Windows operating systems only and
10201020
** requires administrative rights on the machine executed.
10211021
**
10221022
*/
1023
-void cmd_win32_service(void){
1023
+void win32_service_cmd(void){
10241024
int n;
10251025
const char *zMethod;
10261026
const char *zSvcName = "Fossil-DSCM"; /* Default service name */
10271027
10281028
if( g.argc<3 ){
10291029
--- src/winhttp.c
+++ src/winhttp.c
@@ -1018,11 +1018,11 @@
1018 **
1019 ** NOTE: This command is available on Windows operating systems only and
1020 ** requires administrative rights on the machine executed.
1021 **
1022 */
1023 void cmd_win32_service(void){
1024 int n;
1025 const char *zMethod;
1026 const char *zSvcName = "Fossil-DSCM"; /* Default service name */
1027
1028 if( g.argc<3 ){
1029
--- src/winhttp.c
+++ src/winhttp.c
@@ -1018,11 +1018,11 @@
1018 **
1019 ** NOTE: This command is available on Windows operating systems only and
1020 ** requires administrative rights on the machine executed.
1021 **
1022 */
1023 void win32_service_cmd(void){
1024 int n;
1025 const char *zMethod;
1026 const char *zSvcName = "Fossil-DSCM"; /* Default service name */
1027
1028 if( g.argc<3 ){
1029
+3 -3
--- src/xfer.c
+++ src/xfer.c
@@ -1126,11 +1126,11 @@
11261126
**
11271127
** This is the transfer handler on the server side. The transfer
11281128
** message has been uncompressed and placed in the g.cgiIn blob.
11291129
** Process this message and form an appropriate reply.
11301130
*/
1131
-void page_xfer(void){
1131
+void xfer_page(void){
11321132
int isPull = 0;
11331133
int isPush = 0;
11341134
int nErr = 0;
11351135
Xfer xfer;
11361136
int deltaFlag = 0;
@@ -1691,19 +1691,19 @@
16911691
** server in gdb:
16921692
**
16931693
** gdb fossil
16941694
** r test-xfer out.txt
16951695
*/
1696
-void cmd_test_xfer(void){
1696
+void test_xfer_cmd(void){
16971697
db_find_and_open_repository(0,0);
16981698
if( g.argc!=2 && g.argc!=3 ){
16991699
usage("?MESSAGEFILE?");
17001700
}
17011701
blob_zero(&g.cgiIn);
17021702
blob_read_from_file(&g.cgiIn, g.argc==2 ? "-" : g.argv[2], ExtFILE);
17031703
disableLogin = 1;
1704
- page_xfer();
1704
+ xfer_page();
17051705
fossil_print("%s\n", cgi_extract_content());
17061706
}
17071707
17081708
/*
17091709
** Format strings for progress reporting.
17101710
--- src/xfer.c
+++ src/xfer.c
@@ -1126,11 +1126,11 @@
1126 **
1127 ** This is the transfer handler on the server side. The transfer
1128 ** message has been uncompressed and placed in the g.cgiIn blob.
1129 ** Process this message and form an appropriate reply.
1130 */
1131 void page_xfer(void){
1132 int isPull = 0;
1133 int isPush = 0;
1134 int nErr = 0;
1135 Xfer xfer;
1136 int deltaFlag = 0;
@@ -1691,19 +1691,19 @@
1691 ** server in gdb:
1692 **
1693 ** gdb fossil
1694 ** r test-xfer out.txt
1695 */
1696 void cmd_test_xfer(void){
1697 db_find_and_open_repository(0,0);
1698 if( g.argc!=2 && g.argc!=3 ){
1699 usage("?MESSAGEFILE?");
1700 }
1701 blob_zero(&g.cgiIn);
1702 blob_read_from_file(&g.cgiIn, g.argc==2 ? "-" : g.argv[2], ExtFILE);
1703 disableLogin = 1;
1704 page_xfer();
1705 fossil_print("%s\n", cgi_extract_content());
1706 }
1707
1708 /*
1709 ** Format strings for progress reporting.
1710
--- src/xfer.c
+++ src/xfer.c
@@ -1126,11 +1126,11 @@
1126 **
1127 ** This is the transfer handler on the server side. The transfer
1128 ** message has been uncompressed and placed in the g.cgiIn blob.
1129 ** Process this message and form an appropriate reply.
1130 */
1131 void xfer_page(void){
1132 int isPull = 0;
1133 int isPush = 0;
1134 int nErr = 0;
1135 Xfer xfer;
1136 int deltaFlag = 0;
@@ -1691,19 +1691,19 @@
1691 ** server in gdb:
1692 **
1693 ** gdb fossil
1694 ** r test-xfer out.txt
1695 */
1696 void test_xfer_cmd(void){
1697 db_find_and_open_repository(0,0);
1698 if( g.argc!=2 && g.argc!=3 ){
1699 usage("?MESSAGEFILE?");
1700 }
1701 blob_zero(&g.cgiIn);
1702 blob_read_from_file(&g.cgiIn, g.argc==2 ? "-" : g.argv[2], ExtFILE);
1703 disableLogin = 1;
1704 xfer_page();
1705 fossil_print("%s\n", cgi_extract_content());
1706 }
1707
1708 /*
1709 ** Format strings for progress reporting.
1710
+2 -2
--- src/zip.c
+++ src/zip.c
@@ -573,11 +573,11 @@
573573
** COMMAND: test-filezip
574574
**
575575
** Generate a ZIP archive specified by the first argument that
576576
** contains files given in the second and subsequent arguments.
577577
*/
578
-void filezip_cmd(void){
578
+void test_filezip_cmd(void){
579579
int i;
580580
Blob zip;
581581
Blob file;
582582
int eFType = SymFILE;
583583
Archive sArchive;
@@ -867,11 +867,11 @@
867867
** ex=PATTERN Omit any file that match PATTERN. PATTERN is a
868868
** comma-separated list of GLOB patterns, where each
869869
** pattern can optionally be quoted using ".." or '..'.
870870
** Any file matching both ex= and in= is excluded.
871871
*/
872
-void baseline_zip_page(void){
872
+void zip_page(void){
873873
int rid;
874874
const char *z;
875875
char *zName, *zRid, *zKey;
876876
int nName, nRid;
877877
const char *zInclude; /* The in= query parameter */
878878
--- src/zip.c
+++ src/zip.c
@@ -573,11 +573,11 @@
573 ** COMMAND: test-filezip
574 **
575 ** Generate a ZIP archive specified by the first argument that
576 ** contains files given in the second and subsequent arguments.
577 */
578 void filezip_cmd(void){
579 int i;
580 Blob zip;
581 Blob file;
582 int eFType = SymFILE;
583 Archive sArchive;
@@ -867,11 +867,11 @@
867 ** ex=PATTERN Omit any file that match PATTERN. PATTERN is a
868 ** comma-separated list of GLOB patterns, where each
869 ** pattern can optionally be quoted using ".." or '..'.
870 ** Any file matching both ex= and in= is excluded.
871 */
872 void baseline_zip_page(void){
873 int rid;
874 const char *z;
875 char *zName, *zRid, *zKey;
876 int nName, nRid;
877 const char *zInclude; /* The in= query parameter */
878
--- src/zip.c
+++ src/zip.c
@@ -573,11 +573,11 @@
573 ** COMMAND: test-filezip
574 **
575 ** Generate a ZIP archive specified by the first argument that
576 ** contains files given in the second and subsequent arguments.
577 */
578 void test_filezip_cmd(void){
579 int i;
580 Blob zip;
581 Blob file;
582 int eFType = SymFILE;
583 Archive sArchive;
@@ -867,11 +867,11 @@
867 ** ex=PATTERN Omit any file that match PATTERN. PATTERN is a
868 ** comma-separated list of GLOB patterns, where each
869 ** pattern can optionally be quoted using ".." or '..'.
870 ** Any file matching both ex= and in= is excluded.
871 */
872 void zip_page(void){
873 int rid;
874 const char *z;
875 char *zName, *zRid, *zKey;
876 int nName, nRid;
877 const char *zInclude; /* The in= query parameter */
878

Keyboard Shortcuts

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