The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

__UNDEFINED__

#ifdef HAS_MEMCMP __UNDEFINED__ memNE(s1,s2,l) (memcmp(s1,s2,l)) __UNDEFINED__ memEQ(s1,s2,l) (!memcmp(s1,s2,l)) #else __UNDEFINED__ memNE(s1,s2,l) (bcmp(s1,s2,l)) __UNDEFINED__ memEQ(s1,s2,l) (!bcmp(s1,s2,l)) #endif

__UNDEFINED__ MoveD(s,d,n,t) memmove((char*)(d),(char*)(s), (n) * sizeof(t)) __UNDEFINED__ CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t)) #ifdef HAS_MEMSET __UNDEFINED__ ZeroD(d,n,t) memzero((char*)(d), (n) * sizeof(t)) #else __UNDEFINED__ ZeroD(d,n,t) ((void)memzero((char*)(d), (n) * sizeof(t)), d) #endif

__UNDEFINED__ PoisonWith(d,n,t,b) (void)memset((char*)(d), (U8)(b), (n) * sizeof(t)) __UNDEFINED__ PoisonNew(d,n,t) PoisonWith(d,n,t,0xAB) __UNDEFINED__ PoisonFree(d,n,t) PoisonWith(d,n,t,0xEF) __UNDEFINED__ Poison(d,n,t) PoisonFree(d,n,t)

__UNDEFINED__ Newx(v,n,t) New(0,v,n,t) __UNDEFINED__ Newxc(v,n,t,c) Newc(0,v,n,t,c) __UNDEFINED__ Newxz(v,n,t) Newz(0,v,n,t)

int checkmem() PREINIT: char *p;

  CODE:
    RETVAL = 0;
    Newx(p, 6, char);
    CopyD("Hello", p, 6, char);
    if (memEQ(p, "Hello", 6))
      RETVAL++;
    ZeroD(p, 6, char);
    if (memEQ(p, "\0\0\0\0\0\0", 6))
      RETVAL++;
    Poison(p, 6, char);
    if (memNE(p, "\0\0\0\0\0\0", 6))
      RETVAL++;
    Safefree(p);

    Newxz(p, 6, char);
    if (memEQ(p, "\0\0\0\0\0\0", 6))
      RETVAL++;
    Safefree(p);

    Newxc(p, 3, short, char);
    Safefree(p);

  OUTPUT:
    RETVAL

ok(Devel::PPPort::checkmem(), 4);

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 18:

Unknown directive: =provides

Around line 22:

Unknown directive: =implementation

Around line 49:

Unknown directive: =xsubs

Around line 81:

Unknown directive: =tests