VirtualBox

Changeset 406 in kBuild for trunk/src/lib/kDep.c


Ignore:
Timestamp:
Jan 15, 2006 12:53:31 AM (19 years ago)
Author:
bird
Message:

fixslash for all but OS2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/kDep.c

    r404 r406  
    185185}
    186186
    187 /**
    188  * Corrects all slashes to unix slashes.
    189  *
    190  * @returns pszFilename.
    191  * @param   pszFilename     The filename to correct.
    192  */
    193 static char *fixslash(char *pszFilename)
    194 {
    195     char *psz = pszFilename;
    196     while ((psz = strchr(psz, '\\')) != NULL)
    197         *psz++ = '/';
    198     return pszFilename;
    199 }
    200 
    201187#elif defined(__OS2__)
    202188
     
    379365#endif
    380366}
     367
     368
     369#ifndef __OS2__
     370/**
     371 * Corrects all slashes to unix slashes.
     372 *
     373 * @returns pszFilename.
     374 * @param   pszFilename     The filename to correct.
     375 */
     376static char *fixslash(char *pszFilename)
     377{
     378    char *psz = pszFilename;
     379    while ((psz = strchr(psz, '\\')) != NULL)
     380        *psz++ = '/';
     381    return pszFilename;
     382}
     383#endif
    381384
    382385
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette