/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/graph/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.

Defines

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

Functions

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


Define Documentation

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

Definition at line 23 of file agxbuf.c.


Function Documentation

void agxbfree ( agxbuf xb  ) 

Definition at line 97 of file agxbuf.c.

References agxbuf::buf, agxbuf::dyna, and free().

Referenced by aglex(), attach_attrs_and_arrows(), clearHTMLlexer(), htmlEntityUTF8(), latin1ToUTF8(), make_html_label(), parse_style(), parseHTML(), processClusterEdges(), and utf8ToLatin1().

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

Definition at line 28 of file agxbuf.c.

References agxbuf::buf, agxbuf::dyna, agxbuf::eptr, N_GNEW, and agxbuf::ptr.

Referenced by aglex(), attach_attrs_and_arrows(), gvUsername(), htmlEntityUTF8(), initHTMLlexer(), latin1ToUTF8(), make_html_label(), parse_style(), parseHTML(), processClusterEdges(), ps_string(), and utf8ToLatin1().

int agxbmore ( agxbuf xb,
unsigned int  ssz 
)

Definition at line 47 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 106 of file agxbuf.c.

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

Referenced by attach_attrs_and_arrows().

int agxbput ( agxbuf xb,
char *  s 
)

Definition at line 87 of file agxbuf.c.

References agxbput_n().

Referenced by attach_attrs_and_arrows(), core_loadimage_xdot(), gvUsername(), output_point(), parse_style(), and scanEntity().

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

Definition at line 75 of file agxbuf.c.

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

Referenced by agxbput().


Generated on Mon Mar 31 19:05:45 2008 for Graphviz by  doxygen 1.5.1