Graphviz 13.0.0~dev.20241220.2304
|
#include <sys/stat.h>
#include <common/render.h>
#include <gvc/gvio.h>
#include <stdbool.h>
#include <stdio.h>
#include <util/alloc.h>
#include <util/gv_fopen.h>
#include <util/strcasecmp.h>
Go to the source code of this file.
Enumerations | |
enum | { ASCII , LATIN1 , NONLATIN } |
Functions | |
static void | ps_image_free (void *shape) |
static usershape_t * | user_init (const char *str) |
void | epsf_init (node_t *n) |
void | epsf_free (node_t *n) |
void | cat_libfile (GVJ_t *job, const char **arglib, const char **stdlib) |
void | epsf_emit_body (GVJ_t *job, usershape_t *us) |
void | epsf_define (GVJ_t *job) |
static int | charsetOf (char *s) |
char * | ps_string (char *ins, int chset) |
Variables | |
static int | N_EPSF_files |
static Dict_t * | EPSF_contents |
static Dtdisc_t | ImageDictDisc |
anonymous enum |
Enumerator | |
---|---|
ASCII | |
LATIN1 | |
NONLATIN |
Definition at line 223 of file psusershape.c.
void cat_libfile | ( | GVJ_t * | job, |
const char ** | arglib, | ||
const char ** | stdlib | ||
) |
Definition at line 135 of file psusershape.c.
References agwarningf(), gv_fopen(), gvputs(), gvwrite(), and safefile().
Referenced by lasi_begin_graph(), lasi_end_page(), psgen_begin_graph(), and psgen_end_page().
|
static |
Definition at line 230 of file psusershape.c.
References ASCII, LATIN1, and NONLATIN.
Referenced by ps_string().
void epsf_define | ( | GVJ_t * | job | ) |
Definition at line 208 of file psusershape.c.
References dtfirst, dtnext, EPSF_contents, epsf_emit_body(), gvprintf(), and gvputs().
Referenced by lasi_begin_graph(), and psgen_begin_graph().
void epsf_emit_body | ( | GVJ_t * | job, |
usershape_t * | us | ||
) |
Definition at line 184 of file psusershape.c.
References usershape_s::data, and gvputc().
Referenced by core_loadimage_ps(), epsf_define(), and lasi_loadimage_ps().
void epsf_free | ( | node_t * | n | ) |
Definition at line 118 of file psusershape.c.
References free(), and ND_shape_info.
void epsf_init | ( | node_t * | n | ) |
Definition at line 97 of file psusershape.c.
References agget(), agnameof(), agwarningf(), dx, dy, gv_alloc(), usershape_s::h, epsf_s::macro_id, usershape_s::macro_id, ND_height, ND_shape_info, ND_width, epsf_s::offset, PS2INCH, safefile(), str, user_init(), usershape_s::w, pointf_s::x, usershape_s::x, pointf_s::y, and usershape_s::y.
Referenced by shapeOf().
|
static |
Definition at line 25 of file psusershape.c.
References usershape_s::data, and free().
char * ps_string | ( | char * | ins, |
int | chset | ||
) |
Definition at line 254 of file psusershape.c.
References agwarningf(), agxbputc(), agxbuse(), ASCII, CHAR_LATIN1, CHAR_UTF8, charsetOf(), free(), ins(), LATIN1, LPAREN, NONLATIN, RPAREN, and utf8ToLatin1().
Referenced by lasi_begin_anchor(), lasi_begin_graph(), psgen_begin_anchor(), psgen_begin_graph(), and psgen_textspan().
|
static |
Definition at line 36 of file psusershape.c.
References agwarningf(), usershape_s::data, dtinsert, dtmatch, dtopen(), Dtoset, EPSF_contents, free(), gv_alloc(), gv_calloc(), gv_fopen(), usershape_s::h, ImageDictDisc, usershape_s::macro_id, usershape_s::must_inline, N_EPSF_files, usershape_s::name, NULL, str, usershape_s::w, usershape_s::x, and usershape_s::y.
Referenced by epsf_init().
|
static |
Definition at line 23 of file psusershape.c.
Referenced by epsf_define(), and user_init().
|
static |
Definition at line 30 of file psusershape.c.
Referenced by user_init().
|
static |
Definition at line 22 of file psusershape.c.
Referenced by user_init().