Changeset 58296b6d73194ca2b74290b865c6f20c758f9fd2

Show
Ignore:
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
  • include/vlc_common.h

    r808821a r58296b6  
    10751075#   define DIR_SEP_CHAR '\\' 
    10761076#   define DIR_SEP "\\" 
     1077#   define PATH_SEP_CHAR ';' 
     1078#   define PATH_SEP ";" 
    10771079#else 
    10781080#   define DIR_SEP_CHAR '/' 
    10791081#   define DIR_SEP "/" 
    1080 #endif 
     1082#   define PATH_SEP_CHAR ':' 
     1083#   define PATH_SEP ":" 
     1084#endif 
  • src/libvlc-module.c

    r889c73d r58296b6  
    987987#define PLUGIN_PATH_LONGTEXT N_( \ 
    988988    "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") 
    990990 
    991991#define VLM_CONF_TEXT N_("VLM configuration file") 
  • src/modules/modules.c

    r889c73d r58296b6  
    939939        char *psz_fullpath; 
    940940 
    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++ ); 
    943943        if( !*psz_iter ) end = true; 
    944944        else *psz_iter = 0; 
     
    948948        /* Handle relative as well as absolute paths */ 
    949949#ifdef WIN32 
    950         if( ppsz_path[0] != '\\' && ppsz_path[0] != '/'
     950        if( ppsz_path[0] != '\\' && ppsz_path[0] != '/' && ppsz_path[0] != ':'
    951951#else 
    952952        if( ppsz_path[0] != '/' )