Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nssbase.h File Reference
#include "nssbaset.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PR_BEGIN_EXTERN_C NSS_EXTERN
NSSArena * 
NSSArena_Create (void)
NSS_EXTERN PRStatus NSSArena_Destroy (NSSArena *arena)
NSS_EXTERN NSSError NSS_GetError (void)
NSS_EXTERN NSSErrorNSS_GetErrorStack (void)

Variables

const NSSError NSS_ERROR_NO_MEMORY
const NSSError NSS_ERROR_INVALID_ARENA
const NSSError NSS_ERROR_NO_ERROR

Function Documentation

Definition at line 187 of file error.c.

{
  error_stack *es = error_get_my_stack();

  if( (error_stack *)NULL == es ) {
    return NSS_ERROR_NO_MEMORY; /* Good guess! */
  }

  if( 0 == es->header.count ) {
    return 0;
  }

  return es->stack[ es->header.count-1 ];
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 221 of file error.c.

{
  error_stack *es = error_get_my_stack();

  if( (error_stack *)NULL == es ) {
    return (PRInt32 *)NULL;
  }

  /* Make sure it's terminated */
  es->stack[ es->header.count ] = 0;

  return es->stack;
}

Here is the call graph for this function:

Definition at line 381 of file arena.c.

Here is the call graph for this function:

Here is the caller graph for this function:

NSS_EXTERN PRStatus NSSArena_Destroy ( NSSArena *  arena)

Definition at line 478 of file arena.c.

{
  nss_ClearErrorStack();

#ifdef DEBUG
  if( PR_SUCCESS != nssArena_verifyPointer(arena) ) {
    return PR_FAILURE;
  }
#endif /* DEBUG */

  return nssArena_Destroy(arena);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 55 of file errorval.c.

Definition at line 51 of file errorval.c.

Definition at line 53 of file errorval.c.