VirtualBox

Changeset 102323 in vbox


Ignore:
Timestamp:
Nov 27, 2023 3:00:21 PM (12 months ago)
Author:
vboxsync
Message:

libs/xpcom: Replace PL_strlen with strlen and get rid of it, bugref:10545

Location:
trunk/src/libs/xpcom18a4
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r102321 r102323  
    387387        nsprpub/lib/ds/plarena.c \
    388388        nsprpub/lib/ds/plhash.c \
    389         nsprpub/lib/libc/src/strlen.c \
    390389        nsprpub/lib/libc/src/strcpy.c \
    391390        nsprpub/lib/libc/src/strcmp.c \
  • trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp

    r102175 r102323  
    194194                              NS_OK,                         // default status
    195195                              (PRUint8 *)joinedQueueName,    // qName gets copied
    196                               PL_strlen(joinedQueueName)+1))) { // message length
     196                              strlen(joinedQueueName)+1))) { // message length
    197197    // send the attach msg
    198198    SendMessage(&trans, PR_TRUE);  // synchronous
  • trunk/src/libs/xpcom18a4/nsprpub/lib/libc/include/plstr.h

    r102175 r102323  
    6363
    6464#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
    65 #define PL_strlen VBoxNsplPL_strlen
    6665#define PL_strcmp VBoxNsplPL_strcmp
    6766#define PL_strncmp VBoxNsplPL_strncmp
     
    7574#define PL_strcasestr VBoxNsplPL_strcasestr
    7675#define PL_strndup VBoxNsplPL_strndup
    77 #define PL_strnlen VBoxNsplPL_strnlen
    7876#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
    7977
    8078PR_BEGIN_EXTERN_C
    81 /*
    82  * PL_strlen
    83  *
    84  * Returns the length of the provided string, not including the trailing '\0'.
    85  */
    86 
    87 PR_EXTERN(PRUint32)
    88 PL_strlen(const char *str);
    89 
    90 /*
    91  * PL_strnlen
    92  *
    93  * Returns the length of the provided string, not including the trailing '\0',
    94  * up to the indicated maximum.  The string will not be examined beyond the
    95  * maximum; if no terminating '\0' is found, the maximum will be returned.
    96  */
    97 
    98 PR_EXTERN(PRUint32)
    99 PL_strnlen(const char *str, PRUint32 max);
    100 
    10179/*
    10280 * PL_strncpy
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl

    r102309 r102323  
    5757
    5858    void autoRegisterInterfaces();
    59 
    60     nsIEnumerator enumerateInterfacesWhoseNamesStartWith(in string prefix);
    6159};
    6260
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp

    r101967 r102323  
    106106                             xptiWorkingSet* aWorkingSet)
    107107{
    108     size_t nameLength = PL_strlen(r.mName);
     108    size_t nameLength = strlen(r.mName);
    109109    void* place = XPT_MALLOC(aWorkingSet->GetStructArena(),
    110110                             sizeof(xptiInterfaceEntry) + nameLength);
     
    259259{
    260260    // It is not necessary to Resolve because this info is read from manifest.
    261     *name = (char*) nsMemory::Clone(mName, PL_strlen(mName)+1);
     261    *name = (char*) nsMemory::Clone(mName, strlen(mName)+1);
    262262    return *name ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
    263263}
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp

    r102309 r102323  
    18631863}
    18641864
    1865 /* nsIEnumerator enumerateInterfacesWhoseNamesStartWith (in string prefix); */
    1866 NS_IMETHODIMP xptiInterfaceInfoManager::EnumerateInterfacesWhoseNamesStartWith(const char *prefix, nsIEnumerator **_retval)
    1867 {
    1868     nsCOMPtr<nsISupportsArray> array;
    1869     NS_NewISupportsArray(getter_AddRefs(array));
    1870     if(!array)
    1871         return NS_ERROR_UNEXPECTED;
    1872 
    1873     ArrayAndPrefix args = {array, prefix, PL_strlen(prefix)};
    1874     PL_DHashTableEnumerate(mWorkingSet.mNameTable, xpti_ArrayPrefixAppender, &args);
    1875    
    1876     return array->Enumerate(_retval);
    1877 }
    1878 
    18791865/* void autoRegisterInterfaces (); */
    18801866NS_IMETHODIMP xptiInterfaceInfoManager::AutoRegisterInterfaces()
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiMisc.cpp

    r102184 r102323  
    4242#include <iprt/file.h>
    4343#include <iprt/time.h>
     44#include <iprt/string.h>
    4445
    4546#include "xptiprivate.h"
     
    6465{
    6566    NS_ASSERTION(name, "loser!");
    66     int len = PL_strlen(name);
     67    int len = strlen(name);
    6768    for(const xptiFileTypeEntry* p = g_Entries; p->name; p++)
    6869    {
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