Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
prenv.c File Reference
#include <string.h>
#include "primpl.h"

Go to the source code of this file.

Defines

#define _PR_NEW_LOCK_ENV()   {_pr_envLock = PR_NewLock();}
#define _PR_DELETE_LOCK_ENV()   { if (_pr_envLock) { PR_DestroyLock(_pr_envLock); _pr_envLock = NULL; } }
#define _PR_LOCK_ENV()   { if (_pr_envLock) PR_Lock(_pr_envLock); }
#define _PR_UNLOCK_ENV()   { if (_pr_envLock) PR_Unlock(_pr_envLock); }

Functions

void _PR_InitEnv (void)
void _PR_CleanupEnv (void)
 PR_IMPLEMENT (char *)
 PR_IMPLEMENT (PRStatus)

Variables

static PRLock_pr_envLock = NULL

Define Documentation

Definition at line 57 of file prenv.c.

Definition at line 59 of file prenv.c.

Definition at line 56 of file prenv.c.

Definition at line 60 of file prenv.c.


Function Documentation

Definition at line 70 of file prenv.c.

Here is the caller graph for this function:

Definition at line 65 of file prenv.c.

Here is the caller graph for this function:

PR_IMPLEMENT ( char *  )

Definition at line 75 of file prenv.c.

Here is the call graph for this function:

Definition at line 87 of file prenv.c.

{
    PRIntn result;

    if (!_pr_initialized) _PR_ImplicitInitialization();

    if ( !strchr(string, '=')) return(PR_FAILURE);

    _PR_LOCK_ENV();
    result = _PR_MD_PUT_ENV(string);
    _PR_UNLOCK_ENV();
    return (result)? PR_FAILURE : PR_SUCCESS;
}

Here is the call graph for this function:


Variable Documentation

PRLock* _pr_envLock = NULL [static]

Definition at line 55 of file prenv.c.