Back to index

lightning-sunbird  0.9+nobinonly
Typedefs | Functions | Variables
nsEnvironment.cpp File Reference
#include "nsEnvironment.h"
#include "prenv.h"
#include "prprf.h"
#include "nsAutoLock.h"
#include "nsBaseHashtable.h"
#include "nsHashKeys.h"
#include "nsPromiseFlatString.h"
#include "nsDependentString.h"
#include "nsNativeCharsetUtils.h"

Go to the source code of this file.

Typedefs

typedef nsBaseHashtableET
< nsCStringHashKey, char * > 
EnvEntryType
typedef nsTHashtable
< EnvEntryType
EnvHashType

Functions

static PRBool EnsureEnvHash ()

Variables

static EnvHashTypegEnvHash = nsnull

Typedef Documentation

Definition at line 141 of file nsEnvironment.cpp.

Definition at line 142 of file nsEnvironment.cpp.


Function Documentation

static PRBool EnsureEnvHash ( ) [static]

Definition at line 147 of file nsEnvironment.cpp.

{
    if (gEnvHash)
        return PR_TRUE;

    gEnvHash = new EnvHashType;
    if (!gEnvHash)
        return PR_FALSE;

    if(gEnvHash->Init())
        return PR_TRUE;

    delete gEnvHash;
    gEnvHash = nsnull;
    return PR_FALSE;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 144 of file nsEnvironment.cpp.