Changeset 58296b6d73194ca2b74290b865c6f20c758f9fd2
- Timestamp:
- 28/03/08 13:30:36
(6 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1206707436 +0100
- git-parent:
[286e950bf93ca458ab29d1f8b6accc03a039d2b0]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1206707436 +0100
- Message:
module: Use PATH_SEP instead of ':'.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r808821a |
r58296b6 |
|
| 1075 | 1075 | # define DIR_SEP_CHAR '\\' |
|---|
| 1076 | 1076 | # define DIR_SEP "\\" |
|---|
| | 1077 | # define PATH_SEP_CHAR ';' |
|---|
| | 1078 | # define PATH_SEP ";" |
|---|
| 1077 | 1079 | #else |
|---|
| 1078 | 1080 | # define DIR_SEP_CHAR '/' |
|---|
| 1079 | 1081 | # define DIR_SEP "/" |
|---|
| 1080 | | #endif |
|---|
| | 1082 | # define PATH_SEP_CHAR ':' |
|---|
| | 1083 | # define PATH_SEP ":" |
|---|
| | 1084 | #endif |
|---|
| r889c73d |
r58296b6 |
|
| 987 | 987 | #define PLUGIN_PATH_LONGTEXT N_( \ |
|---|
| 988 | 988 | "Additional path for VLC to look for its modules. You can add " \ |
|---|
| 989 | | "several paths by concatenating them using ':' as separator") |
|---|
| | 989 | "several paths by concatenating them using " PATH_SEP " as separator") |
|---|
| 990 | 990 | |
|---|
| 991 | 991 | #define VLM_CONF_TEXT N_("VLM configuration file") |
|---|
| r889c73d |
r58296b6 |
|
| 939 | 939 | char *psz_fullpath; |
|---|
| 940 | 940 | |
|---|
| 941 | | /* Look for a ':' */ |
|---|
| 942 | | for( psz_iter = ppsz_path; *psz_iter && *psz_iter != ':'; psz_iter++ ); |
|---|
| | 941 | /* Look for PATH_SEP_CHAR (a ':' or a ';') */ |
|---|
| | 942 | for( psz_iter = ppsz_path; *psz_iter && *psz_iter != PATH_SEP_CHAR; psz_iter++ ); |
|---|
| 943 | 943 | if( !*psz_iter ) end = true; |
|---|
| 944 | 944 | else *psz_iter = 0; |
|---|
| … | … | |
| 948 | 948 | /* Handle relative as well as absolute paths */ |
|---|
| 949 | 949 | #ifdef WIN32 |
|---|
| 950 | | if( ppsz_path[0] != '\\' && ppsz_path[0] != '/' ) |
|---|
| | 950 | if( ppsz_path[0] != '\\' && ppsz_path[0] != '/' && ppsz_path[0] != ':' ) |
|---|
| 951 | 951 | #else |
|---|
| 952 | 952 | if( ppsz_path[0] != '/' ) |
|---|