Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix file_is_absolute_path(), accounting for "C:" being an absolute path |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
573bbd3eb94b7d3f64bea1edff4fc0b1 |
| User & Date: | jan.nijtmans 2015-03-10 21:00:15.320 |
Context
|
2015-03-11
| ||
| 02:06 | In the "server.wiki" document, use standard HTTP ports for the examples. check-in: e8722b014c user: drh tags: trunk | |
|
2015-03-10
| ||
| 21:00 | Fix file_is_absolute_path(), accounting for "C:" being an absolute path check-in: 573bbd3eb9 user: jan.nijtmans tags: trunk | |
| 18:46 | Add anti-aliasing to timewarp arrowheads. Improve the anti-aliasing on merge arrowheads. check-in: f99848e048 user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
812 813 814 815 816 817 818 |
** if it is relative.
*/
int file_is_absolute_path(const char *zPath){
if( zPath[0]=='/'
#if defined(_WIN32) || defined(__CYGWIN__)
|| zPath[0]=='\\'
|| (fossil_isalpha(zPath[0]) && zPath[1]==':'
| | | 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 |
** if it is relative.
*/
int file_is_absolute_path(const char *zPath){
if( zPath[0]=='/'
#if defined(_WIN32) || defined(__CYGWIN__)
|| zPath[0]=='\\'
|| (fossil_isalpha(zPath[0]) && zPath[1]==':'
&& (zPath[2]=='\\' || zPath[2]=='/' || zPath[2]=='\0'))
#endif
){
return 1;
}else{
return 0;
}
}
|
| ︙ | ︙ |