Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cifspace.c File Reference
#include <cif.h>
#include <stdlib.h>
#include <memory.h>
#include <stdio.h>
#include "cif_int.h"
Include dependency graph for cifspace.c:

Go to the source code of this file.

Defines

#define CIF_VERSION   3
#define MEMSIZE(X)   ((X<CIF_BUFSIZE?CIF_BUFSIZE:X))
#define ROUND(X)   (((X+sizeof(long)-1)/sizeof(long)*sizeof(long)))

Functions

int _Cif_memtbl ()
int _Cif_mementry (unsigned bsize)
char * _Cif_managed_space (unsigned int size, int cifd)
char * _Cif_fixed_space (unsigned int size, int cifd)

Variables

static char USMID [] = "@(#) libcif/cifspace.c 30.2 07/26/96 07:19:13"

Define Documentation

#define CIF_VERSION   3

Definition at line 46 of file cifspace.c.

#define MEMSIZE (   X)    ((X<CIF_BUFSIZE?CIF_BUFSIZE:X))

Definition at line 61 of file cifspace.c.

Referenced by _Cif_managed_space().

#define ROUND (   X)    (((X+sizeof(long)-1)/sizeof(long)*sizeof(long)))

Definition at line 62 of file cifspace.c.

Referenced by _Cif_fixed_space(), and _Cif_managed_space().


Function Documentation

char* _Cif_fixed_space ( unsigned int  size,
int  cifd 
)
char* _Cif_managed_space ( unsigned int  size,
int  cifd 
)

Definition at line 146 of file cifspace.c.

References _Cif_filetbl, _Cif_memarea, _Cif_mementry(), _Cif_File_Tbl::lme, _Cif_Mem_Area::mbp, MEMSIZE, _Cif_Mem_Area::msize, _Cif_Mem_Area::mused, _Cif_Mem_Area::nme, NULL, ROUND, and size.

Here is the call graph for this function:

int _Cif_memtbl ( )

Definition at line 68 of file cifspace.c.

References _Cif_memarea, _Cif_memasize, CIF_MEM_BUMP, CIF_NOMEM, _Cif_Mem_Area::mbp, NO, NULL, size, _Cif_Mem_Area::used, and YES.

Referenced by Cif_Memmode().


Variable Documentation

char USMID[] = "@(#) libcif/cifspace.c 30.2 07/26/96 07:19:13" [static]

Definition at line 37 of file cifspace.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines