Graphviz  2.41.20171026.1811
Macros | Functions
gvdevice.c File Reference
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <errno.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   4
 
#define DECPLACES_SCALE   10000
 
#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,...)
 
void gvprintdouble (GVJ_t *job, double num)
 
void gvprintpointf (GVJ_t *job, pointf p)
 
void gvprintpointflist (GVJ_t *job, pointf *p, int n)
 

Macro Definition Documentation

#define DECPLACES   4

Definition at line 427 of file gvdevice.c.

#define DECPLACES_SCALE   10000

Definition at line 428 of file gvdevice.c.

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

Definition at line 431 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 254 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 264 of file gvdevice.c.

References assert, and gvwrite().

void gvprintdouble ( GVJ_t job,
double  num 
)

Definition at line 557 of file gvdevice.c.

References gvwrite().

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

Definition at line 389 of file gvdevice.c.

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

Referenced by epsf_define().

void gvprintpointf ( GVJ_t job,
pointf  p 
)

Definition at line 573 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 585 of file gvdevice.c.

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

int gvputc ( GVJ_t job,
int  c 
)

Definition at line 280 of file gvdevice.c.

References gvwrite().

Referenced by epsf_emit_body().

int gvputs ( GVJ_t job,
const char *  s 
)

Definition at line 270 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 
)