Changeset 102323 in vbox
- Timestamp:
- Nov 27, 2023 3:00:21 PM (12 months ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r102321 r102323 387 387 nsprpub/lib/ds/plarena.c \ 388 388 nsprpub/lib/ds/plhash.c \ 389 nsprpub/lib/libc/src/strlen.c \390 389 nsprpub/lib/libc/src/strcpy.c \ 391 390 nsprpub/lib/libc/src/strcmp.c \ -
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
r102175 r102323 194 194 NS_OK, // default status 195 195 (PRUint8 *)joinedQueueName, // qName gets copied 196 PL_strlen(joinedQueueName)+1))) { // message length196 strlen(joinedQueueName)+1))) { // message length 197 197 // send the attach msg 198 198 SendMessage(&trans, PR_TRUE); // synchronous -
trunk/src/libs/xpcom18a4/nsprpub/lib/libc/include/plstr.h
r102175 r102323 63 63 64 64 #ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 65 #define PL_strlen VBoxNsplPL_strlen66 65 #define PL_strcmp VBoxNsplPL_strcmp 67 66 #define PL_strncmp VBoxNsplPL_strncmp … … 75 74 #define PL_strcasestr VBoxNsplPL_strcasestr 76 75 #define PL_strndup VBoxNsplPL_strndup 77 #define PL_strnlen VBoxNsplPL_strnlen78 76 #endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ 79 77 80 78 PR_BEGIN_EXTERN_C 81 /*82 * PL_strlen83 *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_strnlen92 *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 the95 * 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 101 79 /* 102 80 * PL_strncpy -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/nsIInterfaceInfoManager.idl
r102309 r102323 57 57 58 58 void autoRegisterInterfaces(); 59 60 nsIEnumerator enumerateInterfacesWhoseNamesStartWith(in string prefix);61 59 }; 62 60 -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp
r101967 r102323 106 106 xptiWorkingSet* aWorkingSet) 107 107 { 108 size_t nameLength = PL_strlen(r.mName);108 size_t nameLength = strlen(r.mName); 109 109 void* place = XPT_MALLOC(aWorkingSet->GetStructArena(), 110 110 sizeof(xptiInterfaceEntry) + nameLength); … … 259 259 { 260 260 // 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); 262 262 return *name ? NS_OK : NS_ERROR_OUT_OF_MEMORY; 263 263 } -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp
r102309 r102323 1863 1863 } 1864 1864 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 1879 1865 /* void autoRegisterInterfaces (); */ 1880 1866 NS_IMETHODIMP xptiInterfaceInfoManager::AutoRegisterInterfaces() -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptinfo/src/xptiMisc.cpp
r102184 r102323 42 42 #include <iprt/file.h> 43 43 #include <iprt/time.h> 44 #include <iprt/string.h> 44 45 45 46 #include "xptiprivate.h" … … 64 65 { 65 66 NS_ASSERTION(name, "loser!"); 66 int len = PL_strlen(name);67 int len = strlen(name); 67 68 for(const xptiFileTypeEntry* p = g_Entries; p->name; p++) 68 69 {
Note:
See TracChangeset
for help on using the changeset viewer.