Fossil

Check-in [dfa23f5b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use symbolic name CMDFLAG_WEBPAGE instead of directly saying 0x08
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dfa23f5bbab4369d2af4f545d24072dca00f5089
User & Date: andygoth 2016-11-05 14:22:42
Context
2016-11-05
14:30
In help index, display first-tier command names in bold check-in: 37e8c173 user: andygoth tags: trunk
14:22
Use symbolic name CMDFLAG_WEBPAGE instead of directly saying 0x08 check-in: dfa23f5b user: andygoth tags: trunk
14:17
Ignore empty command name in help page so that /help/ is treated the same as /help check-in: e237cea4 user: andygoth tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/dispatch.c.

   403    403   **
   404    404   ** List all web pages.
   405    405   */
   406    406   void cmd_test_webpage_list(void){
   407    407     int i, nCmd;
   408    408     const char *aCmd[MX_COMMAND];
   409    409     for(i=nCmd=0; i<MX_COMMAND; i++){
   410         -    if(0x08 & aCommand[i].eCmdFlags){
          410  +    if(CMDFLAG_WEBPAGE & aCommand[i].eCmdFlags){
   411    411         aCmd[nCmd++] = aCommand[i].zName;
   412    412       }
   413    413     }
   414    414     assert(nCmd && "page list is empty?");
   415    415     multi_column_list(aCmd, nCmd);
   416    416   }
   417    417