Back to index

lightning-sunbird  0.9+nobinonly
Functions
nssstubs.c File Reference
#include "prmem.h"
#include "prerror.h"

Go to the source code of this file.

Functions

voidPORT_Alloc (size_t bytes)
 This file contains trivial implementations of the NSS PORT_* functions that md5.c uses.
void PORT_Free (void *ptr)
void PORT_SetError (int value)

Function Documentation

void* PORT_Alloc ( size_t  bytes)

This file contains trivial implementations of the NSS PORT_* functions that md5.c uses.

Definition at line 48 of file nssstubs.c.

{
  /* Always allocate a non-zero amount of bytes */
  return (void *)PR_Malloc(bytes ? bytes : 1);
}
void PORT_Free ( void ptr)

Definition at line 55 of file nssstubs.c.

{
  if (ptr) {
    PR_Free(ptr);
  }
}
void PORT_SetError ( int  value)

Definition at line 63 of file nssstubs.c.

{
  PR_SetError(value, 0);
  return;
}