Index: src/add.c ================================================================== --- src/add.c +++ src/add.c @@ -150,11 +150,11 @@ ** ** Usage: %fossil test-reserved-names [-omitrepo] ** ** Show all reserved filenames for the current check-out. */ -void test_reserved_names(void){ +void test_reserved_names_cmd(void){ int i; const char *z; int omitRepo = find_option("omitrepo",0,0)!=0; /* We should be done with options.. */ Index: src/alerts.c ================================================================== --- src/alerts.c +++ src/alerts.c @@ -19,11 +19,11 @@ ** ** Are you looking for the code that reads and writes the internet ** email protocol? That is not here. See the "smtp.c" file instead. ** Yes, the choice of source code filenames is not the greatest, but ** it is not so bad that changing them seems justified. -*/ +*/ #include "config.h" #include "alerts.h" #include #include @@ -199,11 +199,11 @@ ** WEBPAGE: setup_notification ** ** Administrative page for configuring and controlling email notification. ** Normally accessible via the /Admin/Notification menu. */ -void setup_notification(void){ +void setup_notification_page(void){ static const char *const azSendMethods[] = { "off", "Disabled", "pipe", "Pipe to a command", "db", "Store in a database", "dir", "Store in a directory", @@ -746,11 +746,11 @@ ** ** Return the mailbox hash name corresponding to each human-readable ** name on the command line. This is a test interface for the ** alert_mailbox_name() function. */ -void alert_test_mailbox_hashname(void){ +void test_mailbox_hashname_cmd(void){ int i; for(i=2; i=3 ? g.argv[2] : "x"; @@ -1559,17 +1559,17 @@ ** Edit email alert and notification settings. ** ** The subscriber is identified in either of two ways: ** ** (1) The name= query parameter contains the subscriberCode. -** +** ** (2) The user is logged into an account other than "nobody" or ** "anonymous". In that case the notification settings ** associated with that account can be edited without needing ** to know the subscriber code. */ -void alert_page(void){ +void alerts_page(void){ const char *zName = P("name"); Stmt q; int sa, sc, sf, st, sw, sx; int sdigest = 0, sdonotcall = 0, sverified = 0; int isLogin; /* Logged in as an individual */ @@ -1976,11 +1976,11 @@ ** shows a list of subscriber email addresses. ** Clicking on an email takes one to the /alerts page ** for that email where the delivery settings can be ** modified. */ -void subscriber_list_page(void){ +void subscribers_page(void){ Blob sql; Stmt q; sqlite3_int64 iNow; int nTotal; int nPending; @@ -2301,11 +2301,11 @@ blob_appendf(pOut, "\n-- \nTo unsubscribe: %s/unsubscribe\n", db_get("email-url","http://localhost:8080")); } /* -** COMMAND: test-alert +** COMMAND: test-alert ** ** Usage: %fossil test-alert EVENTID ... ** ** Generate the text of an email alert for all of the EVENTIDs ** listed on the command-line. Or if no events are listed on the @@ -2362,11 +2362,11 @@ blob_reset(&out); db_end_transaction(0); } /* -** COMMAND: test-add-alerts +** COMMAND: test-add-alerts ** ** Usage: %fossil test-add-alerts [OPTIONS] EVENTID ... ** ** Add one or more events to the pending_alert queue. Use this ** command during testing to force email notifications for specific @@ -2387,11 +2387,11 @@ ** so that emails are printed to standard output ** rather than being sent. ** ** --digest Process emails using SENDALERT_DIGEST */ -void test_add_alert_cmd(void){ +void test_add_alerts_cmd(void){ int i; int doAuto = find_option("backoffice",0,0)!=0; unsigned mFlags = 0; if( find_option("debug",0,0)!=0 ){ doAuto = 1; Index: src/allrepo.c ================================================================== --- src/allrepo.c +++ src/allrepo.c @@ -196,11 +196,11 @@ zCmd = g.argv[2]; if( !login_is_nobody() ) blob_appendf(&extra, " -U %s", g.zLogin); if( strncmp(zCmd, "ui", n)==0 || strncmp(zCmd, "server", n)==0 ){ g.argv[1] = g.argv[2]; g.argv[2] = "/"; - cmd_webserver(); + webserver_cmd(); return; } if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){ zCmd = "list"; useCheckouts = find_option("ckout","c",0)!=0; Index: src/attach.c ================================================================== --- src/attach.c +++ src/attach.c @@ -147,13 +147,13 @@ style_footer(); return; } /* +** WEBPAGE: attachview ** WEBPAGE: attachdownload ** WEBPAGE: attachimage -** WEBPAGE: attachview ** ** Download or display an attachment. ** Query parameters: ** ** tkt=TICKETUUID Index: src/backoffice.c ================================================================== --- src/backoffice.c +++ src/backoffice.c @@ -316,11 +316,11 @@ ** ** Show the current process id, and also tell whether or not all other ** processes IDs on the command line are running or not. If the --sleep N ** option is provide, then sleep for N seconds before exiting. */ -void test_process_id_command(void){ +void test_process_id_cmd(void){ const char *zSleep = find_option("sleep",0,1); int i; verify_all_options(); fossil_print("ProcessID for this process: %lld\n", backofficeProcessId()); if( zSleep ) sqlite3_sleep(1000*atoi(zSleep)); @@ -338,11 +338,11 @@ ** Usage: %fossil test-backoffice-lease ** ** Print out information about the backoffice "lease" entry in the ** config table that controls whether or not backoffice should run. */ -void test_backoffice_lease(void){ +void test_backoffice_lease_cmd(void){ sqlite3_int64 tmNow = time(0); Lease x; const char *zLease; db_find_and_open_repository(0,0); verify_all_options(); @@ -567,11 +567,11 @@ ** change in appoximately N-second intervals. ** N less than 1 turns polling off (the default). ** ** --trace Enable debugging output on stderr */ -void backoffice_command(void){ +void backoffice_cmd(void){ int nPoll; const char *zPoll; int bDebug = 0; unsigned int nCmd = 0; if( find_option("trace",0,0)!=0 ) g.fAnyTrace = 1; Index: src/bisect.c ================================================================== --- src/bisect.c +++ src/bisect.c @@ -510,11 +510,11 @@ newArgv[2] = "--page"; newArgv[3] = "timeline?bisect"; newArgv[4] = 0; g.argv = newArgv; g.argc = 4; - cmd_webserver(); + webserver_cmd(); }else if( strncmp(zCmd, "vlist", n)==0 || strncmp(zCmd, "ls", n)==0 || strncmp(zCmd, "status", n)==0 ){ int fAll = find_option("all", "a", 0)!=0; Index: src/blob.c ================================================================== --- src/blob.c +++ src/blob.c @@ -130,11 +130,11 @@ ** COMMAND: test-isspace ** ** Verify that the fossil_isspace() routine is working correctly by ** testing it on all possible inputs. */ -void isspace_cmd(void){ +void test_isspace_cmd(void){ int i; for(i=0; i<=255; i++){ if( i==' ' || i=='\n' || i=='\t' || i=='\v' || i=='\f' || i=='\r' ){ assert( fossil_isspace((char)i) ); @@ -1025,11 +1025,11 @@ ** ** Run compression on INPUTFILE and write the result into OUTPUTFILE. ** ** This is used to test and debug the blob_compress() routine. */ -void compress_cmd(void){ +void test_compress_cmd(void){ Blob f; if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE"); blob_read_from_file(&f, g.argv[2], ExtFILE); blob_compress(&f, &f); blob_write_to_file(&f, g.argv[3]); @@ -1084,11 +1084,11 @@ ** Read files IN1 and IN2, concatenate the content, compress the ** content, then write results into OUT. ** ** This is used to test and debug the blob_compress2() routine. */ -void compress2_cmd(void){ +void test_compress2_cmd(void){ Blob f1, f2; if( g.argc!=5 ) usage("INPUTFILE1 INPUTFILE2 OUTPUTFILE"); blob_read_from_file(&f1, g.argv[2], ExtFILE); blob_read_from_file(&f2, g.argv[3], ExtFILE); blob_compress2(&f1, &f2, &f1); @@ -1136,11 +1136,11 @@ ** ** Read the content of file IN, uncompress that content, and write the ** result into OUT. This command is intended for testing of the ** blob_compress() function. */ -void uncompress_cmd(void){ +void test_uncompress_cmd(void){ Blob f; if( g.argc!=4 ) usage("INPUTFILE OUTPUTFILE"); blob_read_from_file(&f, g.argv[2], ExtFILE); blob_uncompress(&f, &f); blob_write_to_file(&f, g.argv[3]); @@ -1150,11 +1150,11 @@ ** COMMAND: test-cycle-compress ** ** Compress and uncompress each file named on the command line. ** Verify that the original content is recovered. */ -void test_cycle_compress(void){ +void test_cycle_compress_cmd(void){ int i; Blob b1, b2, b3; for(i=2; i1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } style_header("File List"); style_adunit_config(ADUNIT_RIGHT_OK); @@ -587,11 +587,11 @@ ** re=REGEXP Show only files matching REGEXP. Optional. ** expand Begin with the tree fully expanded. ** nofiles Show directories (folders) only. Omit files. ** mtime Order directory elements by decreasing mtime */ -void page_tree(void){ +void tree_page(void){ char *zD = fossil_strdup(P("name")); int nD = zD ? strlen(zD)+1 : 0; const char *zCI = P("ci"); int rid = 0; char *zUuid = 0; @@ -613,11 +613,11 @@ int startExpanded; /* True to start out with the tree expanded */ int showDirOnly; /* Show directories only. Omit files */ int nDir = 0; /* Number of directories. Used for ID attributes */ char *zProjectName = db_get("project-name", 0); - if( strcmp(PD("type","flat"),"flat")==0 ){ page_dir(); return; } + if( strcmp(PD("type","flat"),"flat")==0 ){ dir_page(); return; } memset(&sTree, 0, sizeof(sTree)); login_check_credentials(); if( !g.perm.Read ){ login_needed(g.anon.Read); return; } while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0, Index: src/builtin.c ================================================================== --- src/builtin.c +++ src/builtin.c @@ -58,11 +58,11 @@ /* ** COMMAND: test-builtin-list ** ** List the names and sizes of all built-in resources. */ -void test_builtin_list(void){ +void test_builtin_list_cmd(void){ int i; for(i=0; i for(i=0; i %s\n", g.argv[i], date_in_standard_format(g.argv[i])); } @@ -1879,11 +1879,11 @@ ** --no-settings Do not consider any glob settings. ** -v|--verbose Show per-file results for all pre-commit checks. ** ** See also: commit, extras */ -void test_commit_warning(void){ +void test_commit_warning_cmd(void){ int rc = 0; int noSettings; int verboseFlag; Stmt q; noSettings = find_option("no-settings",0,0)!=0; Index: src/comformat.c ================================================================== --- src/comformat.c +++ src/comformat.c @@ -568,11 +568,11 @@ ** --indent Number of spaces to indent (default (-1) is to ** auto-detect). Zero means no indent. ** -W|--width Width of lines (default (-1) is to auto-detect). ** Zero means no limit. */ -void test_comment_format(void){ +void test_comment_format_cmd(void){ const char *zWidth; const char *zIndent; const char *zPrefix; char *zText; char *zOrigText; Index: src/content.c ================================================================== --- src/content.c +++ src/content.c @@ -936,11 +936,11 @@ ** Options: ** ** --parse Parse all manifests, wikis, tickets, events, and ** so forth, reporting any errors found. */ -void test_integrity(void){ +void test_integrity_cmd(void){ Stmt q; Blob content; int n1 = 0; int n2 = 0; int nErr = 0; @@ -1046,11 +1046,11 @@ /* ** COMMAND: test-orphans ** ** Search the repository for orphaned artifacts. */ -void test_orphans(void){ +void test_orphans_cmd(void){ Stmt q; int cnt = 0; db_find_and_open_repository(0, 0); db_multi_exec( @@ -1155,11 +1155,11 @@ ** Options: ** ** --notshunned Do not report shunned artifacts ** --quiet Only show output if there are errors */ -void test_missing(void){ +void test_missing_cmd(void){ Stmt q; Blob content; int nErr = 0; int nArtifact = 0; int i; @@ -1227,11 +1227,11 @@ ** the metadata. ** ** Note that the arguments are the integer raw RID values from the BLOB table, ** not artifact hashes or labels. */ -void test_content_erase(void){ +void test_content_erase_cmd(void){ int i; Blob x; char c; Stmt q; prompt_user("This command erases information from the repository and\n" Index: src/cookies.c ================================================================== --- src/cookies.c +++ src/cookies.c @@ -201,16 +201,16 @@ for(i=0; if2 and f2->f1 */ Blob a1, a2; /* Recovered file content */ if( g.argc!=4 ) usage("FILE1 FILE2"); blob_read_from_file(&f1, g.argv[2], ExtFILE); Index: src/diff.c ================================================================== --- src/diff.c +++ src/diff.c @@ -2385,11 +2385,11 @@ ** check-in over the entire repository is used. ** Specify "origin=trunk" or similar for a reverse ** annotation ** w=BOOLEAN Ignore whitespace */ -void annotation_page(void){ +void annotate_page(void){ int i; const char *zLimit; /* Depth limit */ u64 annFlags = DIFF_STRIP_EOLCR; int showLog; /* True to display the log */ int fileVers; /* Show file version instead of check-in versions */ Index: src/dispatch.c ================================================================== --- src/dispatch.c +++ src/dispatch.c @@ -498,11 +498,11 @@ /* ** COMMAND: test-list-webpage ** ** List all web pages. */ -void cmd_test_webpage_list(void){ +void test_list_webpage_cmd(void){ int i, nCmd; const char *aCmd[MX_COMMAND]; for(i=nCmd=0; i %s\n", g.argv[i], mimetype_from_name(g.argv[i])); @@ -804,12 +804,12 @@ } } /* -** WEBPAGE: uv ** WEBPAGE: doc +** WEBPAGE: uv ** URL: /uv/FILE ** URL: /doc/CHECKIN/FILE ** ** CHECKIN can be either tag or hash prefix or timestamp identifying a ** particular check, or the name of a branch (meaning the most recent @@ -1159,11 +1159,11 @@ ** ** Query parameters: ** ** s=PATTERN Search for PATTERN */ -void doc_search_page(void){ +void docsrch_page(void){ login_check_credentials(); style_header("Document Search"); search_screen(SRCH_DOC, 0); style_footer(); } Index: src/export.c ================================================================== --- src/export.c +++ src/export.c @@ -837,11 +837,11 @@ ** COMMAND: test-topological-sort ** ** Invoke the topological_sort_checkins() interface for testing ** purposes. */ -void test_topological_sort(void){ +void test_topological_sort_cmd(void){ int n; db_find_and_open_repository(0, 0); n = topological_sort_checkins(1); fossil_print("%d reorderings required\n", n); } @@ -1662,11 +1662,11 @@ ** ** fossil git status ** ** Show the status of the current Git mirror, if there is one. */ -void gitmirror_command(void){ +void gitmirror_cmd(void){ char *zCmd; int nCmd; if( g.argc<3 ){ usage("export ARGS..."); } Index: src/extcgi.c ================================================================== --- src/extcgi.c +++ src/extcgi.c @@ -383,11 +383,11 @@ /* ** WEBPAGE: extfilelist ** ** List all files in the extension CGI document root and its subfolders. */ -void ext_filelist_page(void){ +void extfilelist_page(void){ Stmt q; login_check_credentials(); if( !g.perm.Admin ){ login_needed(0); return; Index: src/file.c ================================================================== --- src/file.c +++ src/file.c @@ -551,11 +551,11 @@ ** ** Make a copy of the file at SOURCE into a new name DESTINATION. Any ** directories in the path leading up to DESTINATION that do not already ** exist are created automatically. */ -void test_file_copy(void){ +void test_file_copy_cmd(void){ if( g.argc!=4 ){ fossil_fatal("Usage: %s test-file-copy SOURCE DESTINATION", g.argv[0]); } file_copy(g.argv[2], g.argv[3]); } @@ -618,11 +618,11 @@ ** ** Usage: %fossil test-set-mtime FILENAME DATE/TIME ** ** Sets the mtime of the named file to the date/time shown. */ -void test_set_mtime(void){ +void test_set_mtime_cmd(void){ const char *zFile; char *zDate; i64 iMTime; if( g.argc!=4 ){ usage("FILENAME DATE/TIME"); @@ -774,11 +774,11 @@ ** Usage: %fossil test-is-normal-dir NAME... ** ** Returns non-zero if the specified names represent real directories, i.e. ** not junctions, symbolic links, etc. */ -void test_is_normal_dir(void){ +void test_is_normal_dir_cmd(void){ int i; for(i=2; i %lx\n", g.argv[i], GetFileAttributesW(zMbcs)); fossil_print("ISDIR \"%s\" -> %d\n", g.argv[i], file_is_normal_dir(zMbcs)); @@ -1036,11 +1036,11 @@ ** ** Usage: %fossil test-simplify-name FILENAME... ** ** Print the simplified versions of each FILENAME. */ -void cmd_test_simplify_name(void){ +void test_simplify_name_cmd(void){ int i; char *z; for(i=2; i ", z); @@ -1226,11 +1226,11 @@ ** --allow-symlinks BOOLEAN Temporarily turn allow-symlinks on/off ** --open-config Open the configuration database first. ** --slash Trailing slashes, if any, are retained. ** --reset Reset cached stat() info for each file. */ -void cmd_test_file_environment(void){ +void test_file_environment_cmd(void){ int i; int slashFlag = find_option("slash",0,0)!=0; int resetFlag = find_option("reset",0,0)!=0; const char *zAllow = find_option("allow-symlinks",0,1); if( find_option("open-config", 0, 0)!=0 ){ @@ -1256,11 +1256,11 @@ ** Usage: %fossil test-canonical-name FILENAME... ** ** Test the operation of the canonical name generator. ** Also test Fossil's ability to measure attributes of a file. */ -void cmd_test_canonical_name(void){ +void test_canonical_name_cmd(void){ int i; Blob x; int slashFlag = find_option("slash",0,0)!=0; blob_zero(&x); for(i=2; ixFunc!=page_xfer && db_schema_is_outofdate() ){ + }else if( pCmd->xFunc!=xfer_page && db_schema_is_outofdate() ){ #ifdef FOSSIL_ENABLE_JSON if(g.json.isJsonMode){ json_err(FSL_JSON_E_DB_NEEDS_REBUILD,NULL,0); }else #endif @@ -2065,11 +2065,11 @@ ** Most CGI files contain only a "repository:" line. It is uncommon to ** use any other option. ** ** See also: http, server, winsrv */ -void cmd_cgi(void){ +void cgi_cmd(void){ const char *zFile; const char *zNotFound = 0; char **azRedirect = 0; /* List of repositories to redirect to */ int nRedirect = 0; /* Number of entries in azRedirect */ Glob *pFileGlob = 0; /* Pattern for files */ @@ -2402,11 +2402,11 @@ ** --usepidkey Use saved encryption key from parent process. This is ** only necessary when using SEE on Windows. ** ** See also: cgi, server, winsrv */ -void cmd_http(void){ +void http_cmd(void){ const char *zIpAddr = 0; const char *zNotFound; const char *zHost; const char *zAltBase; const char *zFileGlob; @@ -2525,11 +2525,11 @@ ** ** Options: ** --th-trace trace TH1 execution (for debugging purposes) ** */ -void cmd_test_http(void){ +void test_http_cmd(void){ const char *zIpAddr; /* IP address of remote client */ Th_InitTraceLog(); login_set_capabilities("sx", 0); g.useLocalauth = 1; @@ -2671,11 +2671,11 @@ ** --usepidkey Use saved encryption key from parent process. This is ** only necessary when using SEE on Windows. ** ** See also: cgi, http, winsrv */ -void cmd_webserver(void){ +void webserver_cmd(void){ int iPort, mxPort; /* Range of TCP ports allowed */ const char *zPort; /* Value of the --port option */ const char *zBrowser; /* Name of web browser program */ char *zBrowserCmd = 0; /* Command to launch the web browser */ int isUiCmd; /* True if command is "ui", not "server' */ Index: src/manifest.c ================================================================== --- src/manifest.c +++ src/manifest.c @@ -1133,11 +1133,11 @@ ** Usage: %fossil test-parse-manifest FILENAME ?N? ** ** Parse the manifest(s) given on the command-line and report any ** errors. If the N argument is given, run the parsing N times. */ -void manifest_test_parse_cmd(void){ +void test_parse_manifest_cmd(void){ Manifest *p; Blob b; int i; int n = 1; db_find_and_open_repository(0,0); @@ -1170,11 +1170,11 @@ ** repositories after making any changes to the manifest_parse() ** implementation to confirm that the changes did not break anything. ** ** If the --limit N argument is given, parse no more than N blobs */ -void manifest_test_parse_all_blobs_cmd(void){ +void test_parse_all_blobs_cmd(void){ Manifest *p; Blob err; Stmt q; int nTest = 0; int nErr = 0; Index: src/md5.c ================================================================== --- src/md5.c +++ src/md5.c @@ -442,11 +442,11 @@ ** Usage: %fossil md5sum FILES.... ** ** Compute an MD5 checksum of all files named on the command-line. ** If a file is named "-" then content is read from standard input. */ -void md5sum_test(void){ +void md5sum_cmd(void){ int i; Blob in; Blob cksum; for(i=2; iUser Configuration Notes: @
    @
  1. @ Every user, logged in or not, inherits the privileges of @@ -235,11 +235,11 @@ ** WEBPAGE: setup_ucap_list ** ** A documentation page showing the meaning of the various user capabilities ** code letters. */ -void setup_ucap_list(void){ +void setup_ucap_list_page(void){ style_header("User Capability Codes"); @

    All capabilities

    capabilities_table(CAPCLASS_ALL); @

    Capabilities associated with checked-in content

    capabilities_table(CAPCLASS_CODE); @@ -276,11 +276,11 @@ ** WEBPAGE: setup_uedit ** ** Edit information about a user or create a new user. ** Requires Admin privileges. */ -void user_edit(void){ +void setup_uedit_page(void){ const char *zId, *zLogin, *zInfo, *zCap, *zPw; const char *zGroup; const char *zOldLogin; int uid, i; char *zDeleteVerify = 0; /* Delete user verification text */ Index: src/sha1.c ================================================================== --- src/sha1.c +++ src/sha1.c @@ -508,11 +508,11 @@ ** -h, --dereference If FILE is a symbolic link, compute the hash ** on the object that the link points to. Normally, ** the hash is over the name of the object that ** the link points to. */ -void sha1sum_test(void){ +void sha1sum_cmd(void){ int i; Blob in; Blob cksum; int eFType = SymFILE; if( find_option("dereference","h",0)!=0 ){ Index: src/sha3.c ================================================================== --- src/sha3.c +++ src/sha3.c @@ -638,11 +638,11 @@ ** --size N An N-bit hash. N must be a multiple of 32 between ** 128 and 512. ** -h, --dereference If FILE is a symbolic link, compute the hash on ** the object pointed to, not on the link itself. */ -void sha3sum_test(void){ +void sha3sum_cmd(void){ int i; Blob in; Blob cksum; int iSize = 256; int eFType = SymFILE; Index: src/skins.c ================================================================== --- src/skins.c +++ src/skins.c @@ -448,11 +448,11 @@ /* ** WEBPAGE: setup_skin_admin ** ** Administrative actions on skins. For administrators only. */ -void setup_skin_admin(void){ +void setup_skin_admin_page(void){ const char *z; char *zName; char *zErr = 0; const char *zCurrent = 0; /* Current skin */ int i; /* Loop counter */ @@ -698,11 +698,11 @@ ** Requires Admin or Setup privileges. ** ** w=NUM -- 0=CSS, 1=footer, 2=header, 3=details, 4=js ** sk=NUM -- the draft skin number */ -void setup_skinedit(void){ +void setup_skinedit_page(void){ static const struct sSkinAddr { const char *zFile; const char *zTitle; const char *zSubmenu; } aSkinAttr[] = { @@ -874,11 +874,11 @@ /* ** WEBPAGE: setup_skin ** ** Generate a page showing the steps needed to customize a skin. */ -void setup_skin(void){ +void setup_skin_page(void){ int i; /* Loop counter */ int iSkin; /* Which draft skin is being edited */ int isSetup; /* True for an administrator */ int isEditor; /* Others authorized to make edits */ char *zAllowedEditors; /* Who may edit the draft skin */ Index: src/smtp.c ================================================================== --- src/smtp.c +++ src/smtp.c @@ -133,11 +133,11 @@ ** Usage: %fossil test-find-mx DOMAIN ... ** ** Do a DNS MX lookup to find the hostname for sending email for ** DOMAIN. */ -void test_find_mx(void){ +void test_find_mx_cmd(void){ int i; if( g.argc<=2 ){ usage("DOMAIN ..."); } for(i=2; i=3 ){ N = atoi(g.argv[2]); } fossil_print("%s\n", fossil_random_password(N)); Index: src/verify.c ================================================================== --- src/verify.c +++ src/verify.c @@ -111,11 +111,11 @@ /* ** COMMAND: test-verify-all ** ** Verify all records in the repository. */ -void verify_all_cmd(void){ +void test_verify_all_cmd(void){ Stmt q; int cnt = 0; db_must_be_within_tree(); db_prepare(&q, "SELECT rid FROM blob"); while( db_step(&q)==SQLITE_ROW ){ Index: src/webmail.c ================================================================== --- src/webmail.c +++ src/webmail.c @@ -306,11 +306,11 @@ ** Usage: %fossil test-decode-email FILE ** ** Read an rfc-2822 formatted email out of FILE, then write a decoding ** to stdout. Use for testing and validating the email decoder. */ -void test_email_decode_cmd(void){ +void test_decode_email_cmd(void){ Blob email; EmailToc *p; int i; verify_all_options(); if( g.argc!=3 ) usage("FILE"); @@ -574,11 +574,11 @@ }; style_submenu_multichoice("d", sizeof(az)/(2*sizeof(az[0])), az, 0); } /* -** WEBPAGE: webmail +** WEBPAGE: webmail ** ** This page can be used to read content from the EMAILBOX table ** that contains email received by the "fossil smtpd" command. ** ** Query parameters: @@ -762,20 +762,20 @@ style_footer(); db_end_transaction(0); } /* -** WEBPAGE: emailblob +** WEBPAGE: emailblob ** ** This page, accessible only to administrators, allows easy viewing of ** the emailblob table - the table that contains the text of email messages ** both inbound and outbound, and transcripts of SMTP sessions. ** ** id=N Show the text of emailblob with emailid==N ** */ -void webmail_emailblob_page(void){ +void emailblob_page(void){ int id = atoi(PD("id","0")); Stmt q; login_check_credentials(); if( !g.perm.Setup ){ login_needed(0); @@ -858,17 +858,17 @@ } style_footer(); } /* -** WEBPAGE: emailoutq +** WEBPAGE: emailoutq ** ** This page, accessible only to administrators, allows easy viewing of ** the emailoutq table - the table that contains the email messages ** that are queued for transmission via SMTP. */ -void webmail_emailoutq_page(void){ +void emailoutq_page(void){ Stmt q; login_check_credentials(); if( !g.perm.Setup ){ login_needed(0); return; Index: src/wiki.c ================================================================== --- src/wiki.c +++ src/wiki.c @@ -209,11 +209,11 @@ /* ** WEBPAGE: md_rules ** ** Show a summary of the Markdown wiki formatting rules. */ -void markdown_rules_page(void){ +void md_rules_page(void){ Blob x; int fTxt = P("txt")!=0; style_header("Markdown Formatting Rules"); if( fTxt ){ style_submenu_element("Formatted", "%R/md_rules"); @@ -318,11 +318,11 @@ /* ** WEBPAGE: wikihelp ** A generic landing page for wiki. */ -void wiki_helppage(void){ +void wikihelp_page(void){ login_check_credentials(); if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; } style_header("Wiki Help"); wiki_standard_submenu(W_ALL_BUT(W_HELP)); @

    Wiki Links

    @@ -356,11 +356,11 @@ ** WEBPAGE: wikisrch ** Usage: /wikisrch?s=PATTERN ** ** Full-text search of all current wiki text */ -void wiki_srchpage(void){ +void wikisrch_page(void){ login_check_credentials(); style_header("Wiki Search"); wiki_standard_submenu(W_HELP|W_LIST|W_SANDBOX); search_screen(SRCH_WIKI, 0); style_footer(); @@ -499,13 +499,13 @@ login_check_credentials(); if( !g.perm.RdWiki ){ login_needed(g.anon.RdWiki); return; } zPageName = P("name"); if( zPageName==0 ){ if( search_restrict(SRCH_WIKI)!=0 ){ - wiki_srchpage(); + wikisrch_page(); }else{ - wiki_helppage(); + wikihelp_page(); } return; } if( check_name(zPageName) ) return; isSandbox = is_sandbox(zPageName); Index: src/wikiformat.c ================================================================== --- src/wikiformat.c +++ src/wikiformat.c @@ -1784,11 +1784,11 @@ ** --linksonly Set the WIKI_LINKSONLY flag ** --nobadlinks Set the WIKI_NOBADLINKS flag ** --inline Set the WIKI_INLINE flag ** --noblock Set the WIKI_NOBLOCK flag */ -void test_wiki_render(void){ +void test_wiki_render_cmd(void){ Blob in, out; int flags = 0; if( find_option("buttons",0,0)!=0 ) flags |= WIKI_BUTTONS; if( find_option("htmlonly",0,0)!=0 ) flags |= WIKI_HTMLONLY; if( find_option("linksonly",0,0)!=0 ) flags |= WIKI_LINKSONLY; @@ -1809,11 +1809,11 @@ ** ** Usage: %fossil test-markdown-render FILE ** ** Render markdown in FILE as HTML on stdout. */ -void test_markdown_render(void){ +void test_markdown_render_cmd(void){ Blob in, out; db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0); verify_all_options(); if( g.argc!=3 ) usage("FILE"); blob_zero(&out); @@ -2139,11 +2139,11 @@ ** COMMAND: test-html-tokenize ** ** Tokenize an HTML file. Return the offset and length and text of ** each token - one token per line. Omit white-space tokens. */ -void test_html_tokenize(void){ +void test_html_tokenize_cmd(void){ Blob in; char *z; int i; int iOfst, n; @@ -2274,11 +2274,11 @@ ** COMMAND: test-html-tidy ** ** Run the htmlTidy() routine on the content of all files named on ** the command-line and write the results to standard output. */ -void test_html_tidy(void){ +void test_html_tidy_cmd(void){ Blob in, out; int i; for(i=2; i