Graphviz  2.29.20120524.0446
Data Structures | Defines | Typedefs | Functions
lib/neatogen/memory.c File Reference
#include "geometry.h"
#include "render.h"
#include "mem.h"
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for memory.c:

Go to the source code of this file.

Data Structures

struct  freenode
struct  freeblock

Defines

#define LCM(x, y)   ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y)))

Typedefs

typedef struct freenode Freenode
typedef struct freeblock Freeblock

Functions

void freeinit (Freelist *fl, int size)
void * getfree (Freelist *fl)
void makefree (void *curr, Freelist *fl)

Define Documentation

#define LCM (   x,
 
)    ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y)))

Definition at line 41 of file memory.c.

Referenced by freeinit().


Typedef Documentation

typedef struct freeblock Freeblock
typedef struct freenode Freenode

Function Documentation

void freeinit ( Freelist fl,
int  size 
)
void* getfree ( Freelist fl)
void makefree ( void *  curr,
Freelist fl 
)

Definition at line 86 of file memory.c.

References freelist::head.

Referenced by getfree(), endpoint(), and deref().