Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gv_php.cpp
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.0
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9
10#define SWIG_VERSION 0x040200
11#define SWIGPHP
12
13#if defined __GNUC__ && !defined __cplusplus
14# if __GNUC__ >= 4
15# pragma GCC diagnostic push
16# pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
17# endif
18#endif
19#include "php.h"
20#if defined __GNUC__ && !defined __cplusplus
21# if __GNUC__ >= 4
22# pragma GCC diagnostic pop
23# endif
24#endif
25
26/* -----------------------------------------------------------------------------
27 * This section contains generic SWIG labels for method/variable
28 * declarations/attributes, and other compiler dependent labels.
29 * ----------------------------------------------------------------------------- */
30
31/* template workaround for compilers that cannot correctly implement the C++ standard */
32#ifndef SWIGTEMPLATEDISAMBIGUATOR
33# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
34# define SWIGTEMPLATEDISAMBIGUATOR template
35# elif defined(__HP_aCC)
36/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
37/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
38# define SWIGTEMPLATEDISAMBIGUATOR template
39# else
40# define SWIGTEMPLATEDISAMBIGUATOR
41# endif
42#endif
43
44/* inline attribute */
45#ifndef SWIGINLINE
46# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
47# define SWIGINLINE inline
48# else
49# define SWIGINLINE
50# endif
51#endif
52
53/* attribute recognised by some compilers to avoid 'unused' warnings */
54#ifndef SWIGUNUSED
55# if defined(__GNUC__)
56# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
57# define SWIGUNUSED __attribute__ ((__unused__))
58# else
59# define SWIGUNUSED
60# endif
61# elif defined(__ICC)
62# define SWIGUNUSED __attribute__ ((__unused__))
63# else
64# define SWIGUNUSED
65# endif
66#endif
67
68#ifndef SWIG_MSC_UNSUPPRESS_4505
69# if defined(_MSC_VER)
70# pragma warning(disable : 4505) /* unreferenced local function has been removed */
71# endif
72#endif
73
74#ifndef SWIGUNUSEDPARM
75# ifdef __cplusplus
76# define SWIGUNUSEDPARM(p)
77# else
78# define SWIGUNUSEDPARM(p) p SWIGUNUSED
79# endif
80#endif
81
82/* internal SWIG method */
83#ifndef SWIGINTERN
84# define SWIGINTERN static SWIGUNUSED
85#endif
86
87/* internal inline SWIG method */
88#ifndef SWIGINTERNINLINE
89# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
90#endif
91
92/* exporting methods */
93#if defined(__GNUC__)
94# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
95# ifndef GCC_HASCLASSVISIBILITY
96# define GCC_HASCLASSVISIBILITY
97# endif
98# endif
99#endif
100
101#ifndef SWIGEXPORT
102# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
103# if defined(STATIC_LINKED)
104# define SWIGEXPORT
105# else
106# define SWIGEXPORT __declspec(dllexport)
107# endif
108# else
109# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
110# define SWIGEXPORT __attribute__ ((visibility("default")))
111# else
112# define SWIGEXPORT
113# endif
114# endif
115#endif
116
117/* calling conventions for Windows */
118#ifndef SWIGSTDCALL
119# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
120# define SWIGSTDCALL __stdcall
121# else
122# define SWIGSTDCALL
123# endif
124#endif
125
126/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
127#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
128# define _CRT_SECURE_NO_DEPRECATE
129#endif
130
131/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
132#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
133# define _SCL_SECURE_NO_DEPRECATE
134#endif
135
136/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
137#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
138# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
139#endif
140
141/* Intel's compiler complains if a variable which was never initialised is
142 * cast to void, which is a common idiom which we use to indicate that we
143 * are aware a variable isn't used. So we just silence that warning.
144 * See: https://github.com/swig/swig/issues/192 for more discussion.
145 */
146#ifdef __INTEL_COMPILER
147# pragma warning disable 592
148#endif
149
150#if __cplusplus >=201103L
151# define SWIG_NULLPTR nullptr
152#else
153# define SWIG_NULLPTR NULL
154#endif
155
156/* -----------------------------------------------------------------------------
157 * swigrun.swg
158 *
159 * This file contains generic C API SWIG runtime support for pointer
160 * type checking.
161 * ----------------------------------------------------------------------------- */
162
163/* This should only be incremented when either the layout of swig_type_info changes,
164 or for whatever reason, the runtime changes incompatibly */
165#define SWIG_RUNTIME_VERSION "4"
166
167/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
168#ifdef SWIG_TYPE_TABLE
169# define SWIG_QUOTE_STRING(x) #x
170# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
171# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
172#else
173# define SWIG_TYPE_TABLE_NAME
174#endif
175
176/*
177 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
178 creating a static or dynamic library from the SWIG runtime code.
179 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
180
181 But only do this if strictly necessary, ie, if you have problems
182 with your compiler or suchlike.
183*/
184
185#ifndef SWIGRUNTIME
186# define SWIGRUNTIME SWIGINTERN
187#endif
188
189#ifndef SWIGRUNTIMEINLINE
190# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
191#endif
192
193/* Generic buffer size */
194#ifndef SWIG_BUFFER_SIZE
195# define SWIG_BUFFER_SIZE 1024
196#endif
197
198/* Flags for pointer conversions */
199#define SWIG_POINTER_DISOWN 0x1
200#define SWIG_CAST_NEW_MEMORY 0x2
201#define SWIG_POINTER_NO_NULL 0x4
202#define SWIG_POINTER_CLEAR 0x8
203#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
204
205/* Flags for new pointer objects */
206#define SWIG_POINTER_OWN 0x1
207
208
209/*
210 Flags/methods for returning states.
211
212 The SWIG conversion methods, as ConvertPtr, return an integer
213 that tells if the conversion was successful or not. And if not,
214 an error code can be returned (see swigerrors.swg for the codes).
215
216 Use the following macros/flags to set or process the returning
217 states.
218
219 In old versions of SWIG, code such as the following was usually written:
220
221 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
222 // success code
223 } else {
224 //fail code
225 }
226
227 Now you can be more explicit:
228
229 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
230 if (SWIG_IsOK(res)) {
231 // success code
232 } else {
233 // fail code
234 }
235
236 which is the same really, but now you can also do
237
238 Type *ptr;
239 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
240 if (SWIG_IsOK(res)) {
241 // success code
242 if (SWIG_IsNewObj(res) {
243 ...
244 delete *ptr;
245 } else {
246 ...
247 }
248 } else {
249 // fail code
250 }
251
252 I.e., now SWIG_ConvertPtr can return new objects and you can
253 identify the case and take care of the deallocation. Of course that
254 also requires SWIG_ConvertPtr to return new result values, such as
255
256 int SWIG_ConvertPtr(obj, ptr,...) {
257 if (<obj is ok>) {
258 if (<need new object>) {
259 *ptr = <ptr to new allocated object>;
260 return SWIG_NEWOBJ;
261 } else {
262 *ptr = <ptr to old object>;
263 return SWIG_OLDOBJ;
264 }
265 } else {
266 return SWIG_BADOBJ;
267 }
268 }
269
270 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
271 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
272 SWIG errors code.
273
274 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
275 allows returning the 'cast rank', for example, if you have this
276
277 int food(double)
278 int fooi(int);
279
280 and you call
281
282 food(1) // cast rank '1' (1 -> 1.0)
283 fooi(1) // cast rank '0'
284
285 just use the SWIG_AddCast()/SWIG_CheckState()
286*/
287
288#define SWIG_OK (0)
289/* Runtime errors are < 0 */
290#define SWIG_ERROR (-1)
291/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
292/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
293/* Errors < -200 are generic runtime specific errors */
294#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
295
296#define SWIG_IsOK(r) (r >= 0)
297#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
298
299/* The CastRankLimit says how many bits are used for the cast rank */
300#define SWIG_CASTRANKLIMIT (1 << 8)
301/* The NewMask denotes the object was created (using new/malloc) */
302#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
303/* The TmpMask is for in/out typemaps that use temporary objects */
304#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
305/* Simple returning values */
306#define SWIG_BADOBJ (SWIG_ERROR)
307#define SWIG_OLDOBJ (SWIG_OK)
308#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
309#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
310/* Check, add and del object mask methods */
311#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
312#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
313#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
314#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
315#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
316#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
317
318/* Cast-Rank Mode */
319#if defined(SWIG_CASTRANK_MODE)
320# ifndef SWIG_TypeRank
321# define SWIG_TypeRank unsigned long
322# endif
323# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
324# define SWIG_MAXCASTRANK (2)
325# endif
326# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
327# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
329 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
330}
332 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
333}
334#else /* no cast-rank mode */
335# define SWIG_AddCast(r) (r)
336# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
337#endif
338
339/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
340 * if you're missing it.
341 */
342#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
343 (defined __cplusplus && __cplusplus >= 201103L) || \
344 defined SWIG_HAVE_SNPRINTF) && \
345 !defined SWIG_NO_SNPRINTF
346# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
347# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
348#else
349/* Fallback versions ignore the buffer size, but most of our uses either have a
350 * fixed maximum possible size or dynamically allocate a buffer that's large
351 * enough.
352 */
353# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
354# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
355#endif
356
357#include <string.h>
358
359#ifdef __cplusplus
360extern "C" {
361#endif
362
363typedef void *(*swig_converter_func)(void *, int *);
364typedef struct swig_type_info *(*swig_dycast_func)(void **);
365
366/* Structure to store information on one type */
367typedef struct swig_type_info {
368 const char *name; /* mangled name of this type */
369 const char *str; /* human readable name of this type */
370 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
371 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
372 void *clientdata; /* language specific type data */
373 int owndata; /* flag if the structure owns the clientdata */
375
376/* Structure to store a type and conversion function used for casting */
377typedef struct swig_cast_info {
378 swig_type_info *type; /* pointer to type that is equivalent to this type */
379 swig_converter_func converter; /* function to cast the void pointers */
380 struct swig_cast_info *next; /* pointer to next cast in linked list */
381 struct swig_cast_info *prev; /* pointer to the previous cast */
383
384/* Structure used to store module information
385 * Each module generates one structure like this, and the runtime collects
386 * all of these structures and stores them in a circularly linked list.*/
387typedef struct swig_module_info {
388 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
389 size_t size; /* Number of types in this module */
390 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
391 swig_type_info **type_initial; /* Array of initially generated type structures */
392 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
393 void *clientdata; /* Language specific module data */
395
396/*
397 Compare two type names skipping the space characters, therefore
398 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
399
400 Return 0 when the two name types are equivalent, as in
401 strncmp, but skipping ' '.
402*/
403SWIGRUNTIME int
404SWIG_TypeNameComp(const char *f1, const char *l1,
405 const char *f2, const char *l2) {
406 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
407 while ((*f1 == ' ') && (f1 != l1)) ++f1;
408 while ((*f2 == ' ') && (f2 != l2)) ++f2;
409 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
410 }
411 return (int)((l1 - f1) - (l2 - f2));
412}
413
414/*
415 Check type equivalence in a name list like <name1>|<name2>|...
416 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
417*/
418SWIGRUNTIME int
419SWIG_TypeCmp(const char *nb, const char *tb) {
420 int equiv = 1;
421 const char* te = tb + strlen(tb);
422 const char* ne = nb;
423 while (equiv != 0 && *ne) {
424 for (nb = ne; *ne; ++ne) {
425 if (*ne == '|') break;
426 }
427 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
428 if (*ne) ++ne;
429 }
430 return equiv;
431}
432
433/*
434 Check type equivalence in a name list like <name1>|<name2>|...
435 Return 0 if not equal, 1 if equal
436*/
437SWIGRUNTIME int
438SWIG_TypeEquiv(const char *nb, const char *tb) {
439 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
440}
441
442/*
443 Check the typename
444*/
446SWIG_TypeCheck(const char *c, swig_type_info *ty) {
447 if (ty) {
448 swig_cast_info *iter = ty->cast;
449 while (iter) {
450 if (strcmp(iter->type->name, c) == 0) {
451 if (iter == ty->cast)
452 return iter;
453 /* Move iter to the top of the linked list */
454 iter->prev->next = iter->next;
455 if (iter->next)
456 iter->next->prev = iter->prev;
457 iter->next = ty->cast;
458 iter->prev = 0;
459 if (ty->cast) ty->cast->prev = iter;
460 ty->cast = iter;
461 return iter;
462 }
463 iter = iter->next;
464 }
465 }
466 return 0;
467}
468
469/*
470 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
471*/
474 if (ty) {
475 swig_cast_info *iter = ty->cast;
476 while (iter) {
477 if (iter->type == from) {
478 if (iter == ty->cast)
479 return iter;
480 /* Move iter to the top of the linked list */
481 iter->prev->next = iter->next;
482 if (iter->next)
483 iter->next->prev = iter->prev;
484 iter->next = ty->cast;
485 iter->prev = 0;
486 if (ty->cast) ty->cast->prev = iter;
487 ty->cast = iter;
488 return iter;
489 }
490 iter = iter->next;
491 }
492 }
493 return 0;
494}
495
496/*
497 Cast a pointer up an inheritance hierarchy
498*/
500SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
501 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
502}
503
504/*
505 Dynamic pointer casting. Down an inheritance hierarchy
506*/
509 swig_type_info *lastty = ty;
510 if (!ty || !ty->dcast) return ty;
511 while (ty && (ty->dcast)) {
512 ty = (*ty->dcast)(ptr);
513 if (ty) lastty = ty;
514 }
515 return lastty;
516}
517
518/*
519 Return the name associated with this type
520*/
521SWIGRUNTIMEINLINE const char *
523 return ty->name;
524}
525
526/*
527 Return the pretty name associated with this type,
528 that is an unmangled type name in a form presentable to the user.
529*/
530SWIGRUNTIME const char *
532 /* The "str" field contains the equivalent pretty names of the
533 type, separated by vertical-bar characters. Choose the last
534 name. It should be the most specific; a fully resolved name
535 but not necessarily with default template parameters expanded. */
536 if (!type) return NULL;
537 if (type->str != NULL) {
538 const char *last_name = type->str;
539 const char *s;
540 for (s = type->str; *s; s++)
541 if (*s == '|') last_name = s+1;
542 return last_name;
543 }
544 else
545 return type->name;
546}
547
548/*
549 Set the clientdata field for a type
550*/
551SWIGRUNTIME void
553 swig_cast_info *cast = ti->cast;
554 /* if (ti->clientdata == clientdata) return; */
556
557 while (cast) {
558 if (!cast->converter) {
559 swig_type_info *tc = cast->type;
560 if (!tc->clientdata) {
562 }
563 }
564 cast = cast->next;
565 }
566}
567SWIGRUNTIME void
572
573/*
574 Search for a swig_type_info structure only by mangled name
575 Search is a O(log #types)
576
577 We start searching at module start, and finish searching when start == end.
578 Note: if start == end at the beginning of the function, we go all the way around
579 the circular list.
580*/
583 swig_module_info *end,
584 const char *name) {
585 swig_module_info *iter = start;
586 do {
587 if (iter->size) {
588 size_t l = 0;
589 size_t r = iter->size - 1;
590 do {
591 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
592 size_t i = (l + r) >> 1;
593 const char *iname = iter->types[i]->name;
594 if (iname) {
595 int compare = strcmp(name, iname);
596 if (compare == 0) {
597 return iter->types[i];
598 } else if (compare < 0) {
599 if (i) {
600 r = i - 1;
601 } else {
602 break;
603 }
604 } else if (compare > 0) {
605 l = i + 1;
606 }
607 } else {
608 break; /* should never happen */
609 }
610 } while (l <= r);
611 }
612 iter = iter->next;
613 } while (iter != end);
614 return 0;
615}
616
617/*
618 Search for a swig_type_info structure for either a mangled name or a human readable name.
619 It first searches the mangled names of the types, which is a O(log #types)
620 If a type is not found it then searches the human readable names, which is O(#types).
621
622 We start searching at module start, and finish searching when start == end.
623 Note: if start == end at the beginning of the function, we go all the way around
624 the circular list.
625*/
628 swig_module_info *end,
629 const char *name) {
630 /* STEP 1: Search the name field using binary search */
631 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
632 if (ret) {
633 return ret;
634 } else {
635 /* STEP 2: If the type hasn't been found, do a complete search
636 of the str field (the human readable name) */
637 swig_module_info *iter = start;
638 do {
639 size_t i = 0;
640 for (; i < iter->size; ++i) {
641 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
642 return iter->types[i];
643 }
644 iter = iter->next;
645 } while (iter != end);
646 }
647
648 /* neither found a match */
649 return 0;
650}
651
652/*
653 Pack binary data into a string
654*/
655SWIGRUNTIME char *
656SWIG_PackData(char *c, void *ptr, size_t sz) {
657 static const char hex[17] = "0123456789abcdef";
658 const unsigned char *u = (unsigned char *) ptr;
659 const unsigned char *eu = u + sz;
660 for (; u != eu; ++u) {
661 unsigned char uu = *u;
662 *(c++) = hex[(uu & 0xf0) >> 4];
663 *(c++) = hex[uu & 0xf];
664 }
665 return c;
666}
667
668/*
669 Unpack binary data from a string
670*/
671SWIGRUNTIME const char *
672SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
673 unsigned char *u = (unsigned char *) ptr;
674 const unsigned char *eu = u + sz;
675 for (; u != eu; ++u) {
676 char d = *(c++);
677 unsigned char uu;
678 if ((d >= '0') && (d <= '9'))
679 uu = (unsigned char)((d - '0') << 4);
680 else if ((d >= 'a') && (d <= 'f'))
681 uu = (unsigned char)((d - ('a'-10)) << 4);
682 else
683 return (char *) 0;
684 d = *(c++);
685 if ((d >= '0') && (d <= '9'))
686 uu |= (unsigned char)(d - '0');
687 else if ((d >= 'a') && (d <= 'f'))
688 uu |= (unsigned char)(d - ('a'-10));
689 else
690 return (char *) 0;
691 *u = uu;
692 }
693 return c;
694}
695
696/*
697 Pack 'void *' into a string buffer.
698*/
699SWIGRUNTIME char *
700SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
701 char *r = buff;
702 if ((2*sizeof(void *) + 2) > bsz) return 0;
703 *(r++) = '_';
704 r = SWIG_PackData(r,&ptr,sizeof(void *));
705 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
706 strcpy(r,name);
707 return buff;
708}
709
710SWIGRUNTIME const char *
711SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
712 if (*c != '_') {
713 if (strcmp(c,"NULL") == 0) {
714 *ptr = (void *) 0;
715 return name;
716 } else {
717 return 0;
718 }
719 }
720 return SWIG_UnpackData(++c,ptr,sizeof(void *));
721}
722
723SWIGRUNTIME char *
724SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
725 char *r = buff;
726 size_t lname = (name ? strlen(name) : 0);
727 if ((2*sz + 2 + lname) > bsz) return 0;
728 *(r++) = '_';
729 r = SWIG_PackData(r,ptr,sz);
730 if (lname) {
731 strncpy(r,name,lname+1);
732 } else {
733 *r = 0;
734 }
735 return buff;
736}
737
738SWIGRUNTIME const char *
739SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
740 if (*c != '_') {
741 if (strcmp(c,"NULL") == 0) {
742 memset(ptr,0,sz);
743 return name;
744 } else {
745 return 0;
746 }
747 }
748 return SWIG_UnpackData(++c,ptr,sz);
749}
750
751#ifdef __cplusplus
752}
753#endif
754
755/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
756#define SWIG_UnknownError -1
757#define SWIG_IOError -2
758#define SWIG_RuntimeError -3
759#define SWIG_IndexError -4
760#define SWIG_TypeError -5
761#define SWIG_DivisionByZero -6
762#define SWIG_OverflowError -7
763#define SWIG_SyntaxError -8
764#define SWIG_ValueError -9
765#define SWIG_SystemError -10
766#define SWIG_AttributeError -11
767#define SWIG_MemoryError -12
768#define SWIG_NullReferenceError -13
769
770
771/* -----------------------------------------------------------------------------
772 * phprun.swg
773 *
774 * PHP runtime library
775 * ----------------------------------------------------------------------------- */
776
777#define swig_owntype int
778
779#ifdef __cplusplus
780extern "C" {
781#endif
782
783#if PHP_MAJOR_VERSION < 8
784# error These bindings need PHP 8 or later - to generate PHP7 bindings use SWIG < 4.1.0; to generate PHP5 bindings use: SWIG < 4.0.0 and swig -php5
785#endif
786
787#include "zend_inheritance.h"
788#include "zend_exceptions.h"
789#include "zend_inheritance.h"
790
791#include <stdlib.h> /* for abort(), used in generated code. */
792
793#define SWIG_BOOL_CONSTANT(N, V) REGISTER_BOOL_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
794#define SWIG_LONG_CONSTANT(N, V) REGISTER_LONG_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
795#define SWIG_DOUBLE_CONSTANT(N, V) REGISTER_DOUBLE_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
796#define SWIG_STRING_CONSTANT(N, V) REGISTER_STRING_CONSTANT(#N, (char*)V, CONST_CS | CONST_PERSISTENT)
797#define SWIG_CHAR_CONSTANT(N, V) do {\
798 char swig_char = (V);\
799 REGISTER_STRINGL_CONSTANT(#N, &swig_char, 1, CONST_CS | CONST_PERSISTENT);\
800} while (0)
801
802#ifdef __cplusplus
803}
804#endif
805
806#define SWIG_fail goto fail
807
808static const char *default_error_msg = "Unknown error occurred";
809static int default_error_code = E_ERROR;
810
811#define SWIG_PHP_Arg_Error_Msg(argnum,extramsg) "Error in argument " #argnum " "#extramsg
812
813#define SWIG_PHP_Error(code,msg) do { zend_throw_exception(NULL, msg, code); SWIG_fail; } while (0)
814
815#define SWIG_contract_assert(expr,msg) \
816 do { if (!(expr)) zend_printf("Contract Assert Failed %s\n", msg); } while (0)
817
818/* Standard SWIG API */
819#define SWIG_GetModule(clientdata) SWIG_Php_GetModule()
820#define SWIG_SetModule(clientdata, pointer) SWIG_Php_SetModule(pointer, *(int*)clientdata)
821
823
824/* used to wrap returned objects in so we know whether they are newobject
825 and need freeing, or not */
826typedef struct {
827 void * ptr;
830 zend_object std;
832
833#define SWIG_Z_FETCH_OBJ_P(zv) swig_php_fetch_object(Z_OBJ_P(zv))
834
835static inline
837 return (swig_object_wrapper *)((char *)obj - XtOffsetOf(swig_object_wrapper, std));
838}
839
840#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
841
842static void
843SWIG_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject) {
844 // Return PHP NULL for a C/C++ NULL pointer.
845 if (!ptr) {
846 ZVAL_NULL(z);
847 return;
848 }
849
850 if (!type->clientdata) {
851 zend_type_error("Type: %s not registered with zend", type->name);
852 return;
853 }
854
855 {
856 zend_object *obj;
857 swig_object_wrapper *value;
858 if (Z_TYPE_P(z) == IS_OBJECT) {
859 /* The PHP object is already initialised - this is the case when wrapping
860 * the return value from a PHP constructor. */
861 obj = Z_OBJ_P(z);
862 } else {
863 zend_class_entry *ce = (zend_class_entry*)(type->clientdata);
864 obj = ce->create_object(ce);
865 ZVAL_OBJ(z, obj);
866 }
867 value = swig_php_fetch_object(obj);
868 value->ptr = ptr;
869 value->newobject = (newobject & 1);
870 value->type = type;
871 }
872}
873
874/* We wrap C/C++ pointers as PHP objects. */
875static int
876SWIG_ConvertPtrAndOwn(zval *z, void **ptr, swig_type_info *ty, int flags, swig_owntype *own) {
877 if (own)
878 *own = 0;
879
880 if (z == NULL) {
881 *ptr = 0;
883 }
884
885 switch (Z_TYPE_P(z)) {
886 case IS_OBJECT: {
887 zend_object *obj = Z_OBJ_P(z);
888 swig_object_wrapper *value;
889 if (ty && ty->clientdata == (void*)obj->ce) {
890 // Object is exactly the class asked for - this handles common cases cheaply,
891 // and in particular the PHP classes we use to wrap a pointer to a non-class.
892 } else if (!zend_class_implements_interface(obj->ce, &SWIG_Php_swig_wrapped_interface_ce)) {
893 // Not an object we've wrapped.
894 return -1;
895 }
896
897 /* convert and cast value->ptr from value->type to ptr as ty. */
898 value = swig_php_fetch_object(obj);
899 if (!ty) {
900 /* They don't care about the target type, so just pass on the pointer! */
901 *ptr = value->ptr;
902 } else {
903 swig_cast_info *tc = SWIG_TypeCheck(value->type->name, ty);
904 if (tc) {
905 int newmemory = 0;
906 *ptr = SWIG_TypeCast(tc, value->ptr, &newmemory);
907 if (newmemory == SWIG_CAST_NEW_MEMORY) {
908 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
909 if (own)
910 *own |= SWIG_CAST_NEW_MEMORY;
911 }
912 } else {
913 *ptr = NULL;
914 }
915 }
916
919 } else {
920 if (*ptr == NULL)
921 return SWIG_ERROR; /* should be SWIG_NullReferenceError?? */
923 value->newobject = 0;
924 }
926 value->ptr = 0;
927 }
928 }
929
930 return SWIG_OK;
931 }
932 case IS_NULL:
933 *ptr = 0;
935 }
936
937 return -1;
938}
939
940static int
941SWIG_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags) {
942 return SWIG_ConvertPtrAndOwn(z, ptr, ty, flags, 0);
943}
944
945static const char const_name[] = "swig_runtime_data_type_pointer";
947 zval *pointer = zend_get_constant_str(const_name, sizeof(const_name) - 1);
948 if (pointer) {
949 if (Z_TYPE_P(pointer) == IS_LONG) {
950 return (swig_module_info *) pointer->value.lval;
951 }
952 }
953 return NULL;
954}
955
956static void SWIG_Php_SetModule(swig_module_info *pointer, int module_number) {
957 REGISTER_LONG_CONSTANT(const_name, (long) pointer, CONST_CS | CONST_PERSISTENT);
958}
959
960/* Common parts of the "create_object" object handler. */
961static zend_object *SWIG_Php_do_create_object(zend_class_entry *ce, zend_object_handlers *handlers) {
962 swig_object_wrapper *obj = (swig_object_wrapper*)zend_object_alloc(sizeof(swig_object_wrapper), ce);
963 zend_object_std_init(&obj->std, ce);
964 object_properties_init(&obj->std, ce);
965 obj->std.handlers = handlers;
966 obj->newobject = 1;
967 return &obj->std;
968}
969
970/* Common parts of the "free_obj" object handler.
971 Returns void* pointer if the C/C++ object should be destroyed. */
972static void* SWIG_Php_free_obj(zend_object *object) {
973 if (object) {
975 zend_object_std_dtor(&obj->std);
976 if (obj->newobject) return obj->ptr;
977 }
978 return NULL;
979}
980
981
982/* -------- TYPES TABLE (BEGIN) -------- */
983
984#define SWIGTYPE_p_Agedge_t swig_types[0]
985#define SWIGTYPE_p_Agnode_t swig_types[1]
986#define SWIGTYPE_p_Agraph_t swig_types[2]
987#define SWIGTYPE_p_Agsym_t swig_types[3]
988#define SWIGTYPE_p_FILE swig_types[4]
990static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
991#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
992#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
993
994/* -------- TYPES TABLE (END) -------- */
995
996/* header section */
997#define SWIG_name "gv"
998#ifdef __cplusplus
999extern "C" {
1000#endif
1001#include "php_ini.h"
1002#include "ext/standard/info.h"
1003#include "php_gv.h"
1004#ifdef __cplusplus
1005}
1006#endif
1007
1008
1009#ifdef __cplusplus
1010#include <utility>
1011/* SwigValueWrapper is described in swig.swg */
1012template<typename T> class SwigValueWrapper {
1013 struct SwigSmartPointer {
1014 T *ptr;
1015 SwigSmartPointer(T *p) : ptr(p) { }
1016 ~SwigSmartPointer() { delete ptr; }
1017 SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1018 void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1019 } pointer;
1020 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1021 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1022public:
1023 SwigValueWrapper() : pointer(0) { }
1024 SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1025#if __cplusplus >=201103L
1026 SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1027 operator T&&() const { return std::move(*pointer.ptr); }
1028#else
1029 operator T&() const { return *pointer.ptr; }
1030#endif
1031 T *operator&() const { return pointer.ptr; }
1032 static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1033};
1034
1035/*
1036 * SwigValueInit() is a generic initialisation solution as the following approach:
1037 *
1038 * T c_result = T();
1039 *
1040 * doesn't compile for all types for example:
1041 *
1042 * unsigned int c_result = unsigned int();
1043 */
1044template <typename T> T SwigValueInit() {
1045 return T();
1046}
1047
1048#if __cplusplus >=201103L
1049# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1050#else
1051# define SWIG_STD_MOVE(OBJ) OBJ
1052#endif
1053
1054#endif
1055
1056
1057
1058#define SWIG_PHP_INTERFACE_Iterator_CE zend_ce_iterator
1059#define SWIG_PHP_INTERFACE_Iterator_HEADER "zend_interfaces.h"
1060
1061#define SWIG_PHP_INTERFACE_IteratorAggregate_CE zend_ce_aggregate
1062#define SWIG_PHP_INTERFACE_IteratorAggregate_HEADER "zend_interfaces.h"
1063
1064#define SWIG_PHP_INTERFACE_ArrayAccess_CE zend_ce_arrayaccess
1065#define SWIG_PHP_INTERFACE_ArrayAccess_HEADER "zend_interfaces.h"
1066
1067#define SWIG_PHP_INTERFACE_Serializable_CE zend_ce_serializable
1068#define SWIG_PHP_INTERFACE_Serializable_HEADER "zend_interfaces.h"
1069
1070#define SWIG_PHP_INTERFACE_Countable_CE zend_ce_countable
1071#define SWIG_PHP_INTERFACE_Countable_HEADER "zend_interfaces.h"
1072
1073#define SWIG_PHP_INTERFACE_OuterIterator_CE spl_ce_OuterIterator
1074#define SWIG_PHP_INTERFACE_OuterIterator_HEADER "ext/spl/spl_iterators.h"
1075
1076#define SWIG_PHP_INTERFACE_RecursiveIterator_CE spl_ce_RecursiveIterator
1077#define SWIG_PHP_INTERFACE_RecursiveIterator_HEADER "ext/spl/spl_iterators.h"
1078
1079#define SWIG_PHP_INTERFACE_SeekableIterator_CE spl_ce_SeekableIterator
1080#define SWIG_PHP_INTERFACE_SeekableIterator_HEADER "ext/spl/spl_iterators.h"
1081
1082#define SWIG_PHP_INTERFACE_SplObserver_CE spl_ce_SplObserver
1083#define SWIG_PHP_INTERFACE_SplObserver_HEADER "ext/spl/spl_observer.h"
1084
1085#define SWIG_PHP_INTERFACE_SplSubject_CE spl_ce_SplSubject
1086#define SWIG_PHP_INTERFACE_SplSubject_HEADER "ext/spl/spl_observer.h"
1087
1088#define SWIG_PHP_INTERFACE_DateTimeInterface_CE php_date_get_interface_ce()
1089#define SWIG_PHP_INTERFACE_DateTimeInterface_HEADER "ext/date/php_date.h"
1090
1091// The "json" extension needs to be loaded earlier that us for this to work.
1092#define SWIG_PHP_INTERFACE_JsonSerializable_CE php_json_serializable_ce
1093#define SWIG_PHP_INTERFACE_JsonSerializable_HEADER "ext/json/php_json.h"
1094
1095// New in PHP 8.0.
1096#define SWIG_PHP_INTERFACE_Stringable_CE zend_ce_stringable
1097#define SWIG_PHP_INTERFACE_Stringable_HEADER "zend_interfaces.h"
1098
1099
1100
1101#include <gvc/gvc.h>
1102
1104/*** New empty graph */
1105extern Agraph_t *graph(char *name);
1106extern Agraph_t *digraph(char *name);
1107extern Agraph_t *strictgraph(char *name);
1108extern Agraph_t *strictdigraph(char *name);
1109/*** New graph from a dot-syntax string or file */
1110extern Agraph_t *readstring(char *string);
1111extern Agraph_t *read(const char *filename);
1112extern Agraph_t *read(FILE *f);
1113/*** Add new subgraph to existing graph */
1114extern Agraph_t *graph(Agraph_t *g, char *name);
1115
1117/*** Add new node to existing graph */
1118extern Agnode_t *node(Agraph_t *g, char *name);
1119
1121/*** Add new edge between existing nodes */
1122extern Agedge_t *edge(Agnode_t *t, Agnode_t *h);
1123/*** Add a new edge between an existing tail node, and a named head node which will be induced in the graph if it doesn't already exist */
1124extern Agedge_t *edge(Agnode_t *t, char *hname);
1125/*** Add a new edge between an existing head node, and a named tail node which will be induced in the graph if it doesn't already exist */
1126extern Agedge_t *edge(char *tname, Agnode_t *h);
1127/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */
1128extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname);
1129
1131/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */
1132extern char *setv(Agraph_t *g, char *attr, char *val);
1133extern char *setv(Agnode_t *n, char *attr, char *val);
1134extern char *setv(Agedge_t *e, char *attr, char *val);
1135
1136/*** Set value of existing attribute of graph/node/edge (using attribute handle) */
1137extern char *setv(Agraph_t *g, Agsym_t *a, char *val);
1138extern char *setv(Agnode_t *n, Agsym_t *a, char *val);
1139extern char *setv(Agedge_t *e, Agsym_t *a, char *val);
1140
1142/*** Get value of named attribute of graph/node/edge */
1143extern char *getv(Agraph_t *g, char *attr);
1144extern char *getv(Agnode_t *n, char *attr);
1145extern char *getv(Agedge_t *e, char *attr);
1146
1147/*** Get value of attribute of graph/node/edge (using attribute handle) */
1148extern char *getv(Agraph_t *g, Agsym_t *a);
1149extern char *getv(Agnode_t *n, Agsym_t *a);
1150extern char *getv(Agedge_t *e, Agsym_t *a);
1151
1153extern char *nameof(Agraph_t *g);
1154extern char *nameof(Agnode_t *n);
1155extern char *nameof(Agsym_t *a);
1156
1158extern Agraph_t *findsubg(Agraph_t *g, char *name);
1159extern Agnode_t *findnode(Agraph_t *g, char *name);
1160extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h);
1161
1163extern Agsym_t *findattr(Agraph_t *g, char *name);
1164extern Agsym_t *findattr(Agnode_t *n, char *name);
1165extern Agsym_t *findattr(Agedge_t *e, char *name);
1166
1168extern Agnode_t *headof(Agedge_t *e);
1169extern Agnode_t *tailof(Agedge_t *e);
1170extern Agraph_t *graphof(Agraph_t *g);
1171extern Agraph_t *graphof(Agedge_t *e);
1172extern Agraph_t *graphof(Agnode_t *n);
1173extern Agraph_t *rootof(Agraph_t *g);
1174
1176extern Agnode_t *protonode(Agraph_t *g);
1177extern Agedge_t *protoedge(Agraph_t *g);
1178
1180/*** Iteration termination tests */
1181extern bool ok(Agraph_t *g);
1182extern bool ok(Agnode_t *n);
1183extern bool ok(Agedge_t *e);
1184extern bool ok(Agsym_t *a);
1185
1186/*** Iterate over subgraphs of a graph */
1187extern Agraph_t *firstsubg(Agraph_t *g);
1188extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
1189
1190/*** Iterate over supergraphs of a graph (obscure and rarely useful) */
1191extern Agraph_t *firstsupg(Agraph_t *g);
1192extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
1193
1194/*** Iterate over edges of a graph */
1195extern Agedge_t *firstedge(Agraph_t *g);
1196extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e);
1197
1198/*** Iterate over outedges of a graph */
1199extern Agedge_t *firstout(Agraph_t *g);
1200extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
1201
1202/*** Iterate over edges of a node */
1203extern Agedge_t *firstedge(Agnode_t *n);
1204extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e);
1205
1206/*** Iterate over out-edges of a node */
1207extern Agedge_t *firstout(Agnode_t *n);
1208extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
1209
1210/*** Iterate over head nodes reachable from out-edges of a node */
1211extern Agnode_t *firsthead(Agnode_t *n);
1212extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h);
1213
1214/*** Iterate over in-edges of a graph */
1215extern Agedge_t *firstin(Agraph_t *g);
1216extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
1217
1218/*** Iterate over in-edges of a node */
1219extern Agedge_t *firstin(Agnode_t *n);
1220extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
1221
1222/*** Iterate over tail nodes reachable from in-edges of a node */
1223extern Agnode_t *firsttail(Agnode_t *n);
1224extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t);
1225
1226/*** Iterate over nodes of a graph */
1227extern Agnode_t *firstnode(Agraph_t *g);
1228extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n);
1229
1230/*** Iterate over nodes of an edge */
1231extern Agnode_t *firstnode(Agedge_t *e);
1232extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n);
1233
1234/*** Iterate over attributes of a graph */
1235extern Agsym_t *firstattr(Agraph_t *g);
1236extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a);
1237
1238/*** Iterate over attributes of an edge */
1239extern Agsym_t *firstattr(Agedge_t *e);
1240extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a);
1241
1242/*** Iterate over attributes of a node */
1243extern Agsym_t *firstattr(Agnode_t *n);
1244extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a);
1245
1247extern bool rm(Agraph_t *g);
1248extern bool rm(Agnode_t *n);
1249extern bool rm(Agedge_t *e);
1250
1252/*** Annotate a graph with layout attributes and values using a specific layout engine */
1253extern bool layout(Agraph_t *g, const char *engine);
1254
1256/*** Render a layout into attributes of the graph */
1257extern bool render(Agraph_t *g);
1258/*** Render a layout to stdout */
1259extern bool render(Agraph_t *g, const char *format);
1260/*** Render to an open file */
1261extern bool render(Agraph_t *g, const char *format, FILE *fout);
1262/*** Render a layout to an unopened file by name */
1263extern bool render(Agraph_t *g, const char *format, const char *filename);
1264/*** Render to a string result */
1265#ifdef SWIGJAVA
1266extern char* renderresult(Agraph_t *ing, const char *format);
1267#else
1268extern void renderresult(Agraph_t *g, const char *format, char *outdata);
1269/*** Render to an open channel */
1270extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname);
1271#endif
1272/*** Render a layout to a malloc'ed string, to be free'd by the caller */
1273/*** (deprecated - too easy to leak memory) */
1274/*** (still needed for "eval [gv::renderdata $G tk]" ) */
1275extern char* renderdata(Agraph_t *g, const char *format);
1276
1277/*** Writing graph back to file */
1278extern bool write(Agraph_t *g, const char *filename);
1279extern bool write(Agraph_t *g, FILE *f);
1280
1281/*** Graph transformation tools */
1282extern bool tred(Agraph_t *g);
1283
1284
1285static zend_class_entry *SWIG_Php_ce_gv;
1286
1287/* class entry for pointer to _p_Agnode_t */
1288static zend_class_entry *SWIG_Php_ce__p_Agnode_t;
1289
1290/* class entry for pointer to _p_Agsym_t */
1291static zend_class_entry *SWIG_Php_ce__p_Agsym_t;
1292
1293/* class entry for pointer to _p_Agraph_t */
1294static zend_class_entry *SWIG_Php_ce__p_Agraph_t;
1295
1296/* class entry for pointer to _p_FILE */
1297static zend_class_entry *SWIG_Php_ce__p_FILE;
1298
1299/* class entry for pointer to _p_Agedge_t */
1300static zend_class_entry *SWIG_Php_ce__p_Agedge_t;
1301
1302
1303/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1304
1305static swig_type_info _swigt__p_Agedge_t = {"_p_Agedge_t", "Agedge_t *", 0, 0, (void*)0, 0};
1306static swig_type_info _swigt__p_Agnode_t = {"_p_Agnode_t", "Agnode_t *", 0, 0, (void*)0, 0};
1307static swig_type_info _swigt__p_Agraph_t = {"_p_Agraph_t", "Agraph_t *", 0, 0, (void*)0, 0};
1308static swig_type_info _swigt__p_Agsym_t = {"_p_Agsym_t", "Agsym_t *", 0, 0, (void*)0, 0};
1309static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
1310
1318
1319static swig_cast_info _swigc__p_Agedge_t[] = { {&_swigt__p_Agedge_t, 0, 0, 0},{0, 0, 0, 0}};
1320static swig_cast_info _swigc__p_Agnode_t[] = { {&_swigt__p_Agnode_t, 0, 0, 0},{0, 0, 0, 0}};
1321static swig_cast_info _swigc__p_Agraph_t[] = { {&_swigt__p_Agraph_t, 0, 0, 0},{0, 0, 0, 0}};
1322static swig_cast_info _swigc__p_Agsym_t[] = { {&_swigt__p_Agsym_t, 0, 0, 0},{0, 0, 0, 0}};
1323static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
1324
1332
1333
1334/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1335
1336/* end header section */
1337/* vdecl subsection */
1338/* end vdecl subsection */
1339/* wrapper section */
1341 char *arg1 = (char *) 0 ;
1342 zval args[1];
1343 Agraph_t *result = 0 ;
1344
1345 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1346 WRONG_PARAM_COUNT;
1347 }
1348
1349
1350 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1351 if (Z_ISNULL(args[0])) {
1352 arg1 = (char *) 0;
1353 } else {
1354 convert_to_string(&args[0]);
1355 arg1 = (char *) Z_STRVAL(args[0]);
1356 }
1357 /*@SWIG@*/;
1358
1359 result = (Agraph_t *)graph(arg1);
1360
1361 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1362
1363fail:
1364 return;
1365}
1366
1367
1369 PHP_FN(digraph)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
1370}
1371
1373 char *arg1 = (char *) 0 ;
1374 zval args[1];
1375 Agraph_t *result = 0 ;
1376
1377 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1378 WRONG_PARAM_COUNT;
1379 }
1380
1381
1382 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1383 if (Z_ISNULL(args[0])) {
1384 arg1 = (char *) 0;
1385 } else {
1386 convert_to_string(&args[0]);
1387 arg1 = (char *) Z_STRVAL(args[0]);
1388 }
1389 /*@SWIG@*/;
1390
1391 result = (Agraph_t *)digraph(arg1);
1392
1393 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1394
1395fail:
1396 return;
1397}
1398
1399
1401 PHP_FN(strictgraph)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
1402}
1403
1405 char *arg1 = (char *) 0 ;
1406 zval args[1];
1407 Agraph_t *result = 0 ;
1408
1409 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1410 WRONG_PARAM_COUNT;
1411 }
1412
1413
1414 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1415 if (Z_ISNULL(args[0])) {
1416 arg1 = (char *) 0;
1417 } else {
1418 convert_to_string(&args[0]);
1419 arg1 = (char *) Z_STRVAL(args[0]);
1420 }
1421 /*@SWIG@*/;
1422
1423 result = (Agraph_t *)strictgraph(arg1);
1424
1425 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1426
1427fail:
1428 return;
1429}
1430
1431
1433 PHP_FN(strictdigraph)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
1434}
1435
1437 char *arg1 = (char *) 0 ;
1438 zval args[1];
1439 Agraph_t *result = 0 ;
1440
1441 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1442 WRONG_PARAM_COUNT;
1443 }
1444
1445
1446 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1447 if (Z_ISNULL(args[0])) {
1448 arg1 = (char *) 0;
1449 } else {
1450 convert_to_string(&args[0]);
1451 arg1 = (char *) Z_STRVAL(args[0]);
1452 }
1453 /*@SWIG@*/;
1454
1455 result = (Agraph_t *)strictdigraph(arg1);
1456
1457 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1458
1459fail:
1460 return;
1461}
1462
1463
1465 PHP_FN(readstring)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
1466}
1467
1469 char *arg1 = (char *) 0 ;
1470 zval args[1];
1471 Agraph_t *result = 0 ;
1472
1473 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1474 WRONG_PARAM_COUNT;
1475 }
1476
1477
1478 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1479 if (Z_ISNULL(args[0])) {
1480 arg1 = (char *) 0;
1481 } else {
1482 convert_to_string(&args[0]);
1483 arg1 = (char *) Z_STRVAL(args[0]);
1484 }
1485 /*@SWIG@*/;
1486
1487 result = (Agraph_t *)readstring(arg1);
1488
1489 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1490
1491fail:
1492 return;
1493}
1494
1495
1497 char *arg1 = (char *) 0 ;
1498 zval args[1];
1499 Agraph_t *result = 0 ;
1500
1501 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1502 WRONG_PARAM_COUNT;
1503 }
1504
1505
1506 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1507 if (Z_ISNULL(args[0])) {
1508 arg1 = (char *) 0;
1509 } else {
1510 convert_to_string(&args[0]);
1511 arg1 = (char *) Z_STRVAL(args[0]);
1512 }
1513 /*@SWIG@*/;
1514
1515 result = (Agraph_t *)read((char const *)arg1);
1516
1517 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1518
1519fail:
1520 return;
1521}
1522
1523
1525 FILE *arg1 = (FILE *) 0 ;
1526 zval args[1];
1527 Agraph_t *result = 0 ;
1528
1529 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
1530 WRONG_PARAM_COUNT;
1531 }
1532
1533
1534 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_FILE, 0) < 0) {
1535 zend_type_error("Expected SWIGTYPE_p_FILE for argument 1 of read");
1536 return;
1537 }
1538
1539 result = (Agraph_t *)read(arg1);
1540
1541 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1542
1543fail:
1544 return;
1545}
1546
1547
1549 int argc;
1550 zval argv[1];
1551
1552 argc = ZEND_NUM_ARGS();
1553 zend_get_parameters_array_ex(argc, argv);
1554 if (argc == 1) {
1555 int _v = 0;
1556 {
1557 void *tmp;
1558 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_FILE, 0) >= 0);
1559 }
1560 if (_v) {
1561 _wrap_read__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1562 }
1563 }
1564 if (argc == 1) {
1565 int _v = 0;
1566 _v = (Z_TYPE(argv[0]) == IS_STRING || Z_TYPE(argv[0]) == IS_NULL);
1567 if (_v) {
1568 _wrap_read__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1569 }
1570 }
1571
1572 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'read'", 0);
1573fail:
1574 return;
1575}
1576
1577
1579 Agraph_t *arg1 = (Agraph_t *) 0 ;
1580 char *arg2 = (char *) 0 ;
1581 zval args[2];
1582 Agraph_t *result = 0 ;
1583
1584 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
1585 WRONG_PARAM_COUNT;
1586 }
1587
1588
1589 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
1590 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of graph");
1591 return;
1592 }
1593
1594
1595 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1596 if (Z_ISNULL(args[1])) {
1597 arg2 = (char *) 0;
1598 } else {
1599 convert_to_string(&args[1]);
1600 arg2 = (char *) Z_STRVAL(args[1]);
1601 }
1602 /*@SWIG@*/;
1603
1604 result = (Agraph_t *)graph(arg1,arg2);
1605
1606 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
1607
1608fail:
1609 return;
1610}
1611
1612
1614 int argc;
1615 zval argv[2];
1616
1617 argc = ZEND_NUM_ARGS();
1618 zend_get_parameters_array_ex(argc, argv);
1619 if (argc == 1) {
1620 int _v = 0;
1621 _v = (Z_TYPE(argv[0]) == IS_STRING || Z_TYPE(argv[0]) == IS_NULL);
1622 if (_v) {
1623 _wrap_graph__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1624 }
1625 }
1626 if (argc == 2) {
1627 int _v = 0;
1628 {
1629 void *tmp;
1630 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
1631 }
1632 if (_v) {
1633 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
1634 if (_v) {
1635 _wrap_graph__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1636 }
1637 }
1638 }
1639
1640 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'graph'", 0);
1641fail:
1642 return;
1643}
1644
1645
1646static PHP_METHOD(gv,node) {
1647 PHP_FN(node)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
1648}
1649
1651 Agraph_t *arg1 = (Agraph_t *) 0 ;
1652 char *arg2 = (char *) 0 ;
1653 zval args[2];
1654 Agnode_t *result = 0 ;
1655
1656 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
1657 WRONG_PARAM_COUNT;
1658 }
1659
1660
1661 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
1662 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of node");
1663 return;
1664 }
1665
1666
1667 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1668 if (Z_ISNULL(args[1])) {
1669 arg2 = (char *) 0;
1670 } else {
1671 convert_to_string(&args[1]);
1672 arg2 = (char *) Z_STRVAL(args[1]);
1673 }
1674 /*@SWIG@*/;
1675
1676 result = (Agnode_t *)node(arg1,arg2);
1677
1678 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
1679
1680fail:
1681 return;
1682}
1683
1684
1686 Agnode_t *arg1 = (Agnode_t *) 0 ;
1687 Agnode_t *arg2 = (Agnode_t *) 0 ;
1688 zval args[2];
1689 Agedge_t *result = 0 ;
1690
1691 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
1692 WRONG_PARAM_COUNT;
1693 }
1694
1695
1696 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
1697 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of edge");
1698 return;
1699 }
1700
1701
1702 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
1703 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of edge");
1704 return;
1705 }
1706
1707 result = (Agedge_t *)edge(arg1,arg2);
1708
1709 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
1710
1711fail:
1712 return;
1713}
1714
1715
1717 Agnode_t *arg1 = (Agnode_t *) 0 ;
1718 char *arg2 = (char *) 0 ;
1719 zval args[2];
1720 Agedge_t *result = 0 ;
1721
1722 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
1723 WRONG_PARAM_COUNT;
1724 }
1725
1726
1727 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
1728 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of edge");
1729 return;
1730 }
1731
1732
1733 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1734 if (Z_ISNULL(args[1])) {
1735 arg2 = (char *) 0;
1736 } else {
1737 convert_to_string(&args[1]);
1738 arg2 = (char *) Z_STRVAL(args[1]);
1739 }
1740 /*@SWIG@*/;
1741
1742 result = (Agedge_t *)edge(arg1,arg2);
1743
1744 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
1745
1746fail:
1747 return;
1748}
1749
1750
1752 char *arg1 = (char *) 0 ;
1753 Agnode_t *arg2 = (Agnode_t *) 0 ;
1754 zval args[2];
1755 Agedge_t *result = 0 ;
1756
1757 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
1758 WRONG_PARAM_COUNT;
1759 }
1760
1761
1762 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1763 if (Z_ISNULL(args[0])) {
1764 arg1 = (char *) 0;
1765 } else {
1766 convert_to_string(&args[0]);
1767 arg1 = (char *) Z_STRVAL(args[0]);
1768 }
1769 /*@SWIG@*/;
1770
1771
1772 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
1773 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of edge");
1774 return;
1775 }
1776
1777 result = (Agedge_t *)edge(arg1,arg2);
1778
1779 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
1780
1781fail:
1782 return;
1783}
1784
1785
1787 Agraph_t *arg1 = (Agraph_t *) 0 ;
1788 char *arg2 = (char *) 0 ;
1789 char *arg3 = (char *) 0 ;
1790 zval args[3];
1791 Agedge_t *result = 0 ;
1792
1793 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
1794 WRONG_PARAM_COUNT;
1795 }
1796
1797
1798 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
1799 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of edge");
1800 return;
1801 }
1802
1803
1804 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1805 if (Z_ISNULL(args[1])) {
1806 arg2 = (char *) 0;
1807 } else {
1808 convert_to_string(&args[1]);
1809 arg2 = (char *) Z_STRVAL(args[1]);
1810 }
1811 /*@SWIG@*/;
1812
1813
1814 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1815 if (Z_ISNULL(args[2])) {
1816 arg3 = (char *) 0;
1817 } else {
1818 convert_to_string(&args[2]);
1819 arg3 = (char *) Z_STRVAL(args[2]);
1820 }
1821 /*@SWIG@*/;
1822
1823 result = (Agedge_t *)edge(arg1,arg2,arg3);
1824
1825 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
1826
1827fail:
1828 return;
1829}
1830
1831
1833 int argc;
1834 zval argv[3];
1835
1836 argc = ZEND_NUM_ARGS();
1837 zend_get_parameters_array_ex(argc, argv);
1838 if (argc == 2) {
1839 int _v = 0;
1840 {
1841 void *tmp;
1842 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
1843 }
1844 if (_v) {
1845 {
1846 void *tmp;
1847 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
1848 }
1849 if (_v) {
1850 _wrap_edge__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1851 }
1852 }
1853 }
1854 if (argc == 2) {
1855 int _v = 0;
1856 {
1857 void *tmp;
1858 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
1859 }
1860 if (_v) {
1861 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
1862 if (_v) {
1863 _wrap_edge__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1864 }
1865 }
1866 }
1867 if (argc == 2) {
1868 int _v = 0;
1869 _v = (Z_TYPE(argv[0]) == IS_STRING || Z_TYPE(argv[0]) == IS_NULL);
1870 if (_v) {
1871 {
1872 void *tmp;
1873 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
1874 }
1875 if (_v) {
1876 _wrap_edge__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1877 }
1878 }
1879 }
1880 if (argc == 3) {
1881 int _v = 0;
1882 {
1883 void *tmp;
1884 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
1885 }
1886 if (_v) {
1887 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
1888 if (_v) {
1889 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
1890 if (_v) {
1891 _wrap_edge__SWIG_3(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
1892 }
1893 }
1894 }
1895 }
1896
1897 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'edge'", 0);
1898fail:
1899 return;
1900}
1901
1902
1904 Agraph_t *arg1 = (Agraph_t *) 0 ;
1905 char *arg2 = (char *) 0 ;
1906 char *arg3 = (char *) 0 ;
1907 zval args[3];
1908 char *result = 0 ;
1909
1910 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
1911 WRONG_PARAM_COUNT;
1912 }
1913
1914
1915 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
1916 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of setv");
1917 return;
1918 }
1919
1920
1921 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1922 if (Z_ISNULL(args[1])) {
1923 arg2 = (char *) 0;
1924 } else {
1925 convert_to_string(&args[1]);
1926 arg2 = (char *) Z_STRVAL(args[1]);
1927 }
1928 /*@SWIG@*/;
1929
1930
1931 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1932 if (Z_ISNULL(args[2])) {
1933 arg3 = (char *) 0;
1934 } else {
1935 convert_to_string(&args[2]);
1936 arg3 = (char *) Z_STRVAL(args[2]);
1937 }
1938 /*@SWIG@*/;
1939
1940 result = (char *)setv(arg1,arg2,arg3);
1941
1942 if (!result) {
1943 RETVAL_NULL();
1944 } else {
1945 RETVAL_STRING((const char *)result);
1946 }
1947
1948fail:
1949 return;
1950}
1951
1952
1954 Agnode_t *arg1 = (Agnode_t *) 0 ;
1955 char *arg2 = (char *) 0 ;
1956 char *arg3 = (char *) 0 ;
1957 zval args[3];
1958 char *result = 0 ;
1959
1960 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
1961 WRONG_PARAM_COUNT;
1962 }
1963
1964
1965 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
1966 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of setv");
1967 return;
1968 }
1969
1970
1971 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1972 if (Z_ISNULL(args[1])) {
1973 arg2 = (char *) 0;
1974 } else {
1975 convert_to_string(&args[1]);
1976 arg2 = (char *) Z_STRVAL(args[1]);
1977 }
1978 /*@SWIG@*/;
1979
1980
1981 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
1982 if (Z_ISNULL(args[2])) {
1983 arg3 = (char *) 0;
1984 } else {
1985 convert_to_string(&args[2]);
1986 arg3 = (char *) Z_STRVAL(args[2]);
1987 }
1988 /*@SWIG@*/;
1989
1990 result = (char *)setv(arg1,arg2,arg3);
1991
1992 if (!result) {
1993 RETVAL_NULL();
1994 } else {
1995 RETVAL_STRING((const char *)result);
1996 }
1997
1998fail:
1999 return;
2000}
2001
2002
2004 Agedge_t *arg1 = (Agedge_t *) 0 ;
2005 char *arg2 = (char *) 0 ;
2006 char *arg3 = (char *) 0 ;
2007 zval args[3];
2008 char *result = 0 ;
2009
2010 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
2011 WRONG_PARAM_COUNT;
2012 }
2013
2014
2015 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
2016 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of setv");
2017 return;
2018 }
2019
2020
2021 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2022 if (Z_ISNULL(args[1])) {
2023 arg2 = (char *) 0;
2024 } else {
2025 convert_to_string(&args[1]);
2026 arg2 = (char *) Z_STRVAL(args[1]);
2027 }
2028 /*@SWIG@*/;
2029
2030
2031 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2032 if (Z_ISNULL(args[2])) {
2033 arg3 = (char *) 0;
2034 } else {
2035 convert_to_string(&args[2]);
2036 arg3 = (char *) Z_STRVAL(args[2]);
2037 }
2038 /*@SWIG@*/;
2039
2040 result = (char *)setv(arg1,arg2,arg3);
2041
2042 if (!result) {
2043 RETVAL_NULL();
2044 } else {
2045 RETVAL_STRING((const char *)result);
2046 }
2047
2048fail:
2049 return;
2050}
2051
2052
2054 Agraph_t *arg1 = (Agraph_t *) 0 ;
2055 Agsym_t *arg2 = (Agsym_t *) 0 ;
2056 char *arg3 = (char *) 0 ;
2057 zval args[3];
2058 char *result = 0 ;
2059
2060 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
2061 WRONG_PARAM_COUNT;
2062 }
2063
2064
2065 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2066 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of setv");
2067 return;
2068 }
2069
2070
2071 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
2072 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of setv");
2073 return;
2074 }
2075
2076
2077 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2078 if (Z_ISNULL(args[2])) {
2079 arg3 = (char *) 0;
2080 } else {
2081 convert_to_string(&args[2]);
2082 arg3 = (char *) Z_STRVAL(args[2]);
2083 }
2084 /*@SWIG@*/;
2085
2086 result = (char *)setv(arg1,arg2,arg3);
2087
2088 if (!result) {
2089 RETVAL_NULL();
2090 } else {
2091 RETVAL_STRING((const char *)result);
2092 }
2093
2094fail:
2095 return;
2096}
2097
2098
2100 Agnode_t *arg1 = (Agnode_t *) 0 ;
2101 Agsym_t *arg2 = (Agsym_t *) 0 ;
2102 char *arg3 = (char *) 0 ;
2103 zval args[3];
2104 char *result = 0 ;
2105
2106 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
2107 WRONG_PARAM_COUNT;
2108 }
2109
2110
2111 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
2112 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of setv");
2113 return;
2114 }
2115
2116
2117 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
2118 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of setv");
2119 return;
2120 }
2121
2122
2123 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2124 if (Z_ISNULL(args[2])) {
2125 arg3 = (char *) 0;
2126 } else {
2127 convert_to_string(&args[2]);
2128 arg3 = (char *) Z_STRVAL(args[2]);
2129 }
2130 /*@SWIG@*/;
2131
2132 result = (char *)setv(arg1,arg2,arg3);
2133
2134 if (!result) {
2135 RETVAL_NULL();
2136 } else {
2137 RETVAL_STRING((const char *)result);
2138 }
2139
2140fail:
2141 return;
2142}
2143
2144
2146 Agedge_t *arg1 = (Agedge_t *) 0 ;
2147 Agsym_t *arg2 = (Agsym_t *) 0 ;
2148 char *arg3 = (char *) 0 ;
2149 zval args[3];
2150 char *result = 0 ;
2151
2152 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
2153 WRONG_PARAM_COUNT;
2154 }
2155
2156
2157 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
2158 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of setv");
2159 return;
2160 }
2161
2162
2163 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
2164 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of setv");
2165 return;
2166 }
2167
2168
2169 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2170 if (Z_ISNULL(args[2])) {
2171 arg3 = (char *) 0;
2172 } else {
2173 convert_to_string(&args[2]);
2174 arg3 = (char *) Z_STRVAL(args[2]);
2175 }
2176 /*@SWIG@*/;
2177
2178 result = (char *)setv(arg1,arg2,arg3);
2179
2180 if (!result) {
2181 RETVAL_NULL();
2182 } else {
2183 RETVAL_STRING((const char *)result);
2184 }
2185
2186fail:
2187 return;
2188}
2189
2190
2192 int argc;
2193 zval argv[3];
2194
2195 argc = ZEND_NUM_ARGS();
2196 zend_get_parameters_array_ex(argc, argv);
2197 if (argc == 3) {
2198 int _v = 0;
2199 {
2200 void *tmp;
2201 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
2202 }
2203 if (_v) {
2204 {
2205 void *tmp;
2206 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2207 }
2208 if (_v) {
2209 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
2210 if (_v) {
2211 _wrap_setv__SWIG_3(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2212 }
2213 }
2214 }
2215 }
2216 if (argc == 3) {
2217 int _v = 0;
2218 {
2219 void *tmp;
2220 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
2221 }
2222 if (_v) {
2223 {
2224 void *tmp;
2225 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2226 }
2227 if (_v) {
2228 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
2229 if (_v) {
2230 _wrap_setv__SWIG_4(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2231 }
2232 }
2233 }
2234 }
2235 if (argc == 3) {
2236 int _v = 0;
2237 {
2238 void *tmp;
2239 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
2240 }
2241 if (_v) {
2242 {
2243 void *tmp;
2244 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2245 }
2246 if (_v) {
2247 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
2248 if (_v) {
2249 _wrap_setv__SWIG_5(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2250 }
2251 }
2252 }
2253 }
2254 if (argc == 3) {
2255 int _v = 0;
2256 {
2257 void *tmp;
2258 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
2259 }
2260 if (_v) {
2261 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2262 if (_v) {
2263 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
2264 if (_v) {
2265 _wrap_setv__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2266 }
2267 }
2268 }
2269 }
2270 if (argc == 3) {
2271 int _v = 0;
2272 {
2273 void *tmp;
2274 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
2275 }
2276 if (_v) {
2277 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2278 if (_v) {
2279 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
2280 if (_v) {
2281 _wrap_setv__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2282 }
2283 }
2284 }
2285 }
2286 if (argc == 3) {
2287 int _v = 0;
2288 {
2289 void *tmp;
2290 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
2291 }
2292 if (_v) {
2293 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2294 if (_v) {
2295 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
2296 if (_v) {
2297 _wrap_setv__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2298 }
2299 }
2300 }
2301 }
2302
2303 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'setv'", 0);
2304fail:
2305 return;
2306}
2307
2308
2310 Agraph_t *arg1 = (Agraph_t *) 0 ;
2311 char *arg2 = (char *) 0 ;
2312 zval args[2];
2313 char *result = 0 ;
2314
2315 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2316 WRONG_PARAM_COUNT;
2317 }
2318
2319
2320 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2321 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of getv");
2322 return;
2323 }
2324
2325
2326 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2327 if (Z_ISNULL(args[1])) {
2328 arg2 = (char *) 0;
2329 } else {
2330 convert_to_string(&args[1]);
2331 arg2 = (char *) Z_STRVAL(args[1]);
2332 }
2333 /*@SWIG@*/;
2334
2335 result = (char *)getv(arg1,arg2);
2336
2337 if (!result) {
2338 RETVAL_NULL();
2339 } else {
2340 RETVAL_STRING((const char *)result);
2341 }
2342
2343fail:
2344 return;
2345}
2346
2347
2349 Agnode_t *arg1 = (Agnode_t *) 0 ;
2350 char *arg2 = (char *) 0 ;
2351 zval args[2];
2352 char *result = 0 ;
2353
2354 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2355 WRONG_PARAM_COUNT;
2356 }
2357
2358
2359 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
2360 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of getv");
2361 return;
2362 }
2363
2364
2365 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2366 if (Z_ISNULL(args[1])) {
2367 arg2 = (char *) 0;
2368 } else {
2369 convert_to_string(&args[1]);
2370 arg2 = (char *) Z_STRVAL(args[1]);
2371 }
2372 /*@SWIG@*/;
2373
2374 result = (char *)getv(arg1,arg2);
2375
2376 if (!result) {
2377 RETVAL_NULL();
2378 } else {
2379 RETVAL_STRING((const char *)result);
2380 }
2381
2382fail:
2383 return;
2384}
2385
2386
2388 Agedge_t *arg1 = (Agedge_t *) 0 ;
2389 char *arg2 = (char *) 0 ;
2390 zval args[2];
2391 char *result = 0 ;
2392
2393 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2394 WRONG_PARAM_COUNT;
2395 }
2396
2397
2398 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
2399 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of getv");
2400 return;
2401 }
2402
2403
2404 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2405 if (Z_ISNULL(args[1])) {
2406 arg2 = (char *) 0;
2407 } else {
2408 convert_to_string(&args[1]);
2409 arg2 = (char *) Z_STRVAL(args[1]);
2410 }
2411 /*@SWIG@*/;
2412
2413 result = (char *)getv(arg1,arg2);
2414
2415 if (!result) {
2416 RETVAL_NULL();
2417 } else {
2418 RETVAL_STRING((const char *)result);
2419 }
2420
2421fail:
2422 return;
2423}
2424
2425
2427 Agraph_t *arg1 = (Agraph_t *) 0 ;
2428 Agsym_t *arg2 = (Agsym_t *) 0 ;
2429 zval args[2];
2430 char *result = 0 ;
2431
2432 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2433 WRONG_PARAM_COUNT;
2434 }
2435
2436
2437 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2438 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of getv");
2439 return;
2440 }
2441
2442
2443 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
2444 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of getv");
2445 return;
2446 }
2447
2448 result = (char *)getv(arg1,arg2);
2449
2450 if (!result) {
2451 RETVAL_NULL();
2452 } else {
2453 RETVAL_STRING((const char *)result);
2454 }
2455
2456fail:
2457 return;
2458}
2459
2460
2462 Agnode_t *arg1 = (Agnode_t *) 0 ;
2463 Agsym_t *arg2 = (Agsym_t *) 0 ;
2464 zval args[2];
2465 char *result = 0 ;
2466
2467 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2468 WRONG_PARAM_COUNT;
2469 }
2470
2471
2472 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
2473 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of getv");
2474 return;
2475 }
2476
2477
2478 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
2479 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of getv");
2480 return;
2481 }
2482
2483 result = (char *)getv(arg1,arg2);
2484
2485 if (!result) {
2486 RETVAL_NULL();
2487 } else {
2488 RETVAL_STRING((const char *)result);
2489 }
2490
2491fail:
2492 return;
2493}
2494
2495
2497 Agedge_t *arg1 = (Agedge_t *) 0 ;
2498 Agsym_t *arg2 = (Agsym_t *) 0 ;
2499 zval args[2];
2500 char *result = 0 ;
2501
2502 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2503 WRONG_PARAM_COUNT;
2504 }
2505
2506
2507 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
2508 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of getv");
2509 return;
2510 }
2511
2512
2513 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
2514 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of getv");
2515 return;
2516 }
2517
2518 result = (char *)getv(arg1,arg2);
2519
2520 if (!result) {
2521 RETVAL_NULL();
2522 } else {
2523 RETVAL_STRING((const char *)result);
2524 }
2525
2526fail:
2527 return;
2528}
2529
2530
2532 int argc;
2533 zval argv[2];
2534
2535 argc = ZEND_NUM_ARGS();
2536 zend_get_parameters_array_ex(argc, argv);
2537 if (argc == 2) {
2538 int _v = 0;
2539 {
2540 void *tmp;
2541 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
2542 }
2543 if (_v) {
2544 {
2545 void *tmp;
2546 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2547 }
2548 if (_v) {
2549 _wrap_getv__SWIG_3(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2550 }
2551 }
2552 }
2553 if (argc == 2) {
2554 int _v = 0;
2555 {
2556 void *tmp;
2557 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
2558 }
2559 if (_v) {
2560 {
2561 void *tmp;
2562 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2563 }
2564 if (_v) {
2565 _wrap_getv__SWIG_4(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2566 }
2567 }
2568 }
2569 if (argc == 2) {
2570 int _v = 0;
2571 {
2572 void *tmp;
2573 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
2574 }
2575 if (_v) {
2576 {
2577 void *tmp;
2578 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2579 }
2580 if (_v) {
2581 _wrap_getv__SWIG_5(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2582 }
2583 }
2584 }
2585 if (argc == 2) {
2586 int _v = 0;
2587 {
2588 void *tmp;
2589 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
2590 }
2591 if (_v) {
2592 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2593 if (_v) {
2594 _wrap_getv__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2595 }
2596 }
2597 }
2598 if (argc == 2) {
2599 int _v = 0;
2600 {
2601 void *tmp;
2602 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
2603 }
2604 if (_v) {
2605 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2606 if (_v) {
2607 _wrap_getv__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2608 }
2609 }
2610 }
2611 if (argc == 2) {
2612 int _v = 0;
2613 {
2614 void *tmp;
2615 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
2616 }
2617 if (_v) {
2618 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2619 if (_v) {
2620 _wrap_getv__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2621 }
2622 }
2623 }
2624
2625 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'getv'", 0);
2626fail:
2627 return;
2628}
2629
2630
2632 Agraph_t *arg1 = (Agraph_t *) 0 ;
2633 zval args[1];
2634 char *result = 0 ;
2635
2636 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
2637 WRONG_PARAM_COUNT;
2638 }
2639
2640
2641 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2642 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nameof");
2643 return;
2644 }
2645
2646 result = (char *)nameof(arg1);
2647
2648 if (!result) {
2649 RETVAL_NULL();
2650 } else {
2651 RETVAL_STRING((const char *)result);
2652 }
2653
2654fail:
2655 return;
2656}
2657
2658
2660 Agnode_t *arg1 = (Agnode_t *) 0 ;
2661 zval args[1];
2662 char *result = 0 ;
2663
2664 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
2665 WRONG_PARAM_COUNT;
2666 }
2667
2668
2669 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
2670 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nameof");
2671 return;
2672 }
2673
2674 result = (char *)nameof(arg1);
2675
2676 if (!result) {
2677 RETVAL_NULL();
2678 } else {
2679 RETVAL_STRING((const char *)result);
2680 }
2681
2682fail:
2683 return;
2684}
2685
2686
2688 Agsym_t *arg1 = (Agsym_t *) 0 ;
2689 zval args[1];
2690 char *result = 0 ;
2691
2692 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
2693 WRONG_PARAM_COUNT;
2694 }
2695
2696
2697 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agsym_t, 0) < 0) {
2698 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 1 of nameof");
2699 return;
2700 }
2701
2702 result = (char *)nameof(arg1);
2703
2704 if (!result) {
2705 RETVAL_NULL();
2706 } else {
2707 RETVAL_STRING((const char *)result);
2708 }
2709
2710fail:
2711 return;
2712}
2713
2714
2716 int argc;
2717 zval argv[1];
2718
2719 argc = ZEND_NUM_ARGS();
2720 zend_get_parameters_array_ex(argc, argv);
2721 if (argc == 1) {
2722 int _v = 0;
2723 {
2724 void *tmp;
2725 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
2726 }
2727 if (_v) {
2728 _wrap_nameof__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2729 }
2730 }
2731 if (argc == 1) {
2732 int _v = 0;
2733 {
2734 void *tmp;
2735 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
2736 }
2737 if (_v) {
2738 _wrap_nameof__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2739 }
2740 }
2741 if (argc == 1) {
2742 int _v = 0;
2743 {
2744 void *tmp;
2745 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
2746 }
2747 if (_v) {
2748 _wrap_nameof__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2749 }
2750 }
2751
2752 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'nameof'", 0);
2753fail:
2754 return;
2755}
2756
2757
2759 PHP_FN(findsubg)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
2760}
2761
2763 Agraph_t *arg1 = (Agraph_t *) 0 ;
2764 char *arg2 = (char *) 0 ;
2765 zval args[2];
2766 Agraph_t *result = 0 ;
2767
2768 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2769 WRONG_PARAM_COUNT;
2770 }
2771
2772
2773 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2774 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of findsubg");
2775 return;
2776 }
2777
2778
2779 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2780 if (Z_ISNULL(args[1])) {
2781 arg2 = (char *) 0;
2782 } else {
2783 convert_to_string(&args[1]);
2784 arg2 = (char *) Z_STRVAL(args[1]);
2785 }
2786 /*@SWIG@*/;
2787
2788 result = (Agraph_t *)findsubg(arg1,arg2);
2789
2790 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
2791
2792fail:
2793 return;
2794}
2795
2796
2798 PHP_FN(findnode)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
2799}
2800
2802 Agraph_t *arg1 = (Agraph_t *) 0 ;
2803 char *arg2 = (char *) 0 ;
2804 zval args[2];
2805 Agnode_t *result = 0 ;
2806
2807 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2808 WRONG_PARAM_COUNT;
2809 }
2810
2811
2812 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2813 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of findnode");
2814 return;
2815 }
2816
2817
2818 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2819 if (Z_ISNULL(args[1])) {
2820 arg2 = (char *) 0;
2821 } else {
2822 convert_to_string(&args[1]);
2823 arg2 = (char *) Z_STRVAL(args[1]);
2824 }
2825 /*@SWIG@*/;
2826
2827 result = (Agnode_t *)findnode(arg1,arg2);
2828
2829 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
2830
2831fail:
2832 return;
2833}
2834
2835
2837 PHP_FN(findedge)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
2838}
2839
2841 Agnode_t *arg1 = (Agnode_t *) 0 ;
2842 Agnode_t *arg2 = (Agnode_t *) 0 ;
2843 zval args[2];
2844 Agedge_t *result = 0 ;
2845
2846 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2847 WRONG_PARAM_COUNT;
2848 }
2849
2850
2851 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
2852 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of findedge");
2853 return;
2854 }
2855
2856
2857 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
2858 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of findedge");
2859 return;
2860 }
2861
2862 result = (Agedge_t *)findedge(arg1,arg2);
2863
2864 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
2865
2866fail:
2867 return;
2868}
2869
2870
2872 Agraph_t *arg1 = (Agraph_t *) 0 ;
2873 char *arg2 = (char *) 0 ;
2874 zval args[2];
2875 Agsym_t *result = 0 ;
2876
2877 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2878 WRONG_PARAM_COUNT;
2879 }
2880
2881
2882 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
2883 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of findattr");
2884 return;
2885 }
2886
2887
2888 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2889 if (Z_ISNULL(args[1])) {
2890 arg2 = (char *) 0;
2891 } else {
2892 convert_to_string(&args[1]);
2893 arg2 = (char *) Z_STRVAL(args[1]);
2894 }
2895 /*@SWIG@*/;
2896
2897 result = (Agsym_t *)findattr(arg1,arg2);
2898
2899 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
2900
2901fail:
2902 return;
2903}
2904
2905
2907 Agnode_t *arg1 = (Agnode_t *) 0 ;
2908 char *arg2 = (char *) 0 ;
2909 zval args[2];
2910 Agsym_t *result = 0 ;
2911
2912 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2913 WRONG_PARAM_COUNT;
2914 }
2915
2916
2917 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
2918 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of findattr");
2919 return;
2920 }
2921
2922
2923 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2924 if (Z_ISNULL(args[1])) {
2925 arg2 = (char *) 0;
2926 } else {
2927 convert_to_string(&args[1]);
2928 arg2 = (char *) Z_STRVAL(args[1]);
2929 }
2930 /*@SWIG@*/;
2931
2932 result = (Agsym_t *)findattr(arg1,arg2);
2933
2934 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
2935
2936fail:
2937 return;
2938}
2939
2940
2942 Agedge_t *arg1 = (Agedge_t *) 0 ;
2943 char *arg2 = (char *) 0 ;
2944 zval args[2];
2945 Agsym_t *result = 0 ;
2946
2947 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
2948 WRONG_PARAM_COUNT;
2949 }
2950
2951
2952 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
2953 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of findattr");
2954 return;
2955 }
2956
2957
2958 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
2959 if (Z_ISNULL(args[1])) {
2960 arg2 = (char *) 0;
2961 } else {
2962 convert_to_string(&args[1]);
2963 arg2 = (char *) Z_STRVAL(args[1]);
2964 }
2965 /*@SWIG@*/;
2966
2967 result = (Agsym_t *)findattr(arg1,arg2);
2968
2969 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
2970
2971fail:
2972 return;
2973}
2974
2975
2977 int argc;
2978 zval argv[2];
2979
2980 argc = ZEND_NUM_ARGS();
2981 zend_get_parameters_array_ex(argc, argv);
2982 if (argc == 2) {
2983 int _v = 0;
2984 {
2985 void *tmp;
2986 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
2987 }
2988 if (_v) {
2989 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
2990 if (_v) {
2991 _wrap_findattr__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
2992 }
2993 }
2994 }
2995 if (argc == 2) {
2996 int _v = 0;
2997 {
2998 void *tmp;
2999 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3000 }
3001 if (_v) {
3002 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
3003 if (_v) {
3004 _wrap_findattr__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3005 }
3006 }
3007 }
3008 if (argc == 2) {
3009 int _v = 0;
3010 {
3011 void *tmp;
3012 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3013 }
3014 if (_v) {
3015 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
3016 if (_v) {
3017 _wrap_findattr__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3018 }
3019 }
3020 }
3021
3022 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'findattr'", 0);
3023fail:
3024 return;
3025}
3026
3027
3028static PHP_METHOD(gv,headof) {
3029 PHP_FN(headof)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3030}
3031
3033 Agedge_t *arg1 = (Agedge_t *) 0 ;
3034 zval args[1];
3035 Agnode_t *result = 0 ;
3036
3037 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3038 WRONG_PARAM_COUNT;
3039 }
3040
3041
3042 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
3043 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of headof");
3044 return;
3045 }
3046
3047 result = (Agnode_t *)headof(arg1);
3048
3049 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
3050
3051fail:
3052 return;
3053}
3054
3055
3056static PHP_METHOD(gv,tailof) {
3057 PHP_FN(tailof)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3058}
3059
3061 Agedge_t *arg1 = (Agedge_t *) 0 ;
3062 zval args[1];
3063 Agnode_t *result = 0 ;
3064
3065 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3066 WRONG_PARAM_COUNT;
3067 }
3068
3069
3070 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
3071 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of tailof");
3072 return;
3073 }
3074
3075 result = (Agnode_t *)tailof(arg1);
3076
3077 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
3078
3079fail:
3080 return;
3081}
3082
3083
3085 Agraph_t *arg1 = (Agraph_t *) 0 ;
3086 zval args[1];
3087 Agraph_t *result = 0 ;
3088
3089 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3090 WRONG_PARAM_COUNT;
3091 }
3092
3093
3094 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3095 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of graphof");
3096 return;
3097 }
3098
3099 result = (Agraph_t *)graphof(arg1);
3100
3101 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3102
3103fail:
3104 return;
3105}
3106
3107
3109 Agedge_t *arg1 = (Agedge_t *) 0 ;
3110 zval args[1];
3111 Agraph_t *result = 0 ;
3112
3113 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3114 WRONG_PARAM_COUNT;
3115 }
3116
3117
3118 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
3119 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of graphof");
3120 return;
3121 }
3122
3123 result = (Agraph_t *)graphof(arg1);
3124
3125 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3126
3127fail:
3128 return;
3129}
3130
3131
3133 Agnode_t *arg1 = (Agnode_t *) 0 ;
3134 zval args[1];
3135 Agraph_t *result = 0 ;
3136
3137 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3138 WRONG_PARAM_COUNT;
3139 }
3140
3141
3142 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3143 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of graphof");
3144 return;
3145 }
3146
3147 result = (Agraph_t *)graphof(arg1);
3148
3149 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3150
3151fail:
3152 return;
3153}
3154
3155
3157 int argc;
3158 zval argv[1];
3159
3160 argc = ZEND_NUM_ARGS();
3161 zend_get_parameters_array_ex(argc, argv);
3162 if (argc == 1) {
3163 int _v = 0;
3164 {
3165 void *tmp;
3166 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
3167 }
3168 if (_v) {
3169 _wrap_graphof__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3170 }
3171 }
3172 if (argc == 1) {
3173 int _v = 0;
3174 {
3175 void *tmp;
3176 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3177 }
3178 if (_v) {
3179 _wrap_graphof__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3180 }
3181 }
3182 if (argc == 1) {
3183 int _v = 0;
3184 {
3185 void *tmp;
3186 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3187 }
3188 if (_v) {
3189 _wrap_graphof__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3190 }
3191 }
3192
3193 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'graphof'", 0);
3194fail:
3195 return;
3196}
3197
3198
3199static PHP_METHOD(gv,rootof) {
3200 PHP_FN(rootof)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3201}
3202
3204 Agraph_t *arg1 = (Agraph_t *) 0 ;
3205 zval args[1];
3206 Agraph_t *result = 0 ;
3207
3208 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3209 WRONG_PARAM_COUNT;
3210 }
3211
3212
3213 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3214 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of rootof");
3215 return;
3216 }
3217
3218 result = (Agraph_t *)rootof(arg1);
3219
3220 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3221
3222fail:
3223 return;
3224}
3225
3226
3228 PHP_FN(protonode)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3229}
3230
3232 Agraph_t *arg1 = (Agraph_t *) 0 ;
3233 zval args[1];
3234 Agnode_t *result = 0 ;
3235
3236 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3237 WRONG_PARAM_COUNT;
3238 }
3239
3240
3241 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3242 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of protonode");
3243 return;
3244 }
3245
3246 result = (Agnode_t *)protonode(arg1);
3247
3248 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
3249
3250fail:
3251 return;
3252}
3253
3254
3256 PHP_FN(protoedge)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3257}
3258
3260 Agraph_t *arg1 = (Agraph_t *) 0 ;
3261 zval args[1];
3262 Agedge_t *result = 0 ;
3263
3264 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3265 WRONG_PARAM_COUNT;
3266 }
3267
3268
3269 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3270 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of protoedge");
3271 return;
3272 }
3273
3274 result = (Agedge_t *)protoedge(arg1);
3275
3276 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3277
3278fail:
3279 return;
3280}
3281
3282
3284 Agraph_t *arg1 = (Agraph_t *) 0 ;
3285 zval args[1];
3286 bool result;
3287
3288 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3289 WRONG_PARAM_COUNT;
3290 }
3291
3292
3293 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3294 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of ok");
3295 return;
3296 }
3297
3298 result = (bool)ok(arg1);
3299
3300 RETVAL_BOOL((result) ? 1 : 0);
3301
3302fail:
3303 return;
3304}
3305
3306
3308 Agnode_t *arg1 = (Agnode_t *) 0 ;
3309 zval args[1];
3310 bool result;
3311
3312 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3313 WRONG_PARAM_COUNT;
3314 }
3315
3316
3317 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3318 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of ok");
3319 return;
3320 }
3321
3322 result = (bool)ok(arg1);
3323
3324 RETVAL_BOOL((result) ? 1 : 0);
3325
3326fail:
3327 return;
3328}
3329
3330
3332 Agedge_t *arg1 = (Agedge_t *) 0 ;
3333 zval args[1];
3334 bool result;
3335
3336 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3337 WRONG_PARAM_COUNT;
3338 }
3339
3340
3341 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
3342 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of ok");
3343 return;
3344 }
3345
3346 result = (bool)ok(arg1);
3347
3348 RETVAL_BOOL((result) ? 1 : 0);
3349
3350fail:
3351 return;
3352}
3353
3354
3356 Agsym_t *arg1 = (Agsym_t *) 0 ;
3357 zval args[1];
3358 bool result;
3359
3360 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3361 WRONG_PARAM_COUNT;
3362 }
3363
3364
3365 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agsym_t, 0) < 0) {
3366 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 1 of ok");
3367 return;
3368 }
3369
3370 result = (bool)ok(arg1);
3371
3372 RETVAL_BOOL((result) ? 1 : 0);
3373
3374fail:
3375 return;
3376}
3377
3378
3380 int argc;
3381 zval argv[1];
3382
3383 argc = ZEND_NUM_ARGS();
3384 zend_get_parameters_array_ex(argc, argv);
3385 if (argc == 1) {
3386 int _v = 0;
3387 {
3388 void *tmp;
3389 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
3390 }
3391 if (_v) {
3392 _wrap_ok__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3393 }
3394 }
3395 if (argc == 1) {
3396 int _v = 0;
3397 {
3398 void *tmp;
3399 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3400 }
3401 if (_v) {
3402 _wrap_ok__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3403 }
3404 }
3405 if (argc == 1) {
3406 int _v = 0;
3407 {
3408 void *tmp;
3409 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3410 }
3411 if (_v) {
3412 _wrap_ok__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3413 }
3414 }
3415 if (argc == 1) {
3416 int _v = 0;
3417 {
3418 void *tmp;
3419 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
3420 }
3421 if (_v) {
3422 _wrap_ok__SWIG_3(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3423 }
3424 }
3425
3426 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'ok'", 0);
3427fail:
3428 return;
3429}
3430
3431
3433 PHP_FN(firstsubg)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3434}
3435
3437 Agraph_t *arg1 = (Agraph_t *) 0 ;
3438 zval args[1];
3439 Agraph_t *result = 0 ;
3440
3441 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3442 WRONG_PARAM_COUNT;
3443 }
3444
3445
3446 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3447 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstsubg");
3448 return;
3449 }
3450
3451 result = (Agraph_t *)firstsubg(arg1);
3452
3453 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3454
3455fail:
3456 return;
3457}
3458
3459
3461 PHP_FN(nextsubg)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3462}
3463
3465 Agraph_t *arg1 = (Agraph_t *) 0 ;
3466 Agraph_t *arg2 = (Agraph_t *) 0 ;
3467 zval args[2];
3468 Agraph_t *result = 0 ;
3469
3470 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3471 WRONG_PARAM_COUNT;
3472 }
3473
3474
3475 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3476 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextsubg");
3477 return;
3478 }
3479
3480
3481 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agraph_t, 0) < 0) {
3482 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 2 of nextsubg");
3483 return;
3484 }
3485
3486 result = (Agraph_t *)nextsubg(arg1,arg2);
3487
3488 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3489
3490fail:
3491 return;
3492}
3493
3494
3496 PHP_FN(firstsupg)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3497}
3498
3500 Agraph_t *arg1 = (Agraph_t *) 0 ;
3501 zval args[1];
3502 Agraph_t *result = 0 ;
3503
3504 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3505 WRONG_PARAM_COUNT;
3506 }
3507
3508
3509 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3510 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstsupg");
3511 return;
3512 }
3513
3514 result = (Agraph_t *)firstsupg(arg1);
3515
3516 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3517
3518fail:
3519 return;
3520}
3521
3522
3524 PHP_FN(nextsupg)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3525}
3526
3528 Agraph_t *arg1 = (Agraph_t *) 0 ;
3529 Agraph_t *arg2 = (Agraph_t *) 0 ;
3530 zval args[2];
3531 Agraph_t *result = 0 ;
3532
3533 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3534 WRONG_PARAM_COUNT;
3535 }
3536
3537
3538 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3539 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextsupg");
3540 return;
3541 }
3542
3543
3544 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agraph_t, 0) < 0) {
3545 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 2 of nextsupg");
3546 return;
3547 }
3548
3549 result = (Agraph_t *)nextsupg(arg1,arg2);
3550
3551 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agraph_t, 0);
3552
3553fail:
3554 return;
3555}
3556
3557
3559 Agraph_t *arg1 = (Agraph_t *) 0 ;
3560 zval args[1];
3561 Agedge_t *result = 0 ;
3562
3563 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3564 WRONG_PARAM_COUNT;
3565 }
3566
3567
3568 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3569 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstedge");
3570 return;
3571 }
3572
3573 result = (Agedge_t *)firstedge(arg1);
3574
3575 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3576
3577fail:
3578 return;
3579}
3580
3581
3583 Agraph_t *arg1 = (Agraph_t *) 0 ;
3584 Agedge_t *arg2 = (Agedge_t *) 0 ;
3585 zval args[2];
3586 Agedge_t *result = 0 ;
3587
3588 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3589 WRONG_PARAM_COUNT;
3590 }
3591
3592
3593 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3594 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextedge");
3595 return;
3596 }
3597
3598
3599 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agedge_t, 0) < 0) {
3600 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 2 of nextedge");
3601 return;
3602 }
3603
3604 result = (Agedge_t *)nextedge(arg1,arg2);
3605
3606 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3607
3608fail:
3609 return;
3610}
3611
3612
3614 Agraph_t *arg1 = (Agraph_t *) 0 ;
3615 zval args[1];
3616 Agedge_t *result = 0 ;
3617
3618 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3619 WRONG_PARAM_COUNT;
3620 }
3621
3622
3623 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3624 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstout");
3625 return;
3626 }
3627
3628 result = (Agedge_t *)firstout(arg1);
3629
3630 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3631
3632fail:
3633 return;
3634}
3635
3636
3638 Agraph_t *arg1 = (Agraph_t *) 0 ;
3639 Agedge_t *arg2 = (Agedge_t *) 0 ;
3640 zval args[2];
3641 Agedge_t *result = 0 ;
3642
3643 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3644 WRONG_PARAM_COUNT;
3645 }
3646
3647
3648 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
3649 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextout");
3650 return;
3651 }
3652
3653
3654 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agedge_t, 0) < 0) {
3655 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 2 of nextout");
3656 return;
3657 }
3658
3659 result = (Agedge_t *)nextout(arg1,arg2);
3660
3661 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3662
3663fail:
3664 return;
3665}
3666
3667
3669 Agnode_t *arg1 = (Agnode_t *) 0 ;
3670 zval args[1];
3671 Agedge_t *result = 0 ;
3672
3673 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3674 WRONG_PARAM_COUNT;
3675 }
3676
3677
3678 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3679 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of firstedge");
3680 return;
3681 }
3682
3683 result = (Agedge_t *)firstedge(arg1);
3684
3685 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3686
3687fail:
3688 return;
3689}
3690
3691
3693 int argc;
3694 zval argv[1];
3695
3696 argc = ZEND_NUM_ARGS();
3697 zend_get_parameters_array_ex(argc, argv);
3698 if (argc == 1) {
3699 int _v = 0;
3700 {
3701 void *tmp;
3702 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
3703 }
3704 if (_v) {
3705 _wrap_firstedge__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3706 }
3707 }
3708 if (argc == 1) {
3709 int _v = 0;
3710 {
3711 void *tmp;
3712 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3713 }
3714 if (_v) {
3715 _wrap_firstedge__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3716 }
3717 }
3718
3719 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'firstedge'", 0);
3720fail:
3721 return;
3722}
3723
3724
3726 Agnode_t *arg1 = (Agnode_t *) 0 ;
3727 Agedge_t *arg2 = (Agedge_t *) 0 ;
3728 zval args[2];
3729 Agedge_t *result = 0 ;
3730
3731 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3732 WRONG_PARAM_COUNT;
3733 }
3734
3735
3736 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3737 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nextedge");
3738 return;
3739 }
3740
3741
3742 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agedge_t, 0) < 0) {
3743 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 2 of nextedge");
3744 return;
3745 }
3746
3747 result = (Agedge_t *)nextedge(arg1,arg2);
3748
3749 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3750
3751fail:
3752 return;
3753}
3754
3755
3757 int argc;
3758 zval argv[2];
3759
3760 argc = ZEND_NUM_ARGS();
3761 zend_get_parameters_array_ex(argc, argv);
3762 if (argc == 2) {
3763 int _v = 0;
3764 {
3765 void *tmp;
3766 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
3767 }
3768 if (_v) {
3769 {
3770 void *tmp;
3771 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3772 }
3773 if (_v) {
3774 _wrap_nextedge__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3775 }
3776 }
3777 }
3778 if (argc == 2) {
3779 int _v = 0;
3780 {
3781 void *tmp;
3782 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3783 }
3784 if (_v) {
3785 {
3786 void *tmp;
3787 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3788 }
3789 if (_v) {
3790 _wrap_nextedge__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3791 }
3792 }
3793 }
3794
3795 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'nextedge'", 0);
3796fail:
3797 return;
3798}
3799
3800
3802 Agnode_t *arg1 = (Agnode_t *) 0 ;
3803 zval args[1];
3804 Agedge_t *result = 0 ;
3805
3806 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3807 WRONG_PARAM_COUNT;
3808 }
3809
3810
3811 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3812 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of firstout");
3813 return;
3814 }
3815
3816 result = (Agedge_t *)firstout(arg1);
3817
3818 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3819
3820fail:
3821 return;
3822}
3823
3824
3826 int argc;
3827 zval argv[1];
3828
3829 argc = ZEND_NUM_ARGS();
3830 zend_get_parameters_array_ex(argc, argv);
3831 if (argc == 1) {
3832 int _v = 0;
3833 {
3834 void *tmp;
3835 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
3836 }
3837 if (_v) {
3838 _wrap_firstout__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3839 }
3840 }
3841 if (argc == 1) {
3842 int _v = 0;
3843 {
3844 void *tmp;
3845 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3846 }
3847 if (_v) {
3848 _wrap_firstout__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3849 }
3850 }
3851
3852 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'firstout'", 0);
3853fail:
3854 return;
3855}
3856
3857
3859 Agnode_t *arg1 = (Agnode_t *) 0 ;
3860 Agedge_t *arg2 = (Agedge_t *) 0 ;
3861 zval args[2];
3862 Agedge_t *result = 0 ;
3863
3864 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3865 WRONG_PARAM_COUNT;
3866 }
3867
3868
3869 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3870 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nextout");
3871 return;
3872 }
3873
3874
3875 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agedge_t, 0) < 0) {
3876 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 2 of nextout");
3877 return;
3878 }
3879
3880 result = (Agedge_t *)nextout(arg1,arg2);
3881
3882 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
3883
3884fail:
3885 return;
3886}
3887
3888
3890 int argc;
3891 zval argv[2];
3892
3893 argc = ZEND_NUM_ARGS();
3894 zend_get_parameters_array_ex(argc, argv);
3895 if (argc == 2) {
3896 int _v = 0;
3897 {
3898 void *tmp;
3899 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
3900 }
3901 if (_v) {
3902 {
3903 void *tmp;
3904 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3905 }
3906 if (_v) {
3907 _wrap_nextout__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3908 }
3909 }
3910 }
3911 if (argc == 2) {
3912 int _v = 0;
3913 {
3914 void *tmp;
3915 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
3916 }
3917 if (_v) {
3918 {
3919 void *tmp;
3920 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
3921 }
3922 if (_v) {
3923 _wrap_nextout__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
3924 }
3925 }
3926 }
3927
3928 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'nextout'", 0);
3929fail:
3930 return;
3931}
3932
3933
3935 PHP_FN(firsthead)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3936}
3937
3939 Agnode_t *arg1 = (Agnode_t *) 0 ;
3940 zval args[1];
3941 Agnode_t *result = 0 ;
3942
3943 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
3944 WRONG_PARAM_COUNT;
3945 }
3946
3947
3948 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3949 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of firsthead");
3950 return;
3951 }
3952
3953 result = (Agnode_t *)firsthead(arg1);
3954
3955 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
3956
3957fail:
3958 return;
3959}
3960
3961
3963 PHP_FN(nexthead)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
3964}
3965
3967 Agnode_t *arg1 = (Agnode_t *) 0 ;
3968 Agnode_t *arg2 = (Agnode_t *) 0 ;
3969 zval args[2];
3970 Agnode_t *result = 0 ;
3971
3972 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
3973 WRONG_PARAM_COUNT;
3974 }
3975
3976
3977 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
3978 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nexthead");
3979 return;
3980 }
3981
3982
3983 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
3984 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of nexthead");
3985 return;
3986 }
3987
3988 result = (Agnode_t *)nexthead(arg1,arg2);
3989
3990 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
3991
3992fail:
3993 return;
3994}
3995
3996
3998 Agraph_t *arg1 = (Agraph_t *) 0 ;
3999 zval args[1];
4000 Agedge_t *result = 0 ;
4001
4002 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4003 WRONG_PARAM_COUNT;
4004 }
4005
4006
4007 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4008 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstin");
4009 return;
4010 }
4011
4012 result = (Agedge_t *)firstin(arg1);
4013
4014 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
4015
4016fail:
4017 return;
4018}
4019
4020
4022 Agnode_t *arg1 = (Agnode_t *) 0 ;
4023 Agedge_t *arg2 = (Agedge_t *) 0 ;
4024 zval args[2];
4025 Agedge_t *result = 0 ;
4026
4027 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4028 WRONG_PARAM_COUNT;
4029 }
4030
4031
4032 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4033 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nextin");
4034 return;
4035 }
4036
4037
4038 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agedge_t, 0) < 0) {
4039 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 2 of nextin");
4040 return;
4041 }
4042
4043 result = (Agedge_t *)nextin(arg1,arg2);
4044
4045 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
4046
4047fail:
4048 return;
4049}
4050
4051
4053 Agnode_t *arg1 = (Agnode_t *) 0 ;
4054 zval args[1];
4055 Agedge_t *result = 0 ;
4056
4057 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4058 WRONG_PARAM_COUNT;
4059 }
4060
4061
4062 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4063 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of firstin");
4064 return;
4065 }
4066
4067 result = (Agedge_t *)firstin(arg1);
4068
4069 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
4070
4071fail:
4072 return;
4073}
4074
4075
4077 int argc;
4078 zval argv[1];
4079
4080 argc = ZEND_NUM_ARGS();
4081 zend_get_parameters_array_ex(argc, argv);
4082 if (argc == 1) {
4083 int _v = 0;
4084 {
4085 void *tmp;
4086 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4087 }
4088 if (_v) {
4089 _wrap_firstin__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4090 }
4091 }
4092 if (argc == 1) {
4093 int _v = 0;
4094 {
4095 void *tmp;
4096 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4097 }
4098 if (_v) {
4099 _wrap_firstin__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4100 }
4101 }
4102
4103 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'firstin'", 0);
4104fail:
4105 return;
4106}
4107
4108
4110 Agraph_t *arg1 = (Agraph_t *) 0 ;
4111 Agedge_t *arg2 = (Agedge_t *) 0 ;
4112 zval args[2];
4113 Agedge_t *result = 0 ;
4114
4115 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4116 WRONG_PARAM_COUNT;
4117 }
4118
4119
4120 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4121 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextin");
4122 return;
4123 }
4124
4125
4126 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agedge_t, 0) < 0) {
4127 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 2 of nextin");
4128 return;
4129 }
4130
4131 result = (Agedge_t *)nextin(arg1,arg2);
4132
4133 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agedge_t, 0);
4134
4135fail:
4136 return;
4137}
4138
4139
4141 int argc;
4142 zval argv[2];
4143
4144 argc = ZEND_NUM_ARGS();
4145 zend_get_parameters_array_ex(argc, argv);
4146 if (argc == 2) {
4147 int _v = 0;
4148 {
4149 void *tmp;
4150 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4151 }
4152 if (_v) {
4153 {
4154 void *tmp;
4155 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4156 }
4157 if (_v) {
4158 _wrap_nextin__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4159 }
4160 }
4161 }
4162 if (argc == 2) {
4163 int _v = 0;
4164 {
4165 void *tmp;
4166 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4167 }
4168 if (_v) {
4169 {
4170 void *tmp;
4171 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4172 }
4173 if (_v) {
4174 _wrap_nextin__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4175 }
4176 }
4177 }
4178
4179 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'nextin'", 0);
4180fail:
4181 return;
4182}
4183
4184
4186 PHP_FN(firsttail)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
4187}
4188
4190 Agnode_t *arg1 = (Agnode_t *) 0 ;
4191 zval args[1];
4192 Agnode_t *result = 0 ;
4193
4194 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4195 WRONG_PARAM_COUNT;
4196 }
4197
4198
4199 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4200 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of firsttail");
4201 return;
4202 }
4203
4204 result = (Agnode_t *)firsttail(arg1);
4205
4206 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
4207
4208fail:
4209 return;
4210}
4211
4212
4214 PHP_FN(nexttail)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
4215}
4216
4218 Agnode_t *arg1 = (Agnode_t *) 0 ;
4219 Agnode_t *arg2 = (Agnode_t *) 0 ;
4220 zval args[2];
4221 Agnode_t *result = 0 ;
4222
4223 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4224 WRONG_PARAM_COUNT;
4225 }
4226
4227
4228 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4229 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nexttail");
4230 return;
4231 }
4232
4233
4234 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
4235 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of nexttail");
4236 return;
4237 }
4238
4239 result = (Agnode_t *)nexttail(arg1,arg2);
4240
4241 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
4242
4243fail:
4244 return;
4245}
4246
4247
4249 Agraph_t *arg1 = (Agraph_t *) 0 ;
4250 zval args[1];
4251 Agnode_t *result = 0 ;
4252
4253 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4254 WRONG_PARAM_COUNT;
4255 }
4256
4257
4258 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4259 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstnode");
4260 return;
4261 }
4262
4263 result = (Agnode_t *)firstnode(arg1);
4264
4265 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
4266
4267fail:
4268 return;
4269}
4270
4271
4273 Agraph_t *arg1 = (Agraph_t *) 0 ;
4274 Agnode_t *arg2 = (Agnode_t *) 0 ;
4275 zval args[2];
4276 Agnode_t *result = 0 ;
4277
4278 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4279 WRONG_PARAM_COUNT;
4280 }
4281
4282
4283 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4284 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextnode");
4285 return;
4286 }
4287
4288
4289 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
4290 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of nextnode");
4291 return;
4292 }
4293
4294 result = (Agnode_t *)nextnode(arg1,arg2);
4295
4296 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
4297
4298fail:
4299 return;
4300}
4301
4302
4304 Agedge_t *arg1 = (Agedge_t *) 0 ;
4305 zval args[1];
4306 Agnode_t *result = 0 ;
4307
4308 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4309 WRONG_PARAM_COUNT;
4310 }
4311
4312
4313 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
4314 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of firstnode");
4315 return;
4316 }
4317
4318 result = (Agnode_t *)firstnode(arg1);
4319
4320 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
4321
4322fail:
4323 return;
4324}
4325
4326
4328 int argc;
4329 zval argv[1];
4330
4331 argc = ZEND_NUM_ARGS();
4332 zend_get_parameters_array_ex(argc, argv);
4333 if (argc == 1) {
4334 int _v = 0;
4335 {
4336 void *tmp;
4337 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4338 }
4339 if (_v) {
4340 _wrap_firstnode__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4341 }
4342 }
4343 if (argc == 1) {
4344 int _v = 0;
4345 {
4346 void *tmp;
4347 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4348 }
4349 if (_v) {
4350 _wrap_firstnode__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4351 }
4352 }
4353
4354 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'firstnode'", 0);
4355fail:
4356 return;
4357}
4358
4359
4361 Agedge_t *arg1 = (Agedge_t *) 0 ;
4362 Agnode_t *arg2 = (Agnode_t *) 0 ;
4363 zval args[2];
4364 Agnode_t *result = 0 ;
4365
4366 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4367 WRONG_PARAM_COUNT;
4368 }
4369
4370
4371 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
4372 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of nextnode");
4373 return;
4374 }
4375
4376
4377 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agnode_t, 0) < 0) {
4378 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 2 of nextnode");
4379 return;
4380 }
4381
4382 result = (Agnode_t *)nextnode(arg1,arg2);
4383
4384 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agnode_t, 0);
4385
4386fail:
4387 return;
4388}
4389
4390
4392 int argc;
4393 zval argv[2];
4394
4395 argc = ZEND_NUM_ARGS();
4396 zend_get_parameters_array_ex(argc, argv);
4397 if (argc == 2) {
4398 int _v = 0;
4399 {
4400 void *tmp;
4401 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4402 }
4403 if (_v) {
4404 {
4405 void *tmp;
4406 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4407 }
4408 if (_v) {
4409 _wrap_nextnode__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4410 }
4411 }
4412 }
4413 if (argc == 2) {
4414 int _v = 0;
4415 {
4416 void *tmp;
4417 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4418 }
4419 if (_v) {
4420 {
4421 void *tmp;
4422 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4423 }
4424 if (_v) {
4425 _wrap_nextnode__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4426 }
4427 }
4428 }
4429
4430 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'nextnode'", 0);
4431fail:
4432 return;
4433}
4434
4435
4437 Agraph_t *arg1 = (Agraph_t *) 0 ;
4438 zval args[1];
4439 Agsym_t *result = 0 ;
4440
4441 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4442 WRONG_PARAM_COUNT;
4443 }
4444
4445
4446 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4447 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of firstattr");
4448 return;
4449 }
4450
4451 result = (Agsym_t *)firstattr(arg1);
4452
4453 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
4454
4455fail:
4456 return;
4457}
4458
4459
4461 Agraph_t *arg1 = (Agraph_t *) 0 ;
4462 Agsym_t *arg2 = (Agsym_t *) 0 ;
4463 zval args[2];
4464 Agsym_t *result = 0 ;
4465
4466 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4467 WRONG_PARAM_COUNT;
4468 }
4469
4470
4471 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4472 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of nextattr");
4473 return;
4474 }
4475
4476
4477 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
4478 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of nextattr");
4479 return;
4480 }
4481
4482 result = (Agsym_t *)nextattr(arg1,arg2);
4483
4484 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
4485
4486fail:
4487 return;
4488}
4489
4490
4492 Agedge_t *arg1 = (Agedge_t *) 0 ;
4493 zval args[1];
4494 Agsym_t *result = 0 ;
4495
4496 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4497 WRONG_PARAM_COUNT;
4498 }
4499
4500
4501 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
4502 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of firstattr");
4503 return;
4504 }
4505
4506 result = (Agsym_t *)firstattr(arg1);
4507
4508 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
4509
4510fail:
4511 return;
4512}
4513
4514
4516 Agedge_t *arg1 = (Agedge_t *) 0 ;
4517 Agsym_t *arg2 = (Agsym_t *) 0 ;
4518 zval args[2];
4519 Agsym_t *result = 0 ;
4520
4521 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4522 WRONG_PARAM_COUNT;
4523 }
4524
4525
4526 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
4527 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of nextattr");
4528 return;
4529 }
4530
4531
4532 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
4533 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of nextattr");
4534 return;
4535 }
4536
4537 result = (Agsym_t *)nextattr(arg1,arg2);
4538
4539 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
4540
4541fail:
4542 return;
4543}
4544
4545
4547 Agnode_t *arg1 = (Agnode_t *) 0 ;
4548 zval args[1];
4549 Agsym_t *result = 0 ;
4550
4551 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4552 WRONG_PARAM_COUNT;
4553 }
4554
4555
4556 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4557 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of firstattr");
4558 return;
4559 }
4560
4561 result = (Agsym_t *)firstattr(arg1);
4562
4563 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
4564
4565fail:
4566 return;
4567}
4568
4569
4571 int argc;
4572 zval argv[1];
4573
4574 argc = ZEND_NUM_ARGS();
4575 zend_get_parameters_array_ex(argc, argv);
4576 if (argc == 1) {
4577 int _v = 0;
4578 {
4579 void *tmp;
4580 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4581 }
4582 if (_v) {
4583 _wrap_firstattr__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4584 }
4585 }
4586 if (argc == 1) {
4587 int _v = 0;
4588 {
4589 void *tmp;
4590 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4591 }
4592 if (_v) {
4593 _wrap_firstattr__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4594 }
4595 }
4596 if (argc == 1) {
4597 int _v = 0;
4598 {
4599 void *tmp;
4600 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4601 }
4602 if (_v) {
4603 _wrap_firstattr__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4604 }
4605 }
4606
4607 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'firstattr'", 0);
4608fail:
4609 return;
4610}
4611
4612
4614 Agnode_t *arg1 = (Agnode_t *) 0 ;
4615 Agsym_t *arg2 = (Agsym_t *) 0 ;
4616 zval args[2];
4617 Agsym_t *result = 0 ;
4618
4619 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4620 WRONG_PARAM_COUNT;
4621 }
4622
4623
4624 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4625 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of nextattr");
4626 return;
4627 }
4628
4629
4630 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_Agsym_t, 0) < 0) {
4631 zend_type_error("Expected SWIGTYPE_p_Agsym_t for argument 2 of nextattr");
4632 return;
4633 }
4634
4635 result = (Agsym_t *)nextattr(arg1,arg2);
4636
4637 SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Agsym_t, 0);
4638
4639fail:
4640 return;
4641}
4642
4643
4645 int argc;
4646 zval argv[2];
4647
4648 argc = ZEND_NUM_ARGS();
4649 zend_get_parameters_array_ex(argc, argv);
4650 if (argc == 2) {
4651 int _v = 0;
4652 {
4653 void *tmp;
4654 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4655 }
4656 if (_v) {
4657 {
4658 void *tmp;
4659 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
4660 }
4661 if (_v) {
4662 _wrap_nextattr__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4663 }
4664 }
4665 }
4666 if (argc == 2) {
4667 int _v = 0;
4668 {
4669 void *tmp;
4670 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4671 }
4672 if (_v) {
4673 {
4674 void *tmp;
4675 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
4676 }
4677 if (_v) {
4678 _wrap_nextattr__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4679 }
4680 }
4681 }
4682 if (argc == 2) {
4683 int _v = 0;
4684 {
4685 void *tmp;
4686 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4687 }
4688 if (_v) {
4689 {
4690 void *tmp;
4691 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_Agsym_t, 0) >= 0);
4692 }
4693 if (_v) {
4694 _wrap_nextattr__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4695 }
4696 }
4697 }
4698
4699 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'nextattr'", 0);
4700fail:
4701 return;
4702}
4703
4704
4706 Agraph_t *arg1 = (Agraph_t *) 0 ;
4707 zval args[1];
4708 bool result;
4709
4710 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4711 WRONG_PARAM_COUNT;
4712 }
4713
4714
4715 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4716 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of rm");
4717 return;
4718 }
4719
4720 result = (bool)rm(arg1);
4721
4722 RETVAL_BOOL((result) ? 1 : 0);
4723
4724fail:
4725 return;
4726}
4727
4728
4730 Agnode_t *arg1 = (Agnode_t *) 0 ;
4731 zval args[1];
4732 bool result;
4733
4734 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4735 WRONG_PARAM_COUNT;
4736 }
4737
4738
4739 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agnode_t, 0) < 0) {
4740 zend_type_error("Expected SWIGTYPE_p_Agnode_t for argument 1 of rm");
4741 return;
4742 }
4743
4744 result = (bool)rm(arg1);
4745
4746 RETVAL_BOOL((result) ? 1 : 0);
4747
4748fail:
4749 return;
4750}
4751
4752
4754 Agedge_t *arg1 = (Agedge_t *) 0 ;
4755 zval args[1];
4756 bool result;
4757
4758 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4759 WRONG_PARAM_COUNT;
4760 }
4761
4762
4763 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agedge_t, 0) < 0) {
4764 zend_type_error("Expected SWIGTYPE_p_Agedge_t for argument 1 of rm");
4765 return;
4766 }
4767
4768 result = (bool)rm(arg1);
4769
4770 RETVAL_BOOL((result) ? 1 : 0);
4771
4772fail:
4773 return;
4774}
4775
4776
4778 int argc;
4779 zval argv[1];
4780
4781 argc = ZEND_NUM_ARGS();
4782 zend_get_parameters_array_ex(argc, argv);
4783 if (argc == 1) {
4784 int _v = 0;
4785 {
4786 void *tmp;
4787 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
4788 }
4789 if (_v) {
4790 _wrap_rm__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4791 }
4792 }
4793 if (argc == 1) {
4794 int _v = 0;
4795 {
4796 void *tmp;
4797 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agnode_t, 0) >= 0);
4798 }
4799 if (_v) {
4800 _wrap_rm__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4801 }
4802 }
4803 if (argc == 1) {
4804 int _v = 0;
4805 {
4806 void *tmp;
4807 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agedge_t, 0) >= 0);
4808 }
4809 if (_v) {
4810 _wrap_rm__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
4811 }
4812 }
4813
4814 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'rm'", 0);
4815fail:
4816 return;
4817}
4818
4819
4820static PHP_METHOD(gv,layout) {
4821 PHP_FN(layout)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
4822}
4823
4825 Agraph_t *arg1 = (Agraph_t *) 0 ;
4826 char *arg2 = (char *) 0 ;
4827 zval args[2];
4828 bool result;
4829
4830 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4831 WRONG_PARAM_COUNT;
4832 }
4833
4834
4835 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4836 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of layout");
4837 return;
4838 }
4839
4840
4841 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
4842 if (Z_ISNULL(args[1])) {
4843 arg2 = (char *) 0;
4844 } else {
4845 convert_to_string(&args[1]);
4846 arg2 = (char *) Z_STRVAL(args[1]);
4847 }
4848 /*@SWIG@*/;
4849
4850 result = (bool)layout(arg1,(char const *)arg2);
4851
4852 RETVAL_BOOL((result) ? 1 : 0);
4853
4854fail:
4855 return;
4856}
4857
4858
4860 Agraph_t *arg1 = (Agraph_t *) 0 ;
4861 zval args[1];
4862 bool result;
4863
4864 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
4865 WRONG_PARAM_COUNT;
4866 }
4867
4868
4869 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4870 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of render");
4871 return;
4872 }
4873
4874 result = (bool)render(arg1);
4875
4876 RETVAL_BOOL((result) ? 1 : 0);
4877
4878fail:
4879 return;
4880}
4881
4882
4884 Agraph_t *arg1 = (Agraph_t *) 0 ;
4885 char *arg2 = (char *) 0 ;
4886 zval args[2];
4887 bool result;
4888
4889 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
4890 WRONG_PARAM_COUNT;
4891 }
4892
4893
4894 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4895 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of render");
4896 return;
4897 }
4898
4899
4900 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
4901 if (Z_ISNULL(args[1])) {
4902 arg2 = (char *) 0;
4903 } else {
4904 convert_to_string(&args[1]);
4905 arg2 = (char *) Z_STRVAL(args[1]);
4906 }
4907 /*@SWIG@*/;
4908
4909 result = (bool)render(arg1,(char const *)arg2);
4910
4911 RETVAL_BOOL((result) ? 1 : 0);
4912
4913fail:
4914 return;
4915}
4916
4917
4919 Agraph_t *arg1 = (Agraph_t *) 0 ;
4920 char *arg2 = (char *) 0 ;
4921 FILE *arg3 = (FILE *) 0 ;
4922 zval args[3];
4923 bool result;
4924
4925 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
4926 WRONG_PARAM_COUNT;
4927 }
4928
4929
4930 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4931 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of render");
4932 return;
4933 }
4934
4935
4936 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
4937 if (Z_ISNULL(args[1])) {
4938 arg2 = (char *) 0;
4939 } else {
4940 convert_to_string(&args[1]);
4941 arg2 = (char *) Z_STRVAL(args[1]);
4942 }
4943 /*@SWIG@*/;
4944
4945
4946 if (SWIG_ConvertPtr(&args[2], (void **) &arg3, SWIGTYPE_p_FILE, 0) < 0) {
4947 zend_type_error("Expected SWIGTYPE_p_FILE for argument 3 of render");
4948 return;
4949 }
4950
4951 result = (bool)render(arg1,(char const *)arg2,arg3);
4952
4953 RETVAL_BOOL((result) ? 1 : 0);
4954
4955fail:
4956 return;
4957}
4958
4959
4961 Agraph_t *arg1 = (Agraph_t *) 0 ;
4962 char *arg2 = (char *) 0 ;
4963 char *arg3 = (char *) 0 ;
4964 zval args[3];
4965 bool result;
4966
4967 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
4968 WRONG_PARAM_COUNT;
4969 }
4970
4971
4972 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
4973 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of render");
4974 return;
4975 }
4976
4977
4978 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
4979 if (Z_ISNULL(args[1])) {
4980 arg2 = (char *) 0;
4981 } else {
4982 convert_to_string(&args[1]);
4983 arg2 = (char *) Z_STRVAL(args[1]);
4984 }
4985 /*@SWIG@*/;
4986
4987
4988 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
4989 if (Z_ISNULL(args[2])) {
4990 arg3 = (char *) 0;
4991 } else {
4992 convert_to_string(&args[2]);
4993 arg3 = (char *) Z_STRVAL(args[2]);
4994 }
4995 /*@SWIG@*/;
4996
4997 result = (bool)render(arg1,(char const *)arg2,(char const *)arg3);
4998
4999 RETVAL_BOOL((result) ? 1 : 0);
5000
5001fail:
5002 return;
5003}
5004
5005
5007 int argc;
5008 zval argv[3];
5009
5010 argc = ZEND_NUM_ARGS();
5011 zend_get_parameters_array_ex(argc, argv);
5012 if (argc == 1) {
5013 int _v = 0;
5014 {
5015 void *tmp;
5016 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
5017 }
5018 if (_v) {
5019 _wrap_render__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
5020 }
5021 }
5022 if (argc == 2) {
5023 int _v = 0;
5024 {
5025 void *tmp;
5026 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
5027 }
5028 if (_v) {
5029 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
5030 if (_v) {
5031 _wrap_render__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
5032 }
5033 }
5034 }
5035 if (argc == 3) {
5036 int _v = 0;
5037 {
5038 void *tmp;
5039 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
5040 }
5041 if (_v) {
5042 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
5043 if (_v) {
5044 {
5045 void *tmp;
5046 _v = (SWIG_ConvertPtr(&argv[2], (void**)&tmp, SWIGTYPE_p_FILE, 0) >= 0);
5047 }
5048 if (_v) {
5049 _wrap_render__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
5050 }
5051 }
5052 }
5053 }
5054 if (argc == 3) {
5055 int _v = 0;
5056 {
5057 void *tmp;
5058 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
5059 }
5060 if (_v) {
5061 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
5062 if (_v) {
5063 _v = (Z_TYPE(argv[2]) == IS_STRING || Z_TYPE(argv[2]) == IS_NULL);
5064 if (_v) {
5065 _wrap_render__SWIG_3(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
5066 }
5067 }
5068 }
5069 }
5070
5071 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'render'", 0);
5072fail:
5073 return;
5074}
5075
5076
5078 PHP_FN(renderresult)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
5079}
5080
5082 Agraph_t *arg1 = (Agraph_t *) 0 ;
5083 char *arg2 = (char *) 0 ;
5084 char *arg3 = (char *) 0 ;
5085 zval args[3];
5086
5087 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
5088 WRONG_PARAM_COUNT;
5089 }
5090
5091
5092 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
5093 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of renderresult");
5094 return;
5095 }
5096
5097
5098 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
5099 if (Z_ISNULL(args[1])) {
5100 arg2 = (char *) 0;
5101 } else {
5102 convert_to_string(&args[1]);
5103 arg2 = (char *) Z_STRVAL(args[1]);
5104 }
5105 /*@SWIG@*/;
5106
5107
5108 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
5109 if (Z_ISNULL(args[2])) {
5110 arg3 = (char *) 0;
5111 } else {
5112 convert_to_string(&args[2]);
5113 arg3 = (char *) Z_STRVAL(args[2]);
5114 }
5115 /*@SWIG@*/;
5116
5117 renderresult(arg1,(char const *)arg2,arg3);
5118
5119fail:
5120 return;
5121}
5122
5123
5125 PHP_FN(renderchannel)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
5126}
5127
5129 Agraph_t *arg1 = (Agraph_t *) 0 ;
5130 char *arg2 = (char *) 0 ;
5131 char *arg3 = (char *) 0 ;
5132 zval args[3];
5133 bool result;
5134
5135 if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
5136 WRONG_PARAM_COUNT;
5137 }
5138
5139
5140 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
5141 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of renderchannel");
5142 return;
5143 }
5144
5145
5146 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
5147 if (Z_ISNULL(args[1])) {
5148 arg2 = (char *) 0;
5149 } else {
5150 convert_to_string(&args[1]);
5151 arg2 = (char *) Z_STRVAL(args[1]);
5152 }
5153 /*@SWIG@*/;
5154
5155
5156 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
5157 if (Z_ISNULL(args[2])) {
5158 arg3 = (char *) 0;
5159 } else {
5160 convert_to_string(&args[2]);
5161 arg3 = (char *) Z_STRVAL(args[2]);
5162 }
5163 /*@SWIG@*/;
5164
5165 result = (bool)renderchannel(arg1,(char const *)arg2,(char const *)arg3);
5166
5167 RETVAL_BOOL((result) ? 1 : 0);
5168
5169fail:
5170 return;
5171}
5172
5173
5175 PHP_FN(renderdata)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
5176}
5177
5179 Agraph_t *arg1 = (Agraph_t *) 0 ;
5180 char *arg2 = (char *) 0 ;
5181 zval args[2];
5182 char *result = 0 ;
5183
5184 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
5185 WRONG_PARAM_COUNT;
5186 }
5187
5188
5189 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
5190 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of renderdata");
5191 return;
5192 }
5193
5194
5195 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
5196 if (Z_ISNULL(args[1])) {
5197 arg2 = (char *) 0;
5198 } else {
5199 convert_to_string(&args[1]);
5200 arg2 = (char *) Z_STRVAL(args[1]);
5201 }
5202 /*@SWIG@*/;
5203
5204 result = (char *)renderdata(arg1,(char const *)arg2);
5205
5206 if (!result) {
5207 RETVAL_NULL();
5208 } else {
5209 RETVAL_STRING((const char *)result);
5210 }
5211
5212fail:
5213 return;
5214}
5215
5216
5218 Agraph_t *arg1 = (Agraph_t *) 0 ;
5219 char *arg2 = (char *) 0 ;
5220 zval args[2];
5221 bool result;
5222
5223 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
5224 WRONG_PARAM_COUNT;
5225 }
5226
5227
5228 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
5229 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of write");
5230 return;
5231 }
5232
5233
5234 /*@SWIG:/usr/share/swig4.0/php/utils.i,57,CONVERT_STRING_IN@*/
5235 if (Z_ISNULL(args[1])) {
5236 arg2 = (char *) 0;
5237 } else {
5238 convert_to_string(&args[1]);
5239 arg2 = (char *) Z_STRVAL(args[1]);
5240 }
5241 /*@SWIG@*/;
5242
5243 result = (bool)write(arg1,(char const *)arg2);
5244
5245 RETVAL_BOOL((result) ? 1 : 0);
5246
5247fail:
5248 return;
5249}
5250
5251
5253 Agraph_t *arg1 = (Agraph_t *) 0 ;
5254 FILE *arg2 = (FILE *) 0 ;
5255 zval args[2];
5256 bool result;
5257
5258 if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
5259 WRONG_PARAM_COUNT;
5260 }
5261
5262
5263 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
5264 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of write");
5265 return;
5266 }
5267
5268
5269 if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_FILE, 0) < 0) {
5270 zend_type_error("Expected SWIGTYPE_p_FILE for argument 2 of write");
5271 return;
5272 }
5273
5274 result = (bool)write(arg1,arg2);
5275
5276 RETVAL_BOOL((result) ? 1 : 0);
5277
5278fail:
5279 return;
5280}
5281
5282
5284 int argc;
5285 zval argv[2];
5286
5287 argc = ZEND_NUM_ARGS();
5288 zend_get_parameters_array_ex(argc, argv);
5289 if (argc == 2) {
5290 int _v = 0;
5291 {
5292 void *tmp;
5293 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
5294 }
5295 if (_v) {
5296 {
5297 void *tmp;
5298 _v = (SWIG_ConvertPtr(&argv[1], (void**)&tmp, SWIGTYPE_p_FILE, 0) >= 0);
5299 }
5300 if (_v) {
5301 _wrap_write__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
5302 }
5303 }
5304 }
5305 if (argc == 2) {
5306 int _v = 0;
5307 {
5308 void *tmp;
5309 _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_Agraph_t, 0) >= 0);
5310 }
5311 if (_v) {
5312 _v = (Z_TYPE(argv[1]) == IS_STRING || Z_TYPE(argv[1]) == IS_NULL);
5313 if (_v) {
5314 _wrap_write__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
5315 }
5316 }
5317 }
5318
5319 zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'write'", 0);
5320fail:
5321 return;
5322}
5323
5324
5325static PHP_METHOD(gv,tred) {
5326 PHP_FN(tred)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
5327}
5328
5330 Agraph_t *arg1 = (Agraph_t *) 0 ;
5331 zval args[1];
5332 bool result;
5333
5334 if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
5335 WRONG_PARAM_COUNT;
5336 }
5337
5338
5339 if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Agraph_t, 0) < 0) {
5340 zend_type_error("Expected SWIGTYPE_p_Agraph_t for argument 1 of tred");
5341 return;
5342 }
5343
5344 result = (bool)tred(arg1);
5345
5346 RETVAL_BOOL((result) ? 1 : 0);
5347
5348fail:
5349 return;
5350}
5351
5352
5353/* class object handlers for pointer wrappers */
5354static zend_object_handlers swig_ptr_object_handlers;
5355
5356/* Object Creation Method for pointer wrapping class */
5357static zend_object *swig_ptr_object_new(zend_class_entry *ce) {
5358 swig_object_wrapper *obj = (swig_object_wrapper*)zend_object_alloc(sizeof(swig_object_wrapper), ce);
5359 zend_object_std_init(&obj->std, ce);
5360 object_properties_init(&obj->std, ce);
5361 obj->std.handlers = &swig_ptr_object_handlers;
5362 obj->newobject = 0;
5363 return &obj->std;
5364}
5365
5366/* Implement __toString equivalent, since that worked for the old-style resource wrapped pointers. */
5367#if PHP_MAJOR_VERSION > 8 || PHP_MINOR_VERSION >= 2
5368static ZEND_RESULT_CODE swig_ptr_cast_object(zend_object *zobj, zval *retval, int type) {
5369#else
5370static int swig_ptr_cast_object(zend_object *zobj, zval *retval, int type) {
5371#endif
5372 if (type == IS_STRING) {
5374 ZVAL_NEW_STR(retval, zend_strpprintf(0, "SWIGPointer(%p,owned=%d)", obj->ptr, obj->newobject));
5375 return SUCCESS;
5376 }
5377 return FAILURE;
5378}
5379
5380/* end wrapper section */
5381/* arginfo subsection */
5382ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_digraph, 0, 1, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5383 ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_STRING,NULL)
5384ZEND_END_ARG_INFO()
5385ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_edge, 0, 3, SWIG\\_p_Agedge_t, MAY_BE_NULL)
5386 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL|MAY_BE_STRING,NULL)
5387 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agnode_t,MAY_BE_NULL|MAY_BE_STRING,NULL)
5388 ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_STRING,NULL)
5389ZEND_END_ARG_INFO()
5390ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_findattr, 0, 2, SWIG\\_p_Agsym_t, MAY_BE_NULL)
5391 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5392 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5393ZEND_END_ARG_INFO()
5394ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_findedge, 0, 2, SWIG\\_p_Agedge_t, MAY_BE_NULL)
5395 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t,MAY_BE_NULL,NULL)
5396 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agnode_t,MAY_BE_NULL,NULL)
5397ZEND_END_ARG_INFO()
5398ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_findnode, 0, 2, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5399 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5400 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5401ZEND_END_ARG_INFO()
5402ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_findsubg, 0, 2, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5403 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5404 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5405ZEND_END_ARG_INFO()
5406ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_firstattr, 0, 1, SWIG\\_p_Agsym_t, MAY_BE_NULL)
5407 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5408ZEND_END_ARG_INFO()
5409ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_firstedge, 0, 1, SWIG\\_p_Agedge_t, MAY_BE_NULL)
5410 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5411ZEND_END_ARG_INFO()
5412ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_firsthead, 0, 1, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5413 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t,MAY_BE_NULL,NULL)
5414ZEND_END_ARG_INFO()
5415#define swig_arginfo_firstin swig_arginfo_firstedge
5416ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_firstnode, 0, 1, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5417 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5418ZEND_END_ARG_INFO()
5419#define swig_arginfo_firstout swig_arginfo_firstedge
5420ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_firstsubg, 0, 1, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5421 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5422ZEND_END_ARG_INFO()
5423#define swig_arginfo_firstsupg swig_arginfo_firstsubg
5424#define swig_arginfo_firsttail swig_arginfo_firsthead
5425ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_getv, 0, 2, MAY_BE_NULL|MAY_BE_STRING)
5426 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5427 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agsym_t,MAY_BE_NULL|MAY_BE_STRING,NULL)
5428ZEND_END_ARG_INFO()
5429ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_graph, 0, 2, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5430 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL|MAY_BE_STRING,NULL)
5431 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5432ZEND_END_ARG_INFO()
5433ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_graphof, 0, 1, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5434 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5435ZEND_END_ARG_INFO()
5436ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_headof, 0, 1, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5437 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t,MAY_BE_NULL,NULL)
5438ZEND_END_ARG_INFO()
5439ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_layout, 0, 2, MAY_BE_BOOL)
5440 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5441 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5442ZEND_END_ARG_INFO()
5443ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_nameof, 0, 1, MAY_BE_NULL|MAY_BE_STRING)
5444 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t|SWIG\\_p_Agsym_t,MAY_BE_NULL,NULL)
5445ZEND_END_ARG_INFO()
5446ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_nextattr, 0, 2, SWIG\\_p_Agsym_t, MAY_BE_NULL)
5447 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5448 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agsym_t,MAY_BE_NULL,NULL)
5449ZEND_END_ARG_INFO()
5450ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_nextedge, 0, 2, SWIG\\_p_Agedge_t, MAY_BE_NULL)
5451 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5452 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agedge_t,MAY_BE_NULL,NULL)
5453ZEND_END_ARG_INFO()
5454ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_nexthead, 0, 2, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5455 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agnode_t,MAY_BE_NULL,NULL)
5456 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agnode_t,MAY_BE_NULL,NULL)
5457ZEND_END_ARG_INFO()
5458#define swig_arginfo_nextin swig_arginfo_nextedge
5459ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_nextnode, 0, 2, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5460 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5461 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agnode_t,MAY_BE_NULL,NULL)
5462ZEND_END_ARG_INFO()
5463#define swig_arginfo_nextout swig_arginfo_nextedge
5464ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_nextsubg, 0, 2, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5465 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5466 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5467ZEND_END_ARG_INFO()
5468#define swig_arginfo_nextsupg swig_arginfo_nextsubg
5469#define swig_arginfo_nexttail swig_arginfo_nexthead
5470#define swig_arginfo_node swig_arginfo_findnode
5471ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_ok, 0, 1, MAY_BE_BOOL)
5472 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t|SWIG\\_p_Agsym_t,MAY_BE_NULL,NULL)
5473ZEND_END_ARG_INFO()
5474ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_protoedge, 0, 1, SWIG\\_p_Agedge_t, MAY_BE_NULL)
5475 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5476ZEND_END_ARG_INFO()
5477ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_protonode, 0, 1, SWIG\\_p_Agnode_t, MAY_BE_NULL)
5478 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5479ZEND_END_ARG_INFO()
5480ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_read, 0, 1, SWIG\\_p_Agraph_t, MAY_BE_NULL)
5481 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_FILE,MAY_BE_NULL|MAY_BE_STRING,NULL)
5482ZEND_END_ARG_INFO()
5483#define swig_arginfo_readstring swig_arginfo_digraph
5484ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_render, 0, 3, MAY_BE_BOOL)
5485 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5486 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5487 ZEND_ARG_OBJ_TYPE_MASK(0,arg3,SWIG\\_p_FILE,MAY_BE_NULL|MAY_BE_STRING,NULL)
5488ZEND_END_ARG_INFO()
5489ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_renderchannel, 0, 3, MAY_BE_BOOL)
5490 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5491 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5492 ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_STRING,NULL)
5493ZEND_END_ARG_INFO()
5494ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_renderdata, 0, 2, MAY_BE_NULL|MAY_BE_STRING)
5495 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5496 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5497ZEND_END_ARG_INFO()
5498ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_renderresult, 0, 3, MAY_BE_VOID)
5499 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5500 ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_STRING,NULL)
5501 ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_STRING,NULL)
5502ZEND_END_ARG_INFO()
5503ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_rm, 0, 1, MAY_BE_BOOL)
5504 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5505ZEND_END_ARG_INFO()
5506#define swig_arginfo_rootof swig_arginfo_firstsubg
5507ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_setv, 0, 3, MAY_BE_NULL|MAY_BE_STRING)
5508 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agedge_t|SWIG\\_p_Agnode_t|SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5509 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_Agsym_t,MAY_BE_NULL|MAY_BE_STRING,NULL)
5510 ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_STRING,NULL)
5511ZEND_END_ARG_INFO()
5512#define swig_arginfo_strictdigraph swig_arginfo_digraph
5513#define swig_arginfo_strictgraph swig_arginfo_digraph
5514#define swig_arginfo_tailof swig_arginfo_headof
5515ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_tred, 0, 1, MAY_BE_BOOL)
5516 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5517ZEND_END_ARG_INFO()
5518ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_write, 0, 2, MAY_BE_BOOL)
5519 ZEND_ARG_OBJ_TYPE_MASK(0,arg1,SWIG\\_p_Agraph_t,MAY_BE_NULL,NULL)
5520 ZEND_ARG_OBJ_TYPE_MASK(0,arg2,SWIG\\_p_FILE,MAY_BE_NULL|MAY_BE_STRING,NULL)
5521ZEND_END_ARG_INFO()
5522
5523
5524/* class entry subsection */
5525
5526
5527/* entry subsection */
5528/* Every non-class user visible function must have an entry here */
5529static const zend_function_entry module_gv_functions[] = {
5530 PHP_FE(digraph,swig_arginfo_digraph)
5534 ZEND_NAMED_FE(read,_wrap_read,swig_arginfo_read)
5535 ZEND_NAMED_FE(graph,_wrap_graph,swig_arginfo_graph)
5536 PHP_FE(node,swig_arginfo_node)
5537 ZEND_NAMED_FE(edge,_wrap_edge,swig_arginfo_edge)
5538 ZEND_NAMED_FE(setv,_wrap_setv,swig_arginfo_setv)
5539 ZEND_NAMED_FE(getv,_wrap_getv,swig_arginfo_getv)
5540 ZEND_NAMED_FE(nameof,_wrap_nameof,swig_arginfo_nameof)
5541 PHP_FE(findsubg,swig_arginfo_findsubg)
5542 PHP_FE(findnode,swig_arginfo_findnode)
5543 PHP_FE(findedge,swig_arginfo_findedge)
5544 ZEND_NAMED_FE(findattr,_wrap_findattr,swig_arginfo_findattr)
5545 PHP_FE(headof,swig_arginfo_headof)
5547 ZEND_NAMED_FE(graphof,_wrap_graphof,swig_arginfo_graphof)
5549 PHP_FE(protonode,swig_arginfo_protonode)
5550 PHP_FE(protoedge,swig_arginfo_protoedge)
5551 ZEND_NAMED_FE(ok,_wrap_ok,swig_arginfo_ok)
5552 PHP_FE(firstsubg,swig_arginfo_firstsubg)
5553 PHP_FE(nextsubg,swig_arginfo_nextsubg)
5556 ZEND_NAMED_FE(firstedge,_wrap_firstedge,swig_arginfo_firstedge)
5557 ZEND_NAMED_FE(nextedge,_wrap_nextedge,swig_arginfo_nextedge)
5560 PHP_FE(firsthead,swig_arginfo_firsthead)
5561 PHP_FE(nexthead,swig_arginfo_nexthead)
5566 ZEND_NAMED_FE(firstnode,_wrap_firstnode,swig_arginfo_firstnode)
5567 ZEND_NAMED_FE(nextnode,_wrap_nextnode,swig_arginfo_nextnode)
5568 ZEND_NAMED_FE(firstattr,_wrap_firstattr,swig_arginfo_firstattr)
5569 ZEND_NAMED_FE(nextattr,_wrap_nextattr,swig_arginfo_nextattr)
5570 ZEND_NAMED_FE(rm,_wrap_rm,swig_arginfo_rm)
5571 PHP_FE(layout,swig_arginfo_layout)
5572 ZEND_NAMED_FE(render,_wrap_render,swig_arginfo_render)
5573 PHP_FE(renderresult,swig_arginfo_renderresult)
5574 PHP_FE(renderchannel,swig_arginfo_renderchannel)
5575 PHP_FE(renderdata,swig_arginfo_renderdata)
5576 ZEND_NAMED_FE(write,_wrap_write,swig_arginfo_write)
5577 PHP_FE(tred,swig_arginfo_tred)
5578 ZEND_FE_END
5579};
5580
5581static const zend_function_entry class_gv_functions[] = {
5582 PHP_ME(gv,digraph,swig_arginfo_digraph,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5583 PHP_ME(gv,strictgraph,swig_arginfo_strictgraph,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5584 PHP_ME(gv,strictdigraph,swig_arginfo_strictdigraph,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5585 PHP_ME(gv,readstring,swig_arginfo_readstring,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5586 ZEND_NAMED_ME(read,_wrap_read,swig_arginfo_read,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5587 ZEND_NAMED_ME(graph,_wrap_graph,swig_arginfo_graph,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5588 PHP_ME(gv,node,swig_arginfo_node,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5589 ZEND_NAMED_ME(edge,_wrap_edge,swig_arginfo_edge,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5590 ZEND_NAMED_ME(setv,_wrap_setv,swig_arginfo_setv,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5591 ZEND_NAMED_ME(getv,_wrap_getv,swig_arginfo_getv,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5592 ZEND_NAMED_ME(nameof,_wrap_nameof,swig_arginfo_nameof,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5593 PHP_ME(gv,findsubg,swig_arginfo_findsubg,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5594 PHP_ME(gv,findnode,swig_arginfo_findnode,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5595 PHP_ME(gv,findedge,swig_arginfo_findedge,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5596 ZEND_NAMED_ME(findattr,_wrap_findattr,swig_arginfo_findattr,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5597 PHP_ME(gv,headof,swig_arginfo_headof,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5598 PHP_ME(gv,tailof,swig_arginfo_tailof,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5599 ZEND_NAMED_ME(graphof,_wrap_graphof,swig_arginfo_graphof,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5600 PHP_ME(gv,rootof,swig_arginfo_rootof,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5601 PHP_ME(gv,protonode,swig_arginfo_protonode,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5602 PHP_ME(gv,protoedge,swig_arginfo_protoedge,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5603 ZEND_NAMED_ME(ok,_wrap_ok,swig_arginfo_ok,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5604 PHP_ME(gv,firstsubg,swig_arginfo_firstsubg,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5605 PHP_ME(gv,nextsubg,swig_arginfo_nextsubg,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5606 PHP_ME(gv,firstsupg,swig_arginfo_firstsupg,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5607 PHP_ME(gv,nextsupg,swig_arginfo_nextsupg,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5608 ZEND_NAMED_ME(firstedge,_wrap_firstedge,swig_arginfo_firstedge,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5609 ZEND_NAMED_ME(nextedge,_wrap_nextedge,swig_arginfo_nextedge,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5610 ZEND_NAMED_ME(firstout,_wrap_firstout,swig_arginfo_firstout,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5611 ZEND_NAMED_ME(nextout,_wrap_nextout,swig_arginfo_nextout,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5612 PHP_ME(gv,firsthead,swig_arginfo_firsthead,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5613 PHP_ME(gv,nexthead,swig_arginfo_nexthead,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5614 ZEND_NAMED_ME(firstin,_wrap_firstin,swig_arginfo_firstin,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5615 ZEND_NAMED_ME(nextin,_wrap_nextin,swig_arginfo_nextin,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5616 PHP_ME(gv,firsttail,swig_arginfo_firsttail,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5617 PHP_ME(gv,nexttail,swig_arginfo_nexttail,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5618 ZEND_NAMED_ME(firstnode,_wrap_firstnode,swig_arginfo_firstnode,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5619 ZEND_NAMED_ME(nextnode,_wrap_nextnode,swig_arginfo_nextnode,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5620 ZEND_NAMED_ME(firstattr,_wrap_firstattr,swig_arginfo_firstattr,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5621 ZEND_NAMED_ME(nextattr,_wrap_nextattr,swig_arginfo_nextattr,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5622 ZEND_NAMED_ME(rm,_wrap_rm,swig_arginfo_rm,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5623 PHP_ME(gv,layout,swig_arginfo_layout,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5624 ZEND_NAMED_ME(render,_wrap_render,swig_arginfo_render,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5625 PHP_ME(gv,renderresult,swig_arginfo_renderresult,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5626 PHP_ME(gv,renderchannel,swig_arginfo_renderchannel,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5627 PHP_ME(gv,renderdata,swig_arginfo_renderdata,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5628 ZEND_NAMED_ME(write,_wrap_write,swig_arginfo_write,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5629 PHP_ME(gv,tred,swig_arginfo_tred,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
5630 ZEND_FE_END
5631};
5632
5633/* init section */
5634zend_module_entry gv_module_entry = {
5635 STANDARD_MODULE_HEADER,
5636 "gv",
5638 PHP_MINIT(gv),
5639 NULL, /* No MSHUTDOWN code */
5640 NULL, /* No RINIT code */
5641 NULL, /* No RSHUTDOWN code */
5642 NULL, /* No MINFO code */
5643 NO_VERSION_YET,
5644 STANDARD_MODULE_PROPERTIES
5645};
5646
5647#ifdef __cplusplus
5648extern "C" {
5649#endif
5650SWIGEXPORT zend_module_entry *get_module(void) { return &gv_module_entry; }
5651#ifdef __cplusplus
5652}
5653#endif
5654
5655#define SWIG_php_minit PHP_MINIT_FUNCTION(gv)
5656
5657/* -----------------------------------------------------------------------------
5658 * Type initialization:
5659 * This problem is tough by the requirement that no dynamic
5660 * memory is used. Also, since swig_type_info structures store pointers to
5661 * swig_cast_info structures and swig_cast_info structures store pointers back
5662 * to swig_type_info structures, we need some lookup code at initialization.
5663 * The idea is that swig generates all the structures that are needed.
5664 * The runtime then collects these partially filled structures.
5665 * The SWIG_InitializeModule function takes these initial arrays out of
5666 * swig_module, and does all the lookup, filling in the swig_module.types
5667 * array with the correct data and linking the correct swig_cast_info
5668 * structures together.
5669 *
5670 * The generated swig_type_info structures are assigned statically to an initial
5671 * array. We just loop through that array, and handle each type individually.
5672 * First we lookup if this type has been already loaded, and if so, use the
5673 * loaded structure instead of the generated one. Then we have to fill in the
5674 * cast linked list. The cast data is initially stored in something like a
5675 * two-dimensional array. Each row corresponds to a type (there are the same
5676 * number of rows as there are in the swig_type_initial array). Each entry in
5677 * a column is one of the swig_cast_info structures for that type.
5678 * The cast_initial array is actually an array of arrays, because each row has
5679 * a variable number of columns. So to actually build the cast linked list,
5680 * we find the array of casts associated with the type, and loop through it
5681 * adding the casts to the list. The one last trick we need to do is making
5682 * sure the type pointer in the swig_cast_info struct is correct.
5683 *
5684 * First off, we lookup the cast->type name to see if it is already loaded.
5685 * There are three cases to handle:
5686 * 1) If the cast->type has already been loaded AND the type we are adding
5687 * casting info to has not been loaded (it is in this module), THEN we
5688 * replace the cast->type pointer with the type pointer that has already
5689 * been loaded.
5690 * 2) If BOTH types (the one we are adding casting info to, and the
5691 * cast->type) are loaded, THEN the cast info has already been loaded by
5692 * the previous module so we just ignore it.
5693 * 3) Finally, if cast->type has not already been loaded, then we add that
5694 * swig_cast_info to the linked list (because the cast->type) pointer will
5695 * be correct.
5696 * ----------------------------------------------------------------------------- */
5697
5698#ifdef __cplusplus
5699extern "C" {
5700#if 0
5701} /* c-mode */
5702#endif
5703#endif
5704
5705#if 0
5706#define SWIGRUNTIME_DEBUG
5707#endif
5708
5709#ifndef SWIG_INIT_CLIENT_DATA_TYPE
5710#define SWIG_INIT_CLIENT_DATA_TYPE void *
5711#endif
5712
5713SWIGRUNTIME void
5715 size_t i;
5716 swig_module_info *module_head, *iter;
5717 int init;
5718
5719 /* check to see if the circular list has been setup, if not, set it up */
5720 if (swig_module.next==0) {
5721 /* Initialize the swig_module */
5725 init = 1;
5726 } else {
5727 init = 0;
5728 }
5729
5730 /* Try and load any already created modules */
5731 module_head = SWIG_GetModule(clientdata);
5732 if (!module_head) {
5733 /* This is the first module loaded for this interpreter */
5734 /* so set the swig module into the interpreter */
5735 SWIG_SetModule(clientdata, &swig_module);
5736 } else {
5737 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5738 iter=module_head;
5739 do {
5740 if (iter==&swig_module) {
5741 /* Our module is already in the list, so there's nothing more to do. */
5742 return;
5743 }
5744 iter=iter->next;
5745 } while (iter!= module_head);
5746
5747 /* otherwise we must add our module into the list */
5748 swig_module.next = module_head->next;
5749 module_head->next = &swig_module;
5750 }
5751
5752 /* When multiple interpreters are used, a module could have already been initialized in
5753 a different interpreter, but not yet have a pointer in this interpreter.
5754 In this case, we do not want to continue adding types... everything should be
5755 set up already */
5756 if (init == 0) return;
5757
5758 /* Now work on filling in swig_module.types */
5759#ifdef SWIGRUNTIME_DEBUG
5760 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
5761#endif
5762 for (i = 0; i < swig_module.size; ++i) {
5763 swig_type_info *type = 0;
5764 swig_type_info *ret;
5765 swig_cast_info *cast;
5766
5767#ifdef SWIGRUNTIME_DEBUG
5768 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5769#endif
5770
5771 /* if there is another module already loaded */
5772 if (swig_module.next != &swig_module) {
5774 }
5775 if (type) {
5776 /* Overwrite clientdata field */
5777#ifdef SWIGRUNTIME_DEBUG
5778 printf("SWIG_InitializeModule: found type %s\n", type->name);
5779#endif
5781 type->clientdata = swig_module.type_initial[i]->clientdata;
5782#ifdef SWIGRUNTIME_DEBUG
5783 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5784#endif
5785 }
5786 } else {
5788 }
5789
5790 /* Insert casting types */
5791 cast = swig_module.cast_initial[i];
5792 while (cast->type) {
5793
5794 /* Don't need to add information already in the list */
5795 ret = 0;
5796#ifdef SWIGRUNTIME_DEBUG
5797 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5798#endif
5799 if (swig_module.next != &swig_module) {
5801#ifdef SWIGRUNTIME_DEBUG
5802 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5803#endif
5804 }
5805 if (ret) {
5806 if (type == swig_module.type_initial[i]) {
5807#ifdef SWIGRUNTIME_DEBUG
5808 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5809#endif
5810 cast->type = ret;
5811 ret = 0;
5812 } else {
5813 /* Check for casting already in the list */
5814 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5815#ifdef SWIGRUNTIME_DEBUG
5816 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5817#endif
5818 if (!ocast) ret = 0;
5819 }
5820 }
5821
5822 if (!ret) {
5823#ifdef SWIGRUNTIME_DEBUG
5824 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5825#endif
5826 if (type->cast) {
5827 type->cast->prev = cast;
5828 cast->next = type->cast;
5829 }
5830 type->cast = cast;
5831 }
5832 cast++;
5833 }
5834 /* Set entry in modules->types array equal to the type */
5835 swig_module.types[i] = type;
5836 }
5837 swig_module.types[i] = 0;
5838
5839#ifdef SWIGRUNTIME_DEBUG
5840 printf("**** SWIG_InitializeModule: Cast List ******\n");
5841 for (i = 0; i < swig_module.size; ++i) {
5842 int j = 0;
5844 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5845 while (cast->type) {
5846 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5847 cast++;
5848 ++j;
5849 }
5850 printf("---- Total casts: %d\n",j);
5851 }
5852 printf("**** SWIG_InitializeModule: Cast List ******\n");
5853#endif
5854}
5855
5856/* This function will propagate the clientdata field of type to
5857* any new swig_type_info structures that have been added into the list
5858* of equivalent types. It is like calling
5859* SWIG_TypeClientData(type, clientdata) a second time.
5860*/
5861SWIGRUNTIME void
5863 size_t i;
5864 swig_cast_info *equiv;
5865 static int init_run = 0;
5866
5867 if (init_run) return;
5868 init_run = 1;
5869
5870 for (i = 0; i < swig_module.size; i++) {
5871 if (swig_module.types[i]->clientdata) {
5872 equiv = swig_module.types[i]->cast;
5873 while (equiv) {
5874 if (!equiv->converter) {
5875 if (equiv->type && !equiv->type->clientdata)
5877 }
5878 equiv = equiv->next;
5879 }
5880 }
5881 }
5882}
5883
5884#ifdef __cplusplus
5885#if 0
5886{ /* c-mode */
5887#endif
5888}
5889#endif
5890
5891
5893 zend_class_entry SWIGUNUSED internal_ce;
5894 SWIG_InitializeModule((void*)&module_number);
5895#if PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION == 0
5896 /* This hack is needed to avoid segfaults. */
5897 EG(class_table) = CG(class_table);
5898#endif
5899
5900 /* oinit subsection */
5902 SWIG_Php_ce_gv = zend_register_internal_class(&internal_ce);
5903
5904
5905 /* Register classes to represent non-class pointer types */
5906 swig_ptr_object_handlers = *zend_get_std_object_handlers();
5910 INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_Agnode_t", NULL);
5911 SWIG_Php_ce__p_Agnode_t = zend_register_internal_class(&internal_ce);
5915
5916 INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_Agsym_t", NULL);
5917 SWIG_Php_ce__p_Agsym_t = zend_register_internal_class(&internal_ce);
5921
5922 INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_Agraph_t", NULL);
5923 SWIG_Php_ce__p_Agraph_t = zend_register_internal_class(&internal_ce);
5927
5928 INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_FILE", NULL);
5929 SWIG_Php_ce__p_FILE = zend_register_internal_class(&internal_ce);
5933
5934 INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_Agedge_t", NULL);
5935 SWIG_Php_ce__p_Agedge_t = zend_register_internal_class(&internal_ce);
5939
5940 /* end oinit subsection */
5941
5942 /* cinit subsection */
5943 /* end cinit subsection */
5944
5945 return SUCCESS;
5946}
5947
5948/* end init section */
int compare(Agobj_t *l, Agobj_t *r)
Definition actions.c:686
#define FAILURE
Definition cghdr.h:45
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, const char **color_scheme, int *lightness)
expr procedure type
Definition exparse.y:208
static int flags
Definition gc.c:61
edge
Definition gmlparse.y:240
node NULL
Definition grammar.y:163
static SCM _wrap_edge__SWIG_3(int argc, SCM *argv)
static SCM _wrap_nextin__SWIG_1(int argc, SCM *argv)
static SCM _wrap_getv__SWIG_4(int argc, SCM *argv)
static SCM _wrap_nameof(SCM rest)
static SCM _wrap_ok(SCM rest)
static SCM _wrap_rm__SWIG_0(int argc, SCM *argv)
static SCM _wrap_firstin(SCM rest)
static SCM _wrap_firstnode__SWIG_0(int argc, SCM *argv)
static SCM _wrap_findattr(SCM rest)
static SCM _wrap_edge__SWIG_2(int argc, SCM *argv)
static SCM _wrap_edge__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextout__SWIG_1(int argc, SCM *argv)
static SCM _wrap_nameof__SWIG_1(int argc, SCM *argv)
static SCM _wrap_setv__SWIG_0(int argc, SCM *argv)
static SCM _wrap_findattr__SWIG_1(int argc, SCM *argv)
static SCM _wrap_nextattr__SWIG_1(int argc, SCM *argv)
static SCM _wrap_setv__SWIG_1(int argc, SCM *argv)
static SCM _wrap_setv__SWIG_5(int argc, SCM *argv)
static SCM _wrap_nextnode__SWIG_0(int argc, SCM *argv)
static SCM _wrap_getv__SWIG_5(int argc, SCM *argv)
static SCM _wrap_write__SWIG_1(int argc, SCM *argv)
static SCM _wrap_ok__SWIG_3(int argc, SCM *argv)
static SCM _wrap_read__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextin(SCM rest)
static SCM _wrap_firstout__SWIG_0(int argc, SCM *argv)
#define SWIG_ConvertPtr(s, result, type, flags)
Definition gv_guile.cpp:823
static SCM _wrap_getv__SWIG_3(int argc, SCM *argv)
static SCM _wrap_nextedge(SCM rest)
static SCM _wrap_getv__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextnode__SWIG_1(int argc, SCM *argv)
static SCM _wrap_firstnode__SWIG_1(int argc, SCM *argv)
static SCM _wrap_render__SWIG_0(int argc, SCM *argv)
static SCM _wrap_firstedge(SCM rest)
static SCM _wrap_firstedge__SWIG_0(int argc, SCM *argv)
static SCM _wrap_firstout(SCM rest)
static SCM _wrap_setv__SWIG_3(int argc, SCM *argv)
static SCM _wrap_firstattr(SCM rest)
static SCM _wrap_firstedge__SWIG_1(int argc, SCM *argv)
static SCM _wrap_firstnode(SCM rest)
static SCM _wrap_firstattr__SWIG_1(int argc, SCM *argv)
static SCM _wrap_firstattr__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextout(SCM rest)
static SCM _wrap_graphof__SWIG_0(int argc, SCM *argv)
static SCM _wrap_write(SCM rest)
static SCM _wrap_edge(SCM rest)
static SCM _wrap_graph(SCM rest)
static SCM _wrap_findattr__SWIG_0(int argc, SCM *argv)
static SCM _wrap_ok__SWIG_2(int argc, SCM *argv)
static SCM _wrap_render__SWIG_1(int argc, SCM *argv)
static SCM _wrap_getv(SCM rest)
static SCM _wrap_nameof__SWIG_0(int argc, SCM *argv)
static SCM _wrap_read__SWIG_1(int argc, SCM *argv)
static SCM _wrap_graphof(SCM rest)
static SCM _wrap_nextout__SWIG_0(int argc, SCM *argv)
static SCM _wrap_graph__SWIG_1(int argc, SCM *argv)
static SCM _wrap_graphof__SWIG_1(int argc, SCM *argv)
static SCM _wrap_firstattr__SWIG_2(int argc, SCM *argv)
static SCM _wrap_firstout__SWIG_1(int argc, SCM *argv)
static SCM _wrap_graph__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextattr(SCM rest)
static SCM _wrap_render(SCM rest)
static SCM _wrap_firstin__SWIG_1(int argc, SCM *argv)
static SCM _wrap_nameof__SWIG_2(int argc, SCM *argv)
static SCM _wrap_nextattr__SWIG_2(int argc, SCM *argv)
static SCM _wrap_render__SWIG_2(int argc, SCM *argv)
static SCM _wrap_write__SWIG_0(int argc, SCM *argv)
static SCM _wrap_render__SWIG_3(int argc, SCM *argv)
static SCM _wrap_rm__SWIG_1(int argc, SCM *argv)
static SCM _wrap_getv__SWIG_1(int argc, SCM *argv)
static SCM _wrap_ok__SWIG_0(int argc, SCM *argv)
static SCM _wrap_read(SCM rest)
static SCM _wrap_nextattr__SWIG_0(int argc, SCM *argv)
static SCM _wrap_ok__SWIG_1(int argc, SCM *argv)
static SCM _wrap_setv__SWIG_4(int argc, SCM *argv)
static SCM _wrap_nextedge__SWIG_0(int argc, SCM *argv)
static SCM _wrap_nextin__SWIG_0(int argc, SCM *argv)
static SCM _wrap_rm(SCM rest)
static SCM _wrap_getv__SWIG_2(int argc, SCM *argv)
static SCM _wrap_setv__SWIG_2(int argc, SCM *argv)
static SCM _wrap_nextedge__SWIG_1(int argc, SCM *argv)
static SCM _wrap_edge__SWIG_1(int argc, SCM *argv)
static SCM _wrap_setv(SCM rest)
static SCM _wrap_rm__SWIG_2(int argc, SCM *argv)
static SCM _wrap_nextnode(SCM rest)
static SCM _wrap_findattr__SWIG_2(int argc, SCM *argv)
static SCM _wrap_graphof__SWIG_2(int argc, SCM *argv)
static SCM _wrap_firstin__SWIG_0(int argc, SCM *argv)
#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags, own)
Definition gv_perl.cpp:904
#define SWIG_MAXCASTRANK
Definition gv_perl.cpp:312
#define SWIG_CastRank(r)
Definition gv_perl.cpp:315
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
Definition gv_php.cpp:5714
static swig_type_info _swigt__p_Agsym_t
Definition gv_php.cpp:1308
bool ok(Agraph_t *g)
Definition gv.cpp:362
static swig_cast_info _swigc__p_Agraph_t[]
Definition gv_php.cpp:1321
static ZEND_NAMED_FUNCTION(_wrap_graph__SWIG_0)
Definition gv_php.cpp:1340
static swig_cast_info * swig_cast_initial[]
Definition gv_php.cpp:1325
bool tred(Agraph_t *g)
Definition gv.cpp:728
Agraph_t * firstsubg(Agraph_t *g)
Definition gv.cpp:367
Agraph_t * read(const char *filename)
Definition gv.cpp:66
static zend_object * swig_ptr_object_new(zend_class_entry *ce)
Definition gv_php.cpp:5357
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:373
Agraph_t * readstring(char *string)
Definition gv.cpp:54
static zend_class_entry * SWIG_Php_ce__p_Agraph_t
Definition gv_php.cpp:1294
char * getv(Agraph_t *g, char *attr)
Definition gv.cpp:130
Agraph_t * findsubg(Agraph_t *g, char *name)
Definition gv.cpp:247
void renderresult(Agraph_t *g, const char *format, char *outdata)
Definition gv.cpp:690
#define SWIG_CheckState(r)
Definition gv_php.cpp:336
static swig_module_info * SWIG_Php_GetModule(void)
Definition gv_php.cpp:946
static swig_cast_info _swigc__p_FILE[]
Definition gv_php.cpp:1323
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
Definition gv_php.cpp:438
#define SWIGTYPE_p_Agnode_t
Definition gv_php.cpp:985
#define swig_arginfo_firstsupg
Definition gv_php.cpp:5423
static const zend_function_entry class_gv_functions[]
Definition gv_php.cpp:5581
struct swig_cast_info swig_cast_info
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
Definition gv_php.cpp:404
Agraph_t * strictgraph(char *name)
Definition gv.cpp:42
char * setv(Agraph_t *g, char *attr, char *val)
Definition gv.cpp:152
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:395
static PHP_FUNCTION(digraph)
Definition gv_php.cpp:1372
static int swig_ptr_cast_object(zend_object *zobj, zval *retval, int type)
Definition gv_php.cpp:5370
Agraph_t * rootof(Agraph_t *g)
Definition gv.cpp:327
static swig_cast_info _swigc__p_Agnode_t[]
Definition gv_php.cpp:1320
static zend_class_entry SWIG_Php_swig_wrapped_interface_ce
Definition gv_php.cpp:822
Agnode_t * headof(Agedge_t *e)
Definition gv.cpp:287
#define SWIGRUNTIME
Definition gv_php.cpp:186
#define SWIGTYPE_p_Agraph_t
Definition gv_php.cpp:986
Agnode_t * firsttail(Agnode_t *n)
Definition gv.cpp:494
return SUCCESS
Definition gv_php.cpp:5945
#define SWIGTYPE_p_Agsym_t
Definition gv_php.cpp:987
Agraph_t * strictdigraph(char *name)
Definition gv.cpp:48
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
Definition gv_php.cpp:552
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
Definition gv_php.cpp:627
#define swig_arginfo_nexttail
Definition gv_php.cpp:5469
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
Definition gv.cpp:648
static swig_object_wrapper * swig_php_fetch_object(zend_object *obj)
Definition gv_php.cpp:836
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:382
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
Definition gv_php.cpp:724
#define SWIG_AddCast(r)
Definition gv_php.cpp:335
static PHP_METHOD(gv, digraph)
Definition gv_php.cpp:1368
Agedge_t * firstedge(Agraph_t *g)
Definition gv.cpp:409
Agraph_t * graphof(Agraph_t *g)
Definition gv.cpp:303
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
Definition gv_php.cpp:711
static swig_module_info swig_module
Definition gv_php.cpp:990
#define swig_arginfo_node
Definition gv_php.cpp:5470
char * nameof(Agraph_t *g)
Definition gv.cpp:343
#define SWIG_SetModule(clientdata, pointer)
Definition gv_php.cpp:820
Agnode_t * firstnode(Agraph_t *g)
Definition gv.cpp:518
#define SWIG_INIT_CLIENT_DATA_TYPE
Definition gv_php.cpp:5710
Agedge_t * firstout(Agraph_t *g)
Definition gv.cpp:384
#define SWIG_POINTER_RELEASE
Definition gv_php.cpp:203
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
Definition gv_php.cpp:508
#define SWIGUNUSED
Definition gv_php.cpp:64
#define swig_arginfo_firsttail
Definition gv_php.cpp:5424
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
Definition gv_php.cpp:568
#define SWIG_POINTER_CLEAR
Definition gv_php.cpp:202
static zend_object_handlers swig_ptr_object_handlers
Definition gv_php.cpp:5354
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
Definition gv_php.cpp:419
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
Definition gv_php.cpp:672
static zend_class_entry * SWIG_Php_ce__p_Agnode_t
Definition gv_php.cpp:1288
#define SWIG_php_minit
Definition gv_php.cpp:5655
#define swig_arginfo_strictgraph
Definition gv_php.cpp:5513
static zend_class_entry * SWIG_Php_ce__p_FILE
Definition gv_php.cpp:1297
zend_do_implement_interface(SWIG_Php_ce__p_Agnode_t, &SWIG_Php_swig_wrapped_interface_ce)
static void * SWIG_Php_free_obj(zend_object *object)
Definition gv_php.cpp:972
#define swig_arginfo_firstin
Definition gv_php.cpp:5415
bool layout(Agraph_t *g, const char *engine)
Definition gv.cpp:615
static swig_type_info _swigt__p_Agraph_t
Definition gv_php.cpp:1307
static zend_class_entry * SWIG_Php_ce__p_Agedge_t
Definition gv_php.cpp:1300
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
Definition gv_php.cpp:582
static zend_class_entry * SWIG_Php_ce_gv
Definition gv_php.cpp:1285
INIT_CLASS_ENTRY(internal_ce, "gv", class_gv_functions)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
Definition gv_php.cpp:739
static int default_error_code
Definition gv_php.cpp:809
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
Definition gv.cpp:549
#define SWIG_POINTER_NO_NULL
Definition gv_php.cpp:201
Agnode_t * tailof(Agedge_t *e)
Definition gv.cpp:295
bool write(Agraph_t *g, const char *filename)
Definition gv.cpp:717
char * renderdata(Agraph_t *g, const char *format)
Definition gv.cpp:699
#define swig_arginfo_tailof
Definition gv_php.cpp:5514
#define SWIG_NullReferenceError
Definition gv_php.cpp:768
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
Definition gv_php.cpp:522
#define swig_arginfo_strictdigraph
Definition gv_php.cpp:5512
#define SWIG_POINTER_DISOWN
Definition gv_php.cpp:199
struct swig_type_info swig_type_info
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
Definition gv_php.cpp:700
Agnode_t * protonode(Agraph_t *g)
Definition gv.cpp:334
#define swig_arginfo_nextout
Definition gv_php.cpp:5463
static swig_cast_info _swigc__p_Agedge_t[]
Definition gv_php.cpp:1319
static zend_class_entry * SWIG_Php_ce__p_Agsym_t
Definition gv_php.cpp:1291
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
Definition gv_php.cpp:656
bool rm(Agraph_t *g)
Definition gv.cpp:584
Agnode_t * findnode(Agraph_t *g, char *name)
Definition gv.cpp:253
#define SWIGTYPE_p_Agedge_t
Definition gv_php.cpp:984
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
Definition gv.cpp:503
static void SWIG_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject)
Definition gv_php.cpp:843
Agraph_t * firstsupg(Agraph_t *g)
Definition gv.cpp:380
#define SWIG_GetModule(clientdata)
Definition gv_php.cpp:819
Agsym_t * findattr(Agraph_t *g, char *name)
Definition gv.cpp:267
static const zend_function_entry module_gv_functions[]
Definition gv_php.cpp:5529
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
Definition gv_php.cpp:473
SWIGRUNTIME void SWIG_PropagateClientData(void)
Definition gv_php.cpp:5862
Agraph_t * digraph(char *name)
Definition gv.cpp:36
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
Definition gv_php.cpp:531
Agedge_t * firstin(Agraph_t *g)
Definition gv.cpp:461
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
Definition gv_php.cpp:446
#define SWIG_ERROR_RELEASE_NOT_OWNED
Definition gv_php.cpp:294
#define swig_arginfo_rootof
Definition gv_php.cpp:5506
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
Definition gv.cpp:524
#define swig_arginfo_nextsupg
Definition gv_php.cpp:5468
#define SWIG_CAST_NEW_MEMORY
Definition gv_php.cpp:200
static void SWIG_Php_SetModule(swig_module_info *pointer, int module_number)
Definition gv_php.cpp:956
static swig_type_info _swigt__p_FILE
Definition gv_php.cpp:1309
Agedge_t * nextin(Agnode_t *n, Agedge_t *e)
Definition gv.cpp:488
Agraph_t * graph(char *name)
Definition gv.cpp:30
SWIGEXPORT zend_module_entry * get_module(void)
Definition gv_php.cpp:5650
struct swig_module_info swig_module_info
#define SWIG_ERROR
Definition gv_php.cpp:290
#define SWIGTYPE_p_FILE
Definition gv_php.cpp:988
Agsym_t * firstattr(Agraph_t *g)
Definition gv.cpp:542
zend_module_entry gv_module_entry
Definition gv_php.cpp:5634
static swig_type_info * swig_type_initial[]
Definition gv_php.cpp:1311
#define swig_arginfo_firstout
Definition gv_php.cpp:5419
#define swig_arginfo_nextin
Definition gv_php.cpp:5458
static swig_cast_info _swigc__p_Agsym_t[]
Definition gv_php.cpp:1322
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:411
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
Definition gv.cpp:259
static const char const_name[]
Definition gv_php.cpp:945
#define swig_owntype
Definition gv_php.cpp:777
#define SWIGEXPORT
Definition gv_php.cpp:112
#define SWIG_IsOK(r)
Definition gv_php.cpp:296
static const char * default_error_msg
Definition gv_php.cpp:808
static zend_object * SWIG_Php_do_create_object(zend_class_entry *ce, zend_object_handlers *handlers)
Definition gv_php.cpp:961
Agnode_t * firsthead(Agnode_t *n)
Definition gv.cpp:425
static swig_type_info _swigt__p_Agnode_t
Definition gv_php.cpp:1306
bool render(Agraph_t *g)
Definition gv.cpp:624
static swig_type_info _swigt__p_Agedge_t
Definition gv_php.cpp:1305
static swig_type_info * swig_types[6]
Definition gv_php.cpp:989
#define swig_arginfo_readstring
Definition gv_php.cpp:5483
#define SWIG_OK
Definition gv_php.cpp:288
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
Definition gv.cpp:434
#define SWIGINTERNINLINE
Definition gv_php.cpp:89
Agedge_t * protoedge(Agraph_t *g)
Definition gv.cpp:338
#define SWIGRUNTIMEINLINE
Definition gv_php.cpp:190
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
Definition gv_php.cpp:500
Graphviz context library.
GVIO_API const char * format
Definition gvio.h:51
static gvloadimage_engine_t engine
static int z
void *(* swig_converter_func)(void *, int *)
Definition runtime.h:360
struct swig_type_info *(* swig_dycast_func)(void **)
Definition runtime.h:361
void reset(sgraph *G)
Definition sgraph.c:29
graph or subgraph
Definition cgraph.h:425
string attribute descriptor symbol in Agattr_s.dict
Definition cgraph.h:637
swig_type_info * type
Definition gv_guile.cpp:372
struct swig_cast_info * prev
Definition gv_guile.cpp:375
struct swig_cast_info * next
Definition gv_guile.cpp:374
swig_converter_func converter
Definition gv_guile.cpp:373
swig_type_info ** types
Definition gv_guile.cpp:382
swig_cast_info ** cast_initial
Definition gv_guile.cpp:386
swig_type_info ** type_initial
Definition gv_guile.cpp:385
struct swig_module_info * next
Definition gv_guile.cpp:384
zend_object std
Definition gv_php.cpp:830
const swig_type_info * type
Definition gv_php.cpp:829
swig_dycast_func dcast
Definition gv_guile.cpp:364
void * clientdata
Definition gv_guile.cpp:366
const char * name
Definition gv_guile.cpp:362
const char * str
Definition gv_guile.cpp:363
struct swig_cast_info * cast
Definition gv_guile.cpp:365
static mytime_t T
Definition timing.c:41
Definition grammar.c:93
char * name
Definition grammar.c:98