Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
win16gc.c File Reference
#include "prtypes.h"
#include <stdlib.h>

Go to the source code of this file.


#define MAX_SEGMENT_SIZE   (65536l - 4096l)


void _MD_InitGC (void)
void_MD_GrowGCHeap (PRUint32 *sizep)
int CALLBACK LibMain (HINSTANCE hInst, WORD wDataSeg, WORD cbHeapSize, LPSTR lpszCmdLine)


HINSTANCE _pr_hInstance

Define Documentation

#define MAX_SEGMENT_SIZE   (65536l - 4096l)

Definition at line 44 of file win16gc.c.

Function Documentation

void* _MD_GrowGCHeap ( PRUint32 sizep)

Definition at line 56 of file win16gc.c.

    void *addr;

    if( *sizep > MAX_SEGMENT_SIZE ) {
        *sizep = MAX_SEGMENT_SIZE;

    addr = malloc((size_t)*sizep);
    return addr;

Definition at line 53 of file win16gc.c.

int CALLBACK LibMain ( HINSTANCE  hInst,
WORD  wDataSeg,
WORD  cbHeapSize,
LPSTR  lpszCmdLine 

Definition at line 70 of file win16gc.c.

    _pr_hInstance = hInst;
    return TRUE;

Variable Documentation

Definition at line 68 of file win16gc.c.