VirtualBox

Changeset 407 in kBuild


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

fixslash for everyone!

File:
1 edited

Legend:

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

    r406 r407  
    6767
    6868
     69/**
     70 * Corrects all slashes to unix slashes.
     71 *
     72 * @returns pszFilename.
     73 * @param   pszFilename     The filename to correct.
     74 */
     75static char *fixslash(char *pszFilename)
     76{
     77    char *psz = pszFilename;
     78    while ((psz = strchr(psz, '\\')) != NULL)
     79        *psz++ = '/';
     80    return pszFilename;
     81}
     82
     83
    6984#ifdef __WIN32__
    7085/**
     
    365380#endif
    366381}
    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  */
    376 static char *fixslash(char *pszFilename)
    377 {
    378     char *psz = pszFilename;
    379     while ((psz = strchr(psz, '\\')) != NULL)
    380         *psz++ = '/';
    381     return pszFilename;
    382 }
    383 #endif
    384382
    385383
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