Graphviz
2.41.20171026.1811
|
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | NEW(t) (t*)zmalloc(sizeof(t)) |
#define | N_NEW(n, t) (t*)zmalloc((n)*sizeof(t)) |
#define | GNEW(t) (t*)gmalloc(sizeof(t)) |
#define | N_GNEW(n, t) (t*)gmalloc((n)*sizeof(t)) |
#define | N_GGNEW(n, t) (t*)malloc((n)*sizeof(t)) |
#define | ALLOC(size, ptr, type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) |
#define | RALLOC(size, ptr, type) ((type*)grealloc(ptr,(size)*sizeof(type))) |
#define | ZALLOC(size, ptr, type, osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) |
Functions | |
void * | zmalloc (size_t) |
void * | zrealloc (void *, size_t, size_t, size_t) |
void * | gmalloc (size_t) |
void * | grealloc (void *, size_t) |
#define ALLOC | ( | size, | |
ptr, | |||
type | |||
) | (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) |
Definition at line 41 of file memory.h.
Referenced by box_connection(), class2(), move_node(), new_spline(), and simpleSplineRoute().
#define GNEW | ( | t | ) | (t*)gmalloc(sizeof(t)) |
Definition at line 37 of file memory.h.
Referenced by DoubleLinkedList_new(), getfree(), gvplugin_install(), mkGrid(), Multilevel_control_new(), newPM(), newQueue(), Operator_matmul_new(), SingleLinkedList_new(), and StressMajorizationSmoother2_new().
#define N_NEW | ( | n, | |
t | |||
) | (t*)zmalloc((n)*sizeof(t)) |
Definition at line 36 of file memory.h.
Referenced by allocate_ranks(), attached_clustering(), build_skeleton(), circuitModel(), compoundEdges(), compute_apsp_artifical_weights_packed(), compute_apsp_packed(), conjugate_gradient_mkernel(), dotneato_args_initialize(), emit_map_rect(), fdp_init_node_edge(), findCComp(), Import_coord_clusters_from_dot(), lu_decompose(), makeDotGraph(), makeMatrix(), makeObstacle(), makeStraightEdge(), matinv(), mkRouter(), neato_init_node(), neato_layout(), new_array(), new_queue(), new_spline(), pointsOf(), putGraphs(), round_corners(), scan_graph_mode(), shortest_path(), sizeArray(), sizeLinearArray(), SparseMatrix_import_dot(), stress_majorization_kD_mkernel(), tree_map(), and undoClusterEdges().
#define NEW | ( | t | ) | (t*)zmalloc(sizeof(t)) |
Definition at line 35 of file memory.h.
Referenced by circomps(), compoundEdges(), epsf_init(), findCComp(), graph_init(), make_aux_edge(), make_label(), makeObstacle(), mkBlock(), mkNodelist(), mkRouter(), mkStack(), new_queue(), new_spline(), new_virtual_edge(), taper(), virtual_node(), and xdotBB().
#define RALLOC | ( | size, | |
ptr, | |||
type | |||
) | ((type*)grealloc(ptr,(size)*sizeof(type))) |
void* gmalloc | ( | size_t | ) |
Definition at line 42 of file memory.c.
References NULL.
Referenced by getfree(), gvconfig(), gvconfig_plugin_install_from_library(), gvplugin_library_load(), gvprintf(), html_string(), xml_string0(), xml_url_string(), and zmalloc().
void* grealloc | ( | void * | , |
size_t | |||
) |
Definition at line 54 of file memory.c.
References NULL.
Referenced by canontoken(), colorxlate(), Fgets(), graph_init(), gv_argvlist_set_item(), gvplugin_library_load(), gvrender_beziercurve(), gvrender_polygon(), gvrender_polyline(), html_string(), xml_string0(), and xml_url_string().