VirtualBox

Ignore:
Timestamp:
Nov 8, 2023 6:28:43 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom/nsprpub/lib: Convert from PR_ASSERT to IPRT assertions, bugref:10545

Location:
trunk/src/libs/xpcom18a4/nsprpub/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/lib/ds/plhash.c

    r101869 r101999  
    4141#include "plhash.h"
    4242#include "prbit.h"
    43 #include "prlog.h"
    4443#include "prmem.h"
    4544#include "prtypes.h"
    4645#include <stdlib.h>
    4746#include <string.h>
     47
     48#include <iprt/assert.h>
    4849
    4950/* Compute the number of buckets in ht */
     
    237238                next = he->next;
    238239                hep = PL_HashTableRawLookup(ht, he->keyHash, he->key);
    239                 PR_ASSERT(*hep == 0);
     240                Assert(*hep == 0);
    240241                he->next = 0;
    241242                *hep = he;
     
    312313                next = he->next;
    313314                hep = PL_HashTableRawLookup(ht, he->keyHash, he->key);
    314                 PR_ASSERT(*hep == 0);
     315                Assert(*hep == 0);
    315316                he->next = 0;
    316317                *hep = he;
  • trunk/src/libs/xpcom18a4/nsprpub/lib/libc/src/strlen.c

    r1 r101999  
    3838#include "plstr.h"
    3939#include "prtypes.h"
    40 #include "prlog.h"
    4140#include <string.h>
     41
     42#include <iprt/assert.h>
    4243
    4344PR_IMPLEMENT(PRUint32)
     
    5455     */
    5556    if( sizeof(PRUint32) < sizeof(size_t) )
    56         PR_ASSERT(l < 2147483647);
     57        Assert(l < 2147483647);
    5758
    5859    return (PRUint32)l;
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