VirtualBox

Changeset 44623 in vbox for trunk


Ignore:
Timestamp:
Feb 11, 2013 10:14:24 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83710
Message:

Runtime: RTPathCreateRelative -> RTPathCalcRelative

Location:
trunk
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/path.h

    r44615 r44623  
    595595
    596596/**
    597  * Create a relative path between the two given paths.
     597 * Calculate a relative path between the two given paths.
    598598 *
    599599 * @returns IPRT status code.
     
    608608 * @param   pszPathTo       The path to reach with the created relative path.
    609609 */
    610 RTDECL(int) RTPathCreateRelative(char *pszPathDst, size_t cbPathDst,
    611                                  const char *pszPathFrom,
    612                                  const char *pszPathTo);
     610RTDECL(int) RTPathCalcRelative(char *pszPathDst, size_t cbPathDst,
     611                               const char *pszPathFrom,
     612                               const char *pszPathTo);
    613613
    614614#ifdef IN_RING3
  • trunk/src/VBox/Runtime/common/path/RTPathCalcRelative.cpp

    r44617 r44623  
    3838
    3939
    40 RTDECL(int) RTPathCreateRelative(char *pszPathDst, size_t cbPathDst,
    41                                  const char *pszPathFrom,
    42                                  const char *pszPathTo)
     40RTDECL(int) RTPathCalcRelative(char *pszPathDst, size_t cbPathDst,
     41                               const char *pszPathFrom,
     42                               const char *pszPathTo)
    4343{
    4444    int rc = VINF_SUCCESS;
  • trunk/src/VBox/Runtime/testcase/tstRTPath.cpp

    r44615 r44623  
    555555
    556556    /*
    557      * RTPathCreateRelative
    558      */
    559     RTTestSub(hTest, "RTPathCreateRelative");
     557     * RTPathCalcRelative
     558     */
     559    RTTestSub(hTest, "RTPathCalcRelative");
    560560    struct
    561561    {
     
    580580        const char *pszTo   = s_aRelPath[i].pszTo;
    581581
    582         rc = RTPathCreateRelative(szPath, sizeof(szPath), pszFrom, pszTo);
     582        rc = RTPathCalcRelative(szPath, sizeof(szPath), pszFrom, pszTo);
    583583        if (rc != s_aRelPath[i].rc)
    584584            RTTestIFailed("Unexpected return code\n"
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