Graphviz  2.39.20141218.0545
Macros | Functions | Variables
gvdevice.c File Reference
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "const.h"
#include "memory.h"
#include "gvplugin_device.h"
#include "gvcjob.h"
#include "gvcint.h"
#include "gvcproc.h"
#include "logic.h"
#include "gvio.h"
Include dependency graph for gvdevice.c:

Go to the source code of this file.

Macros

#define DECPLACES   2
 
#define DECPLACES_SCALE   100
 
#define val_str(n, x)   static double n = x; static char n##str[] = #x;
 

Functions

int gvdevice_initialize (GVJ_t *job)
 
size_t gvwrite (GVJ_t *job, const char *s, size_t len)
 
int gvferror (FILE *stream)
 
size_t gvfwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream)
 
int gvputs (GVJ_t *job, const char *s)
 
int gvputc (GVJ_t *job, int c)
 
int gvflush (GVJ_t *job)
 
void gvdevice_format (GVJ_t *job)
 
void gvdevice_finalize (GVJ_t *job)
 
void gvprintf (GVJ_t *job, const char *format,...)
 
 val_str (maxnegnum,-999999999999999.99) static char *gvprintnum(size_t *len
 
 if (number< maxnegnum) = DECPLACES_SCALE
 
 if (number >-maxnegnum)
 
 if ((negative=(N< 0)))
 
 if (negative)
 
void gvprintpointf (GVJ_t *job, pointf p)
 
void gvprintpointflist (GVJ_t *job, pointf *p, int n)
 

Variables

double number
 
char * result = tmpbuf+sizeof(maxnegnumstr)
 
long int N
 
boolean showzeros
 
boolean negative
 
int digit
 
int i
 

Macro Definition Documentation

#define DECPLACES   2

Definition at line 431 of file gvdevice.c.

#define DECPLACES_SCALE   100

Definition at line 432 of file gvdevice.c.

#define val_str (   n,
 
)    static double n = x; static char n##str[] = #x;

Definition at line 435 of file gvdevice.c.

Function Documentation

void gvdevice_finalize ( GVJ_t job)
void gvdevice_format ( GVJ_t job)
int gvdevice_initialize ( GVJ_t job)
int gvferror ( FILE *  stream)

Definition at line 258 of file gvdevice.c.

References GVJ_s::gvc, GVJ_s::output_data, GVJ_s::output_file, and GVC_s::write_fn.

int gvflush ( GVJ_t job)
size_t gvfwrite ( const void *  ptr,
size_t  size,
size_t  nmemb,
FILE *  stream 
)

Definition at line 268 of file gvdevice.c.

References assert, and gvwrite().

void gvprintf ( GVJ_t job,
const char *  format,
  ... 
)

Definition at line 393 of file gvdevice.c.

References agerr(), AGERR, free(), gmalloc(), and gvwrite().

Referenced by epsf_define().

void gvprintpointf ( GVJ_t job,
pointf  p 
)

Definition at line 542 of file gvdevice.c.

References gvwrite(), pointf_s::x, and pointf_s::y.

Referenced by gvprintpointflist().

void gvprintpointflist ( GVJ_t job,
pointf p,
int  n 
)

Definition at line 554 of file gvdevice.c.

References gvprintpointf(), gvwrite(), and TRUE.

int gvputc ( GVJ_t job,
int  c 
)

Definition at line 284 of file gvdevice.c.

References gvwrite().

Referenced by epsf_emit_body().

int gvputs ( GVJ_t job,
const char *  s 
)

Definition at line 274 of file gvdevice.c.

References gvwrite().

Referenced by cat_libfile(), and epsf_define().

size_t gvwrite ( GVJ_t job,
const char *  s,
size_t  len 
)
number * if ( ) = DECPLACES_SCALE

Definition at line 458 of file gvdevice.c.

if ( number  ,
maxnegnum 
)

Definition at line 462 of file gvdevice.c.

if ( (negative=(N< 0))  )

Definition at line 475 of file gvdevice.c.

References TRUE.

if ( negative  )

Definition at line 496 of file gvdevice.c.

val_str ( maxnegnum  ,
-999999999999999.  99 
)

Variable Documentation

int digit

Definition at line 448 of file gvdevice.c.

int i

Definition at line 448 of file gvdevice.c.

Referenced by aag_scan_bytes(), aagparse(), addGrid(), agexpose(), aginternalmapclearlocalnames(), arrow_gen(), arrow_length(), attach_attrs_and_arrows(), attached_clustering(), average_edge_length(), Bezier(), bezier_clip(), bfs(), bfs_bounded(), BinaryHeap_delete(), BinaryHeap_new(), BinaryHeap_print(), BinaryHeap_sanity_check(), box_connection(), build_ranks(), cAdjust(), call_tri(), call_tri2(), cat_libfile(), center_coordinate(), cg(), choose_node(), circoLayout(), circomps(), circuit_model(), circuitModel(), clip_and_install(), color_palettes_get(), color_palettes_name_print(), color_palettes_Q(), compute_apsp_artifical_weights_packed(), compute_apsp_packed(), compute_bb(), compute_new_weights(), conjugate_gradient(), conjugate_gradient_f(), conjugate_gradient_mkernel(), convert_edge_labels_to_nodes(), copy_vector(), copy_vectorf(), copypoly(), cpvec(), D2E(), diffeq_model(), dijkstra(), dijkstra_bounded(), dijkstra_f(), distance_kD(), DistanceMatrix_restrict_cluster(), dot(), dot_sameports(), Dot_SetClusterColor(), dotneato_args_initialize(), dotneato_closest(), dtstat(), dump_coordinates(), edgecmd(), edgelist_export(), ELinitialize(), ELleftbnd(), embed_graph(), emit_label(), enqueue_neighbors(), export_embedding(), fast_edge(), fdp_init_node_edge(), fdp_tLayout(), find_user_shape(), findGrid(), flat_edges(), force_print(), free_html_text(), free_textspan(), freeXDot(), freeXDotColor(), get_distance_matrix(), get_font_list(), get_gradient_points(), get_stress(), getfree(), getPack(), getSizes(), glade_set_atk_action_description(), graphcmd(), gv_free_splines(), gvconfig_plugin_install_from_library(), gvplugin_load(), gvrender_ptf_A(), gvrender_usershape(), heapdown(), heapup(), html_path(), ideal_distance_matrix(), Import_coord_clusters_from_dot(), Import_dot_splines(), in_poly(), init_nop(), init_vec_orth1(), initial_positions(), initLayout(), install_in_rank(), interpolate_coord(), IntStack_print(), invert_sqrt_vec(), invert_vec(), jacobi(), lu_decompose(), lu_solve(), main(), make_polyline(), make_spring(), makeAddPoly(), makeDotGraph(), makeGraphs(), makeMatrix(), makePoly(), makeSelfArcs(), makeSpline(), makeStraightEdge(), makeStraightEdges(), maptoken(), matinv(), max_abs(), max_absf(), mdsModel(), mkRouter(), move_node(), mult_dense_mat(), mult_dense_mat_d(), mult_sparse_dense_mat_transpose(), Multilevel_MQ_Clustering_establish(), Multilevel_MQ_Clustering_init(), neato_dequeue(), neato_enqueue(), neato_layout(), new_array(), nextattr(), node_position(), nodecmd(), oned_optimizer_new(), oned_optimizer_train(), Operator_diag_precon_apply(), Operator_diag_precon_new(), Operator_uniform_stress_diag_precon_new(), Operator_uniform_stress_matmul_apply(), orthog1(), orthog1f(), overlap_edge(), packRects(), packSubgraphs(), parsePackModeInfo(), PCA_alloc(), pccomps(), pcp_rotate(), place_portlabel(), Plegal_arrangement(), Pobsbarriers(), Pobsopen(), Pobspath(), point_distance(), polyBB(), power_iteration(), power_law_graph(), Ppolybarriers(), PQdump(), PQinitialize(), print_matrix(), print_padding(), printvis(), PriorityQueue_delete(), PriorityQueue_get_gain(), PriorityQueue_new(), PriorityQueue_pop(), PriorityQueue_push(), PriorityQueue_remove(), Ptriangulate(), putGraphs(), QuadTree_delete(), QuadTree_get_repulsive_force(), QuadTree_get_supernodes_internal(), QuadTree_new(), QuadTree_new_from_point_list(), random_permutation(), rank3(), regcomp(), restore_old_weights(), right_mult_with_vector(), right_mult_with_vector_d(), right_mult_with_vector_f(), right_mult_with_vector_ff(), right_mult_with_vector_transpose(), round_corners(), routesplinesinit(), scadd(), scAdjust(), scale_to_box(), scan_graph_mode(), set_vector_val(), set_vector_valf(), setedgeattributes(), setgraphattributes(), setnodeattributes(), setSizes(), sfdp_layout(), shiftGraphs(), simpleSplineRoute(), SingleLinkedList_new_int(), SingleLinkedList_prepend_int(), sizeLinearArray(), sizeNodelist(), solve(), solve3(), solveCircuit(), SparseMatrix_add(), SparseMatrix_apply_fun(), SparseMatrix_apply_fun_general(), SparseMatrix_complement(), SparseMatrix_coordinate_form_add_entries(), SparseMatrix_crop(), SparseMatrix_decompose_to_supervariables(), SparseMatrix_delete_sparse_columns(), SparseMatrix_distance_matrix(), SparseMatrix_distance_matrix_k_centers(), SparseMatrix_distance_matrix_khops(), SparseMatrix_divide_row_by_degree(), SparseMatrix_exclude_submatrix(), SparseMatrix_from_dense(), SparseMatrix_get_augmented(), SparseMatrix_get_real_adjacency_matrix_symmetrized(), SparseMatrix_get_submatrix(), SparseMatrix_has_diagonal(), SparseMatrix_import_dot(), SparseMatrix_is_symmetric(), SparseMatrix_k_centers(), SparseMatrix_k_centers_user(), SparseMatrix_largest_component(), SparseMatrix_level_sets_internal(), SparseMatrix_multiply(), SparseMatrix_multiply3(), SparseMatrix_multiply_by_scaler(), SparseMatrix_multiply_vector(), SparseMatrix_normalize_by_row(), SparseMatrix_normalize_to_rowsum1(), SparseMatrix_page_rank(), SparseMatrix_print_coord(), SparseMatrix_print_csr(), SparseMatrix_pseudo_diameter_unweighted(), SparseMatrix_pseudo_diameter_weighted(), SparseMatrix_remove_diagonal(), SparseMatrix_remove_upper(), SparseMatrix_scaled_by_vector(), SparseMatrix_set_entries_to_real_one(), SparseMatrix_sum_repeat_entries(), SparseMatrix_to_complex(), SparseMatrix_transpose(), SparseMatrix_weakly_connected_components(), SparseStressMajorizationSmoother_new(), spline_at_y(), spring_electrical_embedding(), spring_electrical_embedding_fast(), spring_electrical_embedding_slow(), spring_electrical_spring_embedding(), spring_maxent_embedding(), SpringSmoother_new(), sqrt_vec(), sqrt_vecf(), square_vec(), statXDot(), stress_majorization_kD_mkernel(), stress_model_core(), StressMajorizationSmoother2_new(), StressMajorizationSmoother_smooth(), StringVector_fprint(), StringVector_fprint1(), StringVector_part(), strip_dir(), taper(), tree_map(), TriangleSmoother_new(), twopi_layout(), UG_graph(), uniform_stress(), UniformStressSmoother_new(), update_arrays(), update_bb_bz(), user_pos(), vecscale(), vector_add_to(), Vector_delete(), vector_float_take(), vector_ordering(), vector_percentile(), vector_print(), vector_product(), vector_saxpy(), vector_saxpy2(), vector_subtract_from(), vector_subtract_to(), vector_take(), vectors_addition(), vectors_additionf(), vectors_inner_product(), vectors_inner_productf(), vectors_mult_additionf(), vectors_scalar_mult(), vectors_scalar_multf(), vectors_substractionf(), vectors_subtraction(), write_plain(), xdotBB(), yyparse(), and zapinlist().

long int N

Definition at line 446 of file gvdevice.c.

Referenced by layout_block(), and main().

boolean negative

Definition at line 447 of file gvdevice.c.

double number
Initial value:
{
static char tmpbuf[sizeof(maxnegnumstr)]

Definition at line 443 of file gvdevice.c.

char* result = tmpbuf+sizeof(maxnegnumstr)
boolean showzeros

Definition at line 447 of file gvdevice.c.