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 Unified Diffs Ignore Whitespace Patch

Changes to src/dispatch.c.

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








|







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