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