Graphviz  2.31.20130523.0446
Defines | Functions
lib/gvc/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.

Defines

#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

Define 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, GVC_s::write_fn, GVJ_s::output_data, and GVJ_s::output_file.

Referenced by gvplugin_graph().

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().

Referenced by gvplugin_graph().

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

Definition at line 393 of file gvdevice.c.

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

Referenced by epsf_define().

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 
)
val_str ( maxnegnum  ,
-999999999999999.  99 
)