Graphviz 14.1.3~dev.20260206.1255
Loading...
Searching...
No Matches
gv_php_init.c
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#include <php.h>
12#undef PACKAGE_BUGREPORT
13#undef PACKAGE_NAME
14#undef PACKAGE_STRING
15#undef PACKAGE_TARNAME
16#undef PACKAGE_VERSION
17
18// PHP ship their own config.h, so suppress this
19#ifdef HAVE_MEMRCHR
20#undef HAVE_MEMRCHR
21#endif
22#ifdef HAVE_SETENV
23#undef HAVE_SETENV
24#endif
25#ifdef HAVE_SYS_IOCTL_H
26#undef HAVE_SYS_IOCTL_H
27#endif
28#ifdef HAVE_SYS_MMAN_H
29#undef HAVE_SYS_MMAN_H
30#endif
31#ifdef HAVE_SYS_SELECT_H
32#undef HAVE_SYS_SELECT_H
33#endif
34#ifdef HAVE_SYS_TIME_H
35#undef HAVE_SYS_TIME_H
36#endif
37
38#include "config.h"
39
40#include <gvc/gvc.h>
41#include <gvc/gvplugin.h>
42#include <gvc/gvcjob.h>
43#include <gvc/gvcint.h>
44#include "gv_channel.h"
45
46static size_t gv_string_writer (GVJ_t *job, const char *s, size_t len)
47{
48 (void)job;
49 return PHPWRITE(s, len);
50}
51
52static size_t gv_channel_writer (GVJ_t *job, const char *s, size_t len)
53{
54 (void)job;
55 return PHPWRITE(s, len);
56}
57
62
67
static double len(glCompPoint p)
Definition glutils.c:138
node NULL
Definition grammar.y:181
static GVC_t * gvc
Definition gv.cpp:27
language-specific bindings API
static size_t gv_channel_writer(GVJ_t *job, const char *s, size_t len)
Definition gv_php_init.c:52
void gv_channel_writer_init(GVC_t *gvc)
Definition gv_php_init.c:63
void gv_writer_reset(GVC_t *gvc)
Definition gv_php_init.c:68
static size_t gv_string_writer(GVJ_t *job, const char *s, size_t len)
Definition gv_php_init.c:46
void gv_string_writer_init(GVC_t *gvc)
Definition gv_php_init.c:58
Graphviz context library.
Definition gvcint.h:81
size_t(* write_fn)(GVJ_t *job, const char *s, size_t len)
Definition gvcint.h:104
Definition grammar.c:90