Back to index

lightning-sunbird  0.9+nobinonly
Functions
freeif.c File Reference
#include "nspr.h"
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

static void Noop (void)
static void Fail (void)
int main ()
 main()

Function Documentation

static void Fail ( void  ) [static]

Definition at line 50 of file freeif.c.

{
    printf("FAIL\n");
    exit(1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( void  )

main()

Definition at line 56 of file freeif.c.

{
    int foo = 1;
    char *ptr = NULL;

    /* this fails to compile with the old definition of PR_DELETE */
    if (foo)
        PR_DELETE(ptr);
    else
        Noop();

    /* this nests incorrectly with the old definition of PR_FREEIF */
    if (foo)
        PR_FREEIF(ptr);
    else
        Fail();

    printf("PASS\n");
    return 0;
}

Here is the call graph for this function:

static void Noop ( void  ) [static]

Definition at line 48 of file freeif.c.

{ }

Here is the caller graph for this function: