Fossil SCM

Use symbolic name CMDFLAG_WEBPAGE instead of directly saying 0x08

andygoth 2016-11-05 14:22 trunk
Commit dfa23f5bbab4369d2af4f545d24072dca00f5089
1 file changed +1 -1
+1 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -405,11 +405,11 @@
405405
*/
406406
void cmd_test_webpage_list(void){
407407
int i, nCmd;
408408
const char *aCmd[MX_COMMAND];
409409
for(i=nCmd=0; i<MX_COMMAND; i++){
410
- if(0x08 & aCommand[i].eCmdFlags){
410
+ if(CMDFLAG_WEBPAGE & aCommand[i].eCmdFlags){
411411
aCmd[nCmd++] = aCommand[i].zName;
412412
}
413413
}
414414
assert(nCmd && "page list is empty?");
415415
multi_column_list(aCmd, nCmd);
416416
--- src/dispatch.c
+++ src/dispatch.c
@@ -405,11 +405,11 @@
405 */
406 void cmd_test_webpage_list(void){
407 int i, nCmd;
408 const char *aCmd[MX_COMMAND];
409 for(i=nCmd=0; i<MX_COMMAND; i++){
410 if(0x08 & aCommand[i].eCmdFlags){
411 aCmd[nCmd++] = aCommand[i].zName;
412 }
413 }
414 assert(nCmd && "page list is empty?");
415 multi_column_list(aCmd, nCmd);
416
--- src/dispatch.c
+++ src/dispatch.c
@@ -405,11 +405,11 @@
405 */
406 void cmd_test_webpage_list(void){
407 int i, nCmd;
408 const char *aCmd[MX_COMMAND];
409 for(i=nCmd=0; i<MX_COMMAND; i++){
410 if(CMDFLAG_WEBPAGE & aCommand[i].eCmdFlags){
411 aCmd[nCmd++] = aCommand[i].zName;
412 }
413 }
414 assert(nCmd && "page list is empty?");
415 multi_column_list(aCmd, nCmd);
416

Keyboard Shortcuts

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