Graphviz  2.35.20130930.0449
Macros | Functions
agxbuf.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <agxbuf.h>
Include dependency graph for agxbuf.c:

Go to the source code of this file.


#define N_GNEW(n, t)   (t*)malloc((n)*sizeof(t))


void agxbinit (agxbuf *xb, unsigned int hint, unsigned char *init)
int agxbmore (agxbuf *xb, unsigned int ssz)
int agxbput_n (agxbuf *xb, const char *s, unsigned int ssz)
int agxbput (agxbuf *xb, const char *s)
void agxbfree (agxbuf *xb)
int agxbpop (agxbuf *xb)

Macro Definition Documentation

#define N_GNEW (   n,
)    (t*)malloc((n)*sizeof(t))

Definition at line 20 of file agxbuf.c.

Referenced by agxbinit(), and agxbmore().

Function Documentation

void agxbfree ( agxbuf xb)
void agxbinit ( agxbuf xb,
unsigned int  hint,
unsigned char *  init 
int agxbmore ( agxbuf xb,
unsigned int  ssz 

Definition at line 44 of file agxbuf.c.

References agxbuf::buf, agxbuf::dyna, agxbuf::eptr, N_GNEW, agxbuf::ptr, and realloc().

Referenced by agxbput_n().

int agxbpop ( agxbuf xb)

Definition at line 103 of file agxbuf.c.

References agxbuf::buf, and agxbuf::ptr.

Referenced by attach_attrs_and_arrows().

int agxbput ( agxbuf xb,
const char *  s 

Definition at line 84 of file agxbuf.c.

References agxbput_n().

Referenced by attach_attrs_and_arrows(), getObjId(), gvplugin_list(), parse_style(), and scanEntity().

int agxbput_n ( agxbuf xb,
const char *  s,
unsigned int  ssz 

Definition at line 72 of file agxbuf.c.

References agxbmore(), agxbuf::eptr, and agxbuf::ptr.

Referenced by agxbput().