VirtualBox

Ignore:
Timestamp:
Dec 4, 2023 5:24:33 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Get rid of PL_strcmp/PL_strncmp and replace with IPRT equivalents, bugref:10545

Location:
trunk/src/libs/xpcom18a4/xpcom/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/tests/TestCRT.cpp

    r1 r102457  
    3535 *
    3636 * ***** END LICENSE BLOCK ***** */
     37#include <iprt/string.h>
    3738
    3839#include "nsCRT.h"
     
    6061static void Check(const char* s1, const char* s2, PRIntn n)
    6162{
    62   PRIntn clib = PL_strcmp(s1, s2);
    63   PRIntn clib_n = PL_strncmp(s1, s2, n);
     63  PRIntn clib = RTStrCmp(s1, s2);
     64  PRIntn clib_n = RTStrNCmp(s1, s2, n);
    6465  PRIntn clib_case = PL_strcasecmp(s1, s2);
    6566  PRIntn clib_case_n = PL_strncasecmp(s1, s2, n);
  • trunk/src/libs/xpcom18a4/xpcom/tests/TestID.cpp

    r86425 r102457  
    3535 *
    3636 * ***** END LICENSE BLOCK ***** */
     37#include <iprt/string.h>
     38
    3739#include <stdio.h>
    38 #include "plstr.h"
    3940#include "nsID.h"
    4041#include "prmem.h"
     
    6768      return -1;
    6869    }
    69     if (0 != PL_strcmp(cp, ids[4*(i/4) + 3])) {
     70    if (0 != RTStrCmp(cp, ids[4*(i/4) + 3])) {
    7071      fprintf(stderr, "TestID: compare of ToString failed on test #%d\n", i);
    7172      return -1;
Note: See TracChangeset for help on using the changeset viewer.

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