Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix for the 'reserved-names' test. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
84e2abea1c0a07fe2f0c063b914b04ad |
| User & Date: | mistachkin 2021-03-18 03:21:38.156 |
Context
|
2021-03-18
| ||
| 03:22 | When using the VsWhere tool, require the MSVC toolset, not MSBuild. check-in: 9cd7d67da0 user: mistachkin tags: trunk | |
| 03:21 | Fix for the 'reserved-names' test. check-in: 84e2abea1c user: mistachkin tags: trunk | |
| 03:21 | Fix compiler warning seen with MSVC. check-in: 2dbc715496 user: mistachkin tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
2563 2564 2565 2566 2567 2568 2569 |
return zEnd[-10]=='/' ? 2 : gotSuffix;
}
default:{
return 0;
}
}
}
| > > > > > > > > > > > > > > > > > > > > > | 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 |
return zEnd[-10]=='/' ? 2 : gotSuffix;
}
default:{
return 0;
}
}
}
/*
** COMMAND: test-is-reserved-name
**
** Usage: %fossil test-is-reserved-name FILENAMES...
**
** Passes each given name to file_is_reserved_name() and outputs one
** line per file: the result value of that function followed by the
** name.
*/
void test_is_reserved_name_cmd(void){
int i;
if(g.argc<3){
usage("FILENAME_1 [...FILENAME_N]");
}
for( i = 2; i < g.argc; ++i ){
const int check = file_is_reserved_name(g.argv[i], -1);
fossil_print("%d %s\n", check, g.argv[i]);
}
}
|