Graphviz 13.0.0~dev.20241220.2304
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 *
935SWIG_Tcl_GetConstantObj(const char *key) {
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#include <gvc/gvc.h>
1782
1784/*** New empty graph */
1785extern Agraph_t *graph(char *name);
1786extern Agraph_t *digraph(char *name);
1787extern Agraph_t *strictgraph(char *name);
1788extern Agraph_t *strictdigraph(char *name);
1789/*** New graph from a dot-syntax string or file */
1790extern Agraph_t *readstring(char *string);
1791extern Agraph_t *read(const char *filename);
1792extern Agraph_t *read(FILE *f);
1793/*** Add new subgraph to existing graph */
1794extern Agraph_t *graph(Agraph_t *g, char *name);
1795
1797/*** Add new node to existing graph */
1798extern Agnode_t *node(Agraph_t *g, char *name);
1799
1801/*** Add new edge between existing nodes */
1802extern Agedge_t *edge(Agnode_t *t, Agnode_t *h);
1803/*** 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 */
1804extern Agedge_t *edge(Agnode_t *t, char *hname);
1805/*** 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 */
1806extern Agedge_t *edge(char *tname, Agnode_t *h);
1807/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */
1808extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname);
1809
1811/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */
1812extern char *setv(Agraph_t *g, char *attr, char *val);
1813extern char *setv(Agnode_t *n, char *attr, char *val);
1814extern char *setv(Agedge_t *e, char *attr, char *val);
1815
1816/*** Set value of existing attribute of graph/node/edge (using attribute handle) */
1817extern char *setv(Agraph_t *g, Agsym_t *a, char *val);
1818extern char *setv(Agnode_t *n, Agsym_t *a, char *val);
1819extern char *setv(Agedge_t *e, Agsym_t *a, char *val);
1820
1822/*** Get value of named attribute of graph/node/edge */
1823extern char *getv(Agraph_t *g, char *attr);
1824extern char *getv(Agnode_t *n, char *attr);
1825extern char *getv(Agedge_t *e, char *attr);
1826
1827/*** Get value of attribute of graph/node/edge (using attribute handle) */
1828extern char *getv(Agraph_t *g, Agsym_t *a);
1829extern char *getv(Agnode_t *n, Agsym_t *a);
1830extern char *getv(Agedge_t *e, Agsym_t *a);
1831
1833extern char *nameof(Agraph_t *g);
1834extern char *nameof(Agnode_t *n);
1835extern char *nameof(Agsym_t *a);
1836
1838extern Agraph_t *findsubg(Agraph_t *g, char *name);
1839extern Agnode_t *findnode(Agraph_t *g, char *name);
1840extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h);
1841
1843extern Agsym_t *findattr(Agraph_t *g, char *name);
1844extern Agsym_t *findattr(Agnode_t *n, char *name);
1845extern Agsym_t *findattr(Agedge_t *e, char *name);
1846
1848extern Agnode_t *headof(Agedge_t *e);
1849extern Agnode_t *tailof(Agedge_t *e);
1850extern Agraph_t *graphof(Agraph_t *g);
1851extern Agraph_t *graphof(Agedge_t *e);
1852extern Agraph_t *graphof(Agnode_t *n);
1853extern Agraph_t *rootof(Agraph_t *g);
1854
1856extern Agnode_t *protonode(Agraph_t *g);
1857extern Agedge_t *protoedge(Agraph_t *g);
1858
1860/*** Iteration termination tests */
1861extern bool ok(Agraph_t *g);
1862extern bool ok(Agnode_t *n);
1863extern bool ok(Agedge_t *e);
1864extern bool ok(Agsym_t *a);
1865
1866/*** Iterate over subgraphs of a graph */
1867extern Agraph_t *firstsubg(Agraph_t *g);
1868extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg);
1869
1870/*** Iterate over supergraphs of a graph (obscure and rarely useful) */
1871extern Agraph_t *firstsupg(Agraph_t *g);
1872extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg);
1873
1874/*** Iterate over edges of a graph */
1875extern Agedge_t *firstedge(Agraph_t *g);
1876extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e);
1877
1878/*** Iterate over outedges of a graph */
1879extern Agedge_t *firstout(Agraph_t *g);
1880extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e);
1881
1882/*** Iterate over edges of a node */
1883extern Agedge_t *firstedge(Agnode_t *n);
1884extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e);
1885
1886/*** Iterate over out-edges of a node */
1887extern Agedge_t *firstout(Agnode_t *n);
1888extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e);
1889
1890/*** Iterate over head nodes reachable from out-edges of a node */
1891extern Agnode_t *firsthead(Agnode_t *n);
1892extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h);
1893
1894/*** Iterate over in-edges of a graph */
1895extern Agedge_t *firstin(Agraph_t *g);
1896extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e);
1897
1898/*** Iterate over in-edges of a node */
1899extern Agedge_t *firstin(Agnode_t *n);
1900extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e);
1901
1902/*** Iterate over tail nodes reachable from in-edges of a node */
1903extern Agnode_t *firsttail(Agnode_t *n);
1904extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t);
1905
1906/*** Iterate over nodes of a graph */
1907extern Agnode_t *firstnode(Agraph_t *g);
1908extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n);
1909
1910/*** Iterate over nodes of an edge */
1911extern Agnode_t *firstnode(Agedge_t *e);
1912extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n);
1913
1914/*** Iterate over attributes of a graph */
1915extern Agsym_t *firstattr(Agraph_t *g);
1916extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a);
1917
1918/*** Iterate over attributes of an edge */
1919extern Agsym_t *firstattr(Agedge_t *e);
1920extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a);
1921
1922/*** Iterate over attributes of a node */
1923extern Agsym_t *firstattr(Agnode_t *n);
1924extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a);
1925
1927extern bool rm(Agraph_t *g);
1928extern bool rm(Agnode_t *n);
1929extern bool rm(Agedge_t *e);
1930
1932/*** Annotate a graph with layout attributes and values using a specific layout engine */
1933extern bool layout(Agraph_t *g, const char *engine);
1934
1936/*** Render a layout into attributes of the graph */
1937extern bool render(Agraph_t *g);
1938/*** Render a layout to stdout */
1939extern bool render(Agraph_t *g, const char *format);
1940/*** Render to an open file */
1941extern bool render(Agraph_t *g, const char *format, FILE *fout);
1942/*** Render a layout to an unopened file by name */
1943extern bool render(Agraph_t *g, const char *format, const char *filename);
1944/*** Render to a string result */
1945#ifdef SWIGJAVA
1946extern char* renderresult(Agraph_t *ing, const char *format);
1947#else
1948extern void renderresult(Agraph_t *g, const char *format, char *outdata);
1949/*** Render to an open channel */
1950extern bool renderchannel(Agraph_t *g, const char *format, const char *channelname);
1951#endif
1952/*** Render a layout to a malloc'ed string, to be free'd by the caller */
1953/*** (deprecated - too easy to leak memory) */
1954/*** (still needed for "eval [gv::renderdata $G tk]" ) */
1955extern char* renderdata(Agraph_t *g, const char *format);
1956
1957/*** Writing graph back to file */
1958extern bool write(Agraph_t *g, const char *filename);
1959extern bool write(Agraph_t *g, FILE *f);
1960
1961/*** Graph transformation tools */
1962extern bool tred(Agraph_t *g);
1963
1964
1965
1966SWIGINTERN int
1967SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char** cptr, size_t* psize, int *alloc)
1968{
1969 int len = 0;
1970 char *cstr = Tcl_GetStringFromObj(obj, &len);
1971 if (cstr) {
1972 if (cptr) *cptr = cstr;
1973 if (psize) *psize = len + 1;
1974 if (alloc) *alloc = SWIG_OLDOBJ;
1975 return SWIG_OK;
1976 }
1977 return SWIG_TypeError;
1978}
1979
1980
1981
1982
1983
1984#include <limits.h>
1985#if !defined(SWIG_NO_LLONG_MAX)
1986# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1987# define LLONG_MAX __LONG_LONG_MAX__
1988# define LLONG_MIN (-LLONG_MAX - 1LL)
1989# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1990# endif
1991#endif
1992
1993
1994SWIGINTERNINLINE Tcl_Obj *
1995SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1996{
1997 return (size < INT_MAX) ? Tcl_NewStringObj(carray, static_cast< int >(size)) : NULL;
1998}
1999
2000
2001SWIGINTERNINLINE Tcl_Obj *
2002SWIG_FromCharPtr(const char *cptr)
2003{
2004 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
2005}
2006
2007
2008 #define SWIG_From_bool Tcl_NewBooleanObj
2009
2010#ifdef __cplusplus
2011extern "C" {
2012#endif
2013SWIGINTERN int
2014_wrap_graph__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2015 char *arg1 = (char *) 0 ;
2016 int res1 ;
2017 char *buf1 = 0 ;
2018 int alloc1 = 0 ;
2019 Agraph_t *result = 0 ;
2020
2021 if (SWIG_GetArgs(interp, objc, objv,"o:gv::graph name ",(void *)0) == TCL_ERROR) SWIG_fail;
2022 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2023 if (!SWIG_IsOK(res1)) {
2024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graph" "', argument " "1"" of type '" "char *""'");
2025 }
2026 arg1 = reinterpret_cast< char * >(buf1);
2027 result = (Agraph_t *)graph(arg1);
2028 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2029 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2030 return TCL_OK;
2031fail:
2032 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2033 return TCL_ERROR;
2034}
2035
2036
2037SWIGINTERN int
2038_wrap_digraph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2039 char *arg1 = (char *) 0 ;
2040 int res1 ;
2041 char *buf1 = 0 ;
2042 int alloc1 = 0 ;
2043 Agraph_t *result = 0 ;
2044
2045 if (SWIG_GetArgs(interp, objc, objv,"o:gv::digraph name ",(void *)0) == TCL_ERROR) SWIG_fail;
2046 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2047 if (!SWIG_IsOK(res1)) {
2048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "digraph" "', argument " "1"" of type '" "char *""'");
2049 }
2050 arg1 = reinterpret_cast< char * >(buf1);
2051 result = (Agraph_t *)digraph(arg1);
2052 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2053 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2054 return TCL_OK;
2055fail:
2056 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2057 return TCL_ERROR;
2058}
2059
2060
2061SWIGINTERN int
2062_wrap_strictgraph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2063 char *arg1 = (char *) 0 ;
2064 int res1 ;
2065 char *buf1 = 0 ;
2066 int alloc1 = 0 ;
2067 Agraph_t *result = 0 ;
2068
2069 if (SWIG_GetArgs(interp, objc, objv,"o:gv::strictgraph name ",(void *)0) == TCL_ERROR) SWIG_fail;
2070 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2071 if (!SWIG_IsOK(res1)) {
2072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strictgraph" "', argument " "1"" of type '" "char *""'");
2073 }
2074 arg1 = reinterpret_cast< char * >(buf1);
2075 result = (Agraph_t *)strictgraph(arg1);
2076 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2077 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2078 return TCL_OK;
2079fail:
2080 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2081 return TCL_ERROR;
2082}
2083
2084
2085SWIGINTERN int
2086_wrap_strictdigraph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2087 char *arg1 = (char *) 0 ;
2088 int res1 ;
2089 char *buf1 = 0 ;
2090 int alloc1 = 0 ;
2091 Agraph_t *result = 0 ;
2092
2093 if (SWIG_GetArgs(interp, objc, objv,"o:gv::strictdigraph name ",(void *)0) == TCL_ERROR) SWIG_fail;
2094 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2095 if (!SWIG_IsOK(res1)) {
2096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strictdigraph" "', argument " "1"" of type '" "char *""'");
2097 }
2098 arg1 = reinterpret_cast< char * >(buf1);
2099 result = (Agraph_t *)strictdigraph(arg1);
2100 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2101 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2102 return TCL_OK;
2103fail:
2104 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2105 return TCL_ERROR;
2106}
2107
2108
2109SWIGINTERN int
2110_wrap_readstring(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2111 char *arg1 = (char *) 0 ;
2112 int res1 ;
2113 char *buf1 = 0 ;
2114 int alloc1 = 0 ;
2115 Agraph_t *result = 0 ;
2116
2117 if (SWIG_GetArgs(interp, objc, objv,"o:gv::readstring string ",(void *)0) == TCL_ERROR) SWIG_fail;
2118 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2119 if (!SWIG_IsOK(res1)) {
2120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "readstring" "', argument " "1"" of type '" "char *""'");
2121 }
2122 arg1 = reinterpret_cast< char * >(buf1);
2123 result = (Agraph_t *)readstring(arg1);
2124 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2125 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2126 return TCL_OK;
2127fail:
2128 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2129 return TCL_ERROR;
2130}
2131
2132
2133SWIGINTERN int
2134_wrap_read__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2135 char *arg1 = (char *) 0 ;
2136 int res1 ;
2137 char *buf1 = 0 ;
2138 int alloc1 = 0 ;
2139 Agraph_t *result = 0 ;
2140
2141 if (SWIG_GetArgs(interp, objc, objv,"o:gv::read filename ",(void *)0) == TCL_ERROR) SWIG_fail;
2142 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2143 if (!SWIG_IsOK(res1)) {
2144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read" "', argument " "1"" of type '" "char const *""'");
2145 }
2146 arg1 = reinterpret_cast< char * >(buf1);
2147 result = (Agraph_t *)read((char const *)arg1);
2148 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2149 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2150 return TCL_OK;
2151fail:
2152 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2153 return TCL_ERROR;
2154}
2155
2156
2157SWIGINTERN int
2158_wrap_read__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2159 FILE *arg1 = (FILE *) 0 ;
2160 void *argp1 = 0 ;
2161 int res1 = 0 ;
2162 Agraph_t *result = 0 ;
2163
2164 if (SWIG_GetArgs(interp, objc, objv,"o:gv::read f ",(void *)0) == TCL_ERROR) SWIG_fail;
2165 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2166 if (!SWIG_IsOK(res1)) {
2167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read" "', argument " "1"" of type '" "FILE *""'");
2168 }
2169 arg1 = reinterpret_cast< FILE * >(argp1);
2170 result = (Agraph_t *)read(arg1);
2171 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2172 return TCL_OK;
2173fail:
2174 return TCL_ERROR;
2175}
2176
2177
2178SWIGINTERN int
2179_wrap_read(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2180 Tcl_Obj *const *argv = objv+1;
2181 int argc = objc-1;
2182 if (argc == 1) {
2183 int _v = 0;
2184 void *vptr = 0;
2185 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FILE, 0);
2186 _v = SWIG_CheckState(res);
2187 if (_v) {
2188 return _wrap_read__SWIG_1(clientData, interp, objc, argv - 1);
2189 }
2190 }
2191 if (argc == 1) {
2192 int _v = 0;
2193 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2194 _v = SWIG_CheckState(res);
2195 if (_v) {
2196 return _wrap_read__SWIG_0(clientData, interp, objc, argv - 1);
2197 }
2198 }
2199
2200 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'read'.\n"
2201 " Possible C/C++ prototypes are:\n"
2202 " read(char const *)\n"
2203 " read(FILE *)\n", TCL_STATIC);
2204 return TCL_ERROR;
2205}
2206
2207
2208SWIGINTERN int
2209_wrap_graph__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2210 Agraph_t *arg1 = (Agraph_t *) 0 ;
2211 char *arg2 = (char *) 0 ;
2212 void *argp1 = 0 ;
2213 int res1 = 0 ;
2214 int res2 ;
2215 char *buf2 = 0 ;
2216 int alloc2 = 0 ;
2217 Agraph_t *result = 0 ;
2218
2219 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::graph g name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2220 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2221 if (!SWIG_IsOK(res1)) {
2222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graph" "', argument " "1"" of type '" "Agraph_t *""'");
2223 }
2224 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2225 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2226 if (!SWIG_IsOK(res2)) {
2227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "graph" "', argument " "2"" of type '" "char *""'");
2228 }
2229 arg2 = reinterpret_cast< char * >(buf2);
2230 result = (Agraph_t *)graph(arg1,arg2);
2231 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
2232 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2233 return TCL_OK;
2234fail:
2235 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2236 return TCL_ERROR;
2237}
2238
2239
2240SWIGINTERN int
2241_wrap_graph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2242 Tcl_Obj *const *argv = objv+1;
2243 int argc = objc-1;
2244 if (argc == 1) {
2245 int _v = 0;
2246 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2247 _v = SWIG_CheckState(res);
2248 if (_v) {
2249 return _wrap_graph__SWIG_0(clientData, interp, objc, argv - 1);
2250 }
2251 }
2252 if (argc == 2) {
2253 int _v = 0;
2254 void *vptr = 0;
2255 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
2256 _v = SWIG_CheckState(res);
2257 if (_v) {
2258 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2259 _v = SWIG_CheckState(res);
2260 if (_v) {
2261 return _wrap_graph__SWIG_1(clientData, interp, objc, argv - 1);
2262 }
2263 }
2264 }
2265
2266 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'graph'.\n"
2267 " Possible C/C++ prototypes are:\n"
2268 " graph(char *)\n"
2269 " graph(Agraph_t *,char *)\n", TCL_STATIC);
2270 return TCL_ERROR;
2271}
2272
2273
2274SWIGINTERN int
2275_wrap_node(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2276 Agraph_t *arg1 = (Agraph_t *) 0 ;
2277 char *arg2 = (char *) 0 ;
2278 void *argp1 = 0 ;
2279 int res1 = 0 ;
2280 int res2 ;
2281 char *buf2 = 0 ;
2282 int alloc2 = 0 ;
2283 Agnode_t *result = 0 ;
2284
2285 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::node g name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2286 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2287 if (!SWIG_IsOK(res1)) {
2288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "node" "', argument " "1"" of type '" "Agraph_t *""'");
2289 }
2290 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2291 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2292 if (!SWIG_IsOK(res2)) {
2293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "node" "', argument " "2"" of type '" "char *""'");
2294 }
2295 arg2 = reinterpret_cast< char * >(buf2);
2296 result = (Agnode_t *)node(arg1,arg2);
2297 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
2298 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2299 return TCL_OK;
2300fail:
2301 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2302 return TCL_ERROR;
2303}
2304
2305
2306SWIGINTERN int
2307_wrap_edge__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2308 Agnode_t *arg1 = (Agnode_t *) 0 ;
2309 Agnode_t *arg2 = (Agnode_t *) 0 ;
2310 void *argp1 = 0 ;
2311 int res1 = 0 ;
2312 void *argp2 = 0 ;
2313 int res2 = 0 ;
2314 Agedge_t *result = 0 ;
2315
2316 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::edge t h ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2317 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2318 if (!SWIG_IsOK(res1)) {
2319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "Agnode_t *""'");
2320 }
2321 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2322 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
2323 if (!SWIG_IsOK(res2)) {
2324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "Agnode_t *""'");
2325 }
2326 arg2 = reinterpret_cast< Agnode_t * >(argp2);
2327 result = (Agedge_t *)edge(arg1,arg2);
2328 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
2329 return TCL_OK;
2330fail:
2331 return TCL_ERROR;
2332}
2333
2334
2335SWIGINTERN int
2336_wrap_edge__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2337 Agnode_t *arg1 = (Agnode_t *) 0 ;
2338 char *arg2 = (char *) 0 ;
2339 void *argp1 = 0 ;
2340 int res1 = 0 ;
2341 int res2 ;
2342 char *buf2 = 0 ;
2343 int alloc2 = 0 ;
2344 Agedge_t *result = 0 ;
2345
2346 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::edge t hname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2347 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2348 if (!SWIG_IsOK(res1)) {
2349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "Agnode_t *""'");
2350 }
2351 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2352 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2353 if (!SWIG_IsOK(res2)) {
2354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "char *""'");
2355 }
2356 arg2 = reinterpret_cast< char * >(buf2);
2357 result = (Agedge_t *)edge(arg1,arg2);
2358 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
2359 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2360 return TCL_OK;
2361fail:
2362 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2363 return TCL_ERROR;
2364}
2365
2366
2367SWIGINTERN int
2368_wrap_edge__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2369 char *arg1 = (char *) 0 ;
2370 Agnode_t *arg2 = (Agnode_t *) 0 ;
2371 int res1 ;
2372 char *buf1 = 0 ;
2373 int alloc1 = 0 ;
2374 void *argp2 = 0 ;
2375 int res2 = 0 ;
2376 Agedge_t *result = 0 ;
2377
2378 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::edge tname h ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2379 res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
2380 if (!SWIG_IsOK(res1)) {
2381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "char *""'");
2382 }
2383 arg1 = reinterpret_cast< char * >(buf1);
2384 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
2385 if (!SWIG_IsOK(res2)) {
2386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "Agnode_t *""'");
2387 }
2388 arg2 = reinterpret_cast< Agnode_t * >(argp2);
2389 result = (Agedge_t *)edge(arg1,arg2);
2390 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
2391 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2392 return TCL_OK;
2393fail:
2394 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2395 return TCL_ERROR;
2396}
2397
2398
2399SWIGINTERN int
2400_wrap_edge__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2401 Agraph_t *arg1 = (Agraph_t *) 0 ;
2402 char *arg2 = (char *) 0 ;
2403 char *arg3 = (char *) 0 ;
2404 void *argp1 = 0 ;
2405 int res1 = 0 ;
2406 int res2 ;
2407 char *buf2 = 0 ;
2408 int alloc2 = 0 ;
2409 int res3 ;
2410 char *buf3 = 0 ;
2411 int alloc3 = 0 ;
2412 Agedge_t *result = 0 ;
2413
2414 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::edge g tname hname ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2415 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2416 if (!SWIG_IsOK(res1)) {
2417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "edge" "', argument " "1"" of type '" "Agraph_t *""'");
2418 }
2419 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2420 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2421 if (!SWIG_IsOK(res2)) {
2422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "edge" "', argument " "2"" of type '" "char *""'");
2423 }
2424 arg2 = reinterpret_cast< char * >(buf2);
2425 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2426 if (!SWIG_IsOK(res3)) {
2427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "edge" "', argument " "3"" of type '" "char *""'");
2428 }
2429 arg3 = reinterpret_cast< char * >(buf3);
2430 result = (Agedge_t *)edge(arg1,arg2,arg3);
2431 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
2432 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2433 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2434 return TCL_OK;
2435fail:
2436 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2437 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2438 return TCL_ERROR;
2439}
2440
2441
2442SWIGINTERN int
2443_wrap_edge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2444 Tcl_Obj *const *argv = objv+1;
2445 int argc = objc-1;
2446 if (argc == 2) {
2447 int _v = 0;
2448 void *vptr = 0;
2449 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
2450 _v = SWIG_CheckState(res);
2451 if (_v) {
2452 void *vptr = 0;
2453 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
2454 _v = SWIG_CheckState(res);
2455 if (_v) {
2456 return _wrap_edge__SWIG_0(clientData, interp, objc, argv - 1);
2457 }
2458 }
2459 }
2460 if (argc == 2) {
2461 int _v = 0;
2462 void *vptr = 0;
2463 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
2464 _v = SWIG_CheckState(res);
2465 if (_v) {
2466 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2467 _v = SWIG_CheckState(res);
2468 if (_v) {
2469 return _wrap_edge__SWIG_1(clientData, interp, objc, argv - 1);
2470 }
2471 }
2472 }
2473 if (argc == 2) {
2474 int _v = 0;
2475 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2476 _v = SWIG_CheckState(res);
2477 if (_v) {
2478 void *vptr = 0;
2479 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
2480 _v = SWIG_CheckState(res);
2481 if (_v) {
2482 return _wrap_edge__SWIG_2(clientData, interp, objc, argv - 1);
2483 }
2484 }
2485 }
2486 if (argc == 3) {
2487 int _v = 0;
2488 void *vptr = 0;
2489 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
2490 _v = SWIG_CheckState(res);
2491 if (_v) {
2492 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2493 _v = SWIG_CheckState(res);
2494 if (_v) {
2495 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2496 _v = SWIG_CheckState(res);
2497 if (_v) {
2498 return _wrap_edge__SWIG_3(clientData, interp, objc, argv - 1);
2499 }
2500 }
2501 }
2502 }
2503
2504 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'edge'.\n"
2505 " Possible C/C++ prototypes are:\n"
2506 " edge(Agnode_t *,Agnode_t *)\n"
2507 " edge(Agnode_t *,char *)\n"
2508 " edge(char *,Agnode_t *)\n"
2509 " edge(Agraph_t *,char *,char *)\n", TCL_STATIC);
2510 return TCL_ERROR;
2511}
2512
2513
2514SWIGINTERN int
2515_wrap_setv__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2516 Agraph_t *arg1 = (Agraph_t *) 0 ;
2517 char *arg2 = (char *) 0 ;
2518 char *arg3 = (char *) 0 ;
2519 void *argp1 = 0 ;
2520 int res1 = 0 ;
2521 int res2 ;
2522 char *buf2 = 0 ;
2523 int alloc2 = 0 ;
2524 int res3 ;
2525 char *buf3 = 0 ;
2526 int alloc3 = 0 ;
2527 char *result = 0 ;
2528
2529 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::setv g attr val ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2530 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2531 if (!SWIG_IsOK(res1)) {
2532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agraph_t *""'");
2533 }
2534 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2535 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2536 if (!SWIG_IsOK(res2)) {
2537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "char *""'");
2538 }
2539 arg2 = reinterpret_cast< char * >(buf2);
2540 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2541 if (!SWIG_IsOK(res3)) {
2542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
2543 }
2544 arg3 = reinterpret_cast< char * >(buf3);
2545 result = (char *)setv(arg1,arg2,arg3);
2546 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2547 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2548 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2549 return TCL_OK;
2550fail:
2551 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2552 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2553 return TCL_ERROR;
2554}
2555
2556
2557SWIGINTERN int
2558_wrap_setv__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2559 Agnode_t *arg1 = (Agnode_t *) 0 ;
2560 char *arg2 = (char *) 0 ;
2561 char *arg3 = (char *) 0 ;
2562 void *argp1 = 0 ;
2563 int res1 = 0 ;
2564 int res2 ;
2565 char *buf2 = 0 ;
2566 int alloc2 = 0 ;
2567 int res3 ;
2568 char *buf3 = 0 ;
2569 int alloc3 = 0 ;
2570 char *result = 0 ;
2571
2572 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::setv n attr val ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2573 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2574 if (!SWIG_IsOK(res1)) {
2575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agnode_t *""'");
2576 }
2577 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2578 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2579 if (!SWIG_IsOK(res2)) {
2580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "char *""'");
2581 }
2582 arg2 = reinterpret_cast< char * >(buf2);
2583 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2584 if (!SWIG_IsOK(res3)) {
2585 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
2586 }
2587 arg3 = reinterpret_cast< char * >(buf3);
2588 result = (char *)setv(arg1,arg2,arg3);
2589 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2590 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2591 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2592 return TCL_OK;
2593fail:
2594 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2595 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2596 return TCL_ERROR;
2597}
2598
2599
2600SWIGINTERN int
2601_wrap_setv__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2602 Agedge_t *arg1 = (Agedge_t *) 0 ;
2603 char *arg2 = (char *) 0 ;
2604 char *arg3 = (char *) 0 ;
2605 void *argp1 = 0 ;
2606 int res1 = 0 ;
2607 int res2 ;
2608 char *buf2 = 0 ;
2609 int alloc2 = 0 ;
2610 int res3 ;
2611 char *buf3 = 0 ;
2612 int alloc3 = 0 ;
2613 char *result = 0 ;
2614
2615 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::setv e attr val ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2616 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
2617 if (!SWIG_IsOK(res1)) {
2618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agedge_t *""'");
2619 }
2620 arg1 = reinterpret_cast< Agedge_t * >(argp1);
2621 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2622 if (!SWIG_IsOK(res2)) {
2623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "char *""'");
2624 }
2625 arg2 = reinterpret_cast< char * >(buf2);
2626 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2627 if (!SWIG_IsOK(res3)) {
2628 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
2629 }
2630 arg3 = reinterpret_cast< char * >(buf3);
2631 result = (char *)setv(arg1,arg2,arg3);
2632 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2633 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2634 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2635 return TCL_OK;
2636fail:
2637 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2638 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2639 return TCL_ERROR;
2640}
2641
2642
2643SWIGINTERN int
2644_wrap_setv__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2645 Agraph_t *arg1 = (Agraph_t *) 0 ;
2646 Agsym_t *arg2 = (Agsym_t *) 0 ;
2647 char *arg3 = (char *) 0 ;
2648 void *argp1 = 0 ;
2649 int res1 = 0 ;
2650 void *argp2 = 0 ;
2651 int res2 = 0 ;
2652 int res3 ;
2653 char *buf3 = 0 ;
2654 int alloc3 = 0 ;
2655 char *result = 0 ;
2656
2657 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::setv g a val ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2658 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2659 if (!SWIG_IsOK(res1)) {
2660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agraph_t *""'");
2661 }
2662 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2663 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
2664 if (!SWIG_IsOK(res2)) {
2665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "Agsym_t *""'");
2666 }
2667 arg2 = reinterpret_cast< Agsym_t * >(argp2);
2668 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2669 if (!SWIG_IsOK(res3)) {
2670 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
2671 }
2672 arg3 = reinterpret_cast< char * >(buf3);
2673 result = (char *)setv(arg1,arg2,arg3);
2674 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2675 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2676 return TCL_OK;
2677fail:
2678 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2679 return TCL_ERROR;
2680}
2681
2682
2683SWIGINTERN int
2684_wrap_setv__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2685 Agnode_t *arg1 = (Agnode_t *) 0 ;
2686 Agsym_t *arg2 = (Agsym_t *) 0 ;
2687 char *arg3 = (char *) 0 ;
2688 void *argp1 = 0 ;
2689 int res1 = 0 ;
2690 void *argp2 = 0 ;
2691 int res2 = 0 ;
2692 int res3 ;
2693 char *buf3 = 0 ;
2694 int alloc3 = 0 ;
2695 char *result = 0 ;
2696
2697 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::setv n a val ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2698 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2699 if (!SWIG_IsOK(res1)) {
2700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agnode_t *""'");
2701 }
2702 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2703 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
2704 if (!SWIG_IsOK(res2)) {
2705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "Agsym_t *""'");
2706 }
2707 arg2 = reinterpret_cast< Agsym_t * >(argp2);
2708 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2709 if (!SWIG_IsOK(res3)) {
2710 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
2711 }
2712 arg3 = reinterpret_cast< char * >(buf3);
2713 result = (char *)setv(arg1,arg2,arg3);
2714 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2715 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2716 return TCL_OK;
2717fail:
2718 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2719 return TCL_ERROR;
2720}
2721
2722
2723SWIGINTERN int
2724_wrap_setv__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2725 Agedge_t *arg1 = (Agedge_t *) 0 ;
2726 Agsym_t *arg2 = (Agsym_t *) 0 ;
2727 char *arg3 = (char *) 0 ;
2728 void *argp1 = 0 ;
2729 int res1 = 0 ;
2730 void *argp2 = 0 ;
2731 int res2 = 0 ;
2732 int res3 ;
2733 char *buf3 = 0 ;
2734 int alloc3 = 0 ;
2735 char *result = 0 ;
2736
2737 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::setv e a val ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2738 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
2739 if (!SWIG_IsOK(res1)) {
2740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setv" "', argument " "1"" of type '" "Agedge_t *""'");
2741 }
2742 arg1 = reinterpret_cast< Agedge_t * >(argp1);
2743 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
2744 if (!SWIG_IsOK(res2)) {
2745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setv" "', argument " "2"" of type '" "Agsym_t *""'");
2746 }
2747 arg2 = reinterpret_cast< Agsym_t * >(argp2);
2748 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
2749 if (!SWIG_IsOK(res3)) {
2750 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "setv" "', argument " "3"" of type '" "char *""'");
2751 }
2752 arg3 = reinterpret_cast< char * >(buf3);
2753 result = (char *)setv(arg1,arg2,arg3);
2754 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2755 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2756 return TCL_OK;
2757fail:
2758 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2759 return TCL_ERROR;
2760}
2761
2762
2763SWIGINTERN int
2764_wrap_setv(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2765 Tcl_Obj *const *argv = objv+1;
2766 int argc = objc-1;
2767 if (argc == 3) {
2768 int _v = 0;
2769 void *vptr = 0;
2770 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
2771 _v = SWIG_CheckState(res);
2772 if (_v) {
2773 void *vptr = 0;
2774 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
2775 _v = SWIG_CheckState(res);
2776 if (_v) {
2777 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2778 _v = SWIG_CheckState(res);
2779 if (_v) {
2780 return _wrap_setv__SWIG_3(clientData, interp, objc, argv - 1);
2781 }
2782 }
2783 }
2784 }
2785 if (argc == 3) {
2786 int _v = 0;
2787 void *vptr = 0;
2788 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
2789 _v = SWIG_CheckState(res);
2790 if (_v) {
2791 void *vptr = 0;
2792 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
2793 _v = SWIG_CheckState(res);
2794 if (_v) {
2795 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2796 _v = SWIG_CheckState(res);
2797 if (_v) {
2798 return _wrap_setv__SWIG_4(clientData, interp, objc, argv - 1);
2799 }
2800 }
2801 }
2802 }
2803 if (argc == 3) {
2804 int _v = 0;
2805 void *vptr = 0;
2806 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
2807 _v = SWIG_CheckState(res);
2808 if (_v) {
2809 void *vptr = 0;
2810 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
2811 _v = SWIG_CheckState(res);
2812 if (_v) {
2813 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2814 _v = SWIG_CheckState(res);
2815 if (_v) {
2816 return _wrap_setv__SWIG_5(clientData, interp, objc, argv - 1);
2817 }
2818 }
2819 }
2820 }
2821 if (argc == 3) {
2822 int _v = 0;
2823 void *vptr = 0;
2824 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
2825 _v = SWIG_CheckState(res);
2826 if (_v) {
2827 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2828 _v = SWIG_CheckState(res);
2829 if (_v) {
2830 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2831 _v = SWIG_CheckState(res);
2832 if (_v) {
2833 return _wrap_setv__SWIG_0(clientData, interp, objc, argv - 1);
2834 }
2835 }
2836 }
2837 }
2838 if (argc == 3) {
2839 int _v = 0;
2840 void *vptr = 0;
2841 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
2842 _v = SWIG_CheckState(res);
2843 if (_v) {
2844 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2845 _v = SWIG_CheckState(res);
2846 if (_v) {
2847 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2848 _v = SWIG_CheckState(res);
2849 if (_v) {
2850 return _wrap_setv__SWIG_1(clientData, interp, objc, argv - 1);
2851 }
2852 }
2853 }
2854 }
2855 if (argc == 3) {
2856 int _v = 0;
2857 void *vptr = 0;
2858 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
2859 _v = SWIG_CheckState(res);
2860 if (_v) {
2861 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
2862 _v = SWIG_CheckState(res);
2863 if (_v) {
2864 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
2865 _v = SWIG_CheckState(res);
2866 if (_v) {
2867 return _wrap_setv__SWIG_2(clientData, interp, objc, argv - 1);
2868 }
2869 }
2870 }
2871 }
2872
2873 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'setv'.\n"
2874 " Possible C/C++ prototypes are:\n"
2875 " setv(Agraph_t *,char *,char *)\n"
2876 " setv(Agnode_t *,char *,char *)\n"
2877 " setv(Agedge_t *,char *,char *)\n"
2878 " setv(Agraph_t *,Agsym_t *,char *)\n"
2879 " setv(Agnode_t *,Agsym_t *,char *)\n"
2880 " setv(Agedge_t *,Agsym_t *,char *)\n", TCL_STATIC);
2881 return TCL_ERROR;
2882}
2883
2884
2885SWIGINTERN int
2886_wrap_getv__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2887 Agraph_t *arg1 = (Agraph_t *) 0 ;
2888 char *arg2 = (char *) 0 ;
2889 void *argp1 = 0 ;
2890 int res1 = 0 ;
2891 int res2 ;
2892 char *buf2 = 0 ;
2893 int alloc2 = 0 ;
2894 char *result = 0 ;
2895
2896 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::getv g attr ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2897 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2898 if (!SWIG_IsOK(res1)) {
2899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agraph_t *""'");
2900 }
2901 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2902 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2903 if (!SWIG_IsOK(res2)) {
2904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "char *""'");
2905 }
2906 arg2 = reinterpret_cast< char * >(buf2);
2907 result = (char *)getv(arg1,arg2);
2908 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2909 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2910 return TCL_OK;
2911fail:
2912 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2913 return TCL_ERROR;
2914}
2915
2916
2917SWIGINTERN int
2918_wrap_getv__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2919 Agnode_t *arg1 = (Agnode_t *) 0 ;
2920 char *arg2 = (char *) 0 ;
2921 void *argp1 = 0 ;
2922 int res1 = 0 ;
2923 int res2 ;
2924 char *buf2 = 0 ;
2925 int alloc2 = 0 ;
2926 char *result = 0 ;
2927
2928 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::getv n attr ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2929 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
2930 if (!SWIG_IsOK(res1)) {
2931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agnode_t *""'");
2932 }
2933 arg1 = reinterpret_cast< Agnode_t * >(argp1);
2934 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2935 if (!SWIG_IsOK(res2)) {
2936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "char *""'");
2937 }
2938 arg2 = reinterpret_cast< char * >(buf2);
2939 result = (char *)getv(arg1,arg2);
2940 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2941 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2942 return TCL_OK;
2943fail:
2944 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2945 return TCL_ERROR;
2946}
2947
2948
2949SWIGINTERN int
2950_wrap_getv__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2951 Agedge_t *arg1 = (Agedge_t *) 0 ;
2952 char *arg2 = (char *) 0 ;
2953 void *argp1 = 0 ;
2954 int res1 = 0 ;
2955 int res2 ;
2956 char *buf2 = 0 ;
2957 int alloc2 = 0 ;
2958 char *result = 0 ;
2959
2960 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::getv e attr ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2961 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
2962 if (!SWIG_IsOK(res1)) {
2963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agedge_t *""'");
2964 }
2965 arg1 = reinterpret_cast< Agedge_t * >(argp1);
2966 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
2967 if (!SWIG_IsOK(res2)) {
2968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "char *""'");
2969 }
2970 arg2 = reinterpret_cast< char * >(buf2);
2971 result = (char *)getv(arg1,arg2);
2972 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2973 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2974 return TCL_OK;
2975fail:
2976 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
2977 return TCL_ERROR;
2978}
2979
2980
2981SWIGINTERN int
2982_wrap_getv__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
2983 Agraph_t *arg1 = (Agraph_t *) 0 ;
2984 Agsym_t *arg2 = (Agsym_t *) 0 ;
2985 void *argp1 = 0 ;
2986 int res1 = 0 ;
2987 void *argp2 = 0 ;
2988 int res2 = 0 ;
2989 char *result = 0 ;
2990
2991 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::getv g a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2992 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
2993 if (!SWIG_IsOK(res1)) {
2994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agraph_t *""'");
2995 }
2996 arg1 = reinterpret_cast< Agraph_t * >(argp1);
2997 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
2998 if (!SWIG_IsOK(res2)) {
2999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "Agsym_t *""'");
3000 }
3001 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3002 result = (char *)getv(arg1,arg2);
3003 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
3004 return TCL_OK;
3005fail:
3006 return TCL_ERROR;
3007}
3008
3009
3010SWIGINTERN int
3011_wrap_getv__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3012 Agnode_t *arg1 = (Agnode_t *) 0 ;
3013 Agsym_t *arg2 = (Agsym_t *) 0 ;
3014 void *argp1 = 0 ;
3015 int res1 = 0 ;
3016 void *argp2 = 0 ;
3017 int res2 = 0 ;
3018 char *result = 0 ;
3019
3020 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::getv n a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3021 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3022 if (!SWIG_IsOK(res1)) {
3023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agnode_t *""'");
3024 }
3025 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3026 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3027 if (!SWIG_IsOK(res2)) {
3028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "Agsym_t *""'");
3029 }
3030 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3031 result = (char *)getv(arg1,arg2);
3032 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
3033 return TCL_OK;
3034fail:
3035 return TCL_ERROR;
3036}
3037
3038
3039SWIGINTERN int
3040_wrap_getv__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3041 Agedge_t *arg1 = (Agedge_t *) 0 ;
3042 Agsym_t *arg2 = (Agsym_t *) 0 ;
3043 void *argp1 = 0 ;
3044 int res1 = 0 ;
3045 void *argp2 = 0 ;
3046 int res2 = 0 ;
3047 char *result = 0 ;
3048
3049 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::getv e a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3050 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3051 if (!SWIG_IsOK(res1)) {
3052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getv" "', argument " "1"" of type '" "Agedge_t *""'");
3053 }
3054 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3055 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
3056 if (!SWIG_IsOK(res2)) {
3057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getv" "', argument " "2"" of type '" "Agsym_t *""'");
3058 }
3059 arg2 = reinterpret_cast< Agsym_t * >(argp2);
3060 result = (char *)getv(arg1,arg2);
3061 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
3062 return TCL_OK;
3063fail:
3064 return TCL_ERROR;
3065}
3066
3067
3068SWIGINTERN int
3069_wrap_getv(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3070 Tcl_Obj *const *argv = objv+1;
3071 int argc = objc-1;
3072 if (argc == 2) {
3073 int _v = 0;
3074 void *vptr = 0;
3075 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3076 _v = SWIG_CheckState(res);
3077 if (_v) {
3078 void *vptr = 0;
3079 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3080 _v = SWIG_CheckState(res);
3081 if (_v) {
3082 return _wrap_getv__SWIG_3(clientData, interp, objc, argv - 1);
3083 }
3084 }
3085 }
3086 if (argc == 2) {
3087 int _v = 0;
3088 void *vptr = 0;
3089 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3090 _v = SWIG_CheckState(res);
3091 if (_v) {
3092 void *vptr = 0;
3093 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3094 _v = SWIG_CheckState(res);
3095 if (_v) {
3096 return _wrap_getv__SWIG_4(clientData, interp, objc, argv - 1);
3097 }
3098 }
3099 }
3100 if (argc == 2) {
3101 int _v = 0;
3102 void *vptr = 0;
3103 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3104 _v = SWIG_CheckState(res);
3105 if (_v) {
3106 void *vptr = 0;
3107 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
3108 _v = SWIG_CheckState(res);
3109 if (_v) {
3110 return _wrap_getv__SWIG_5(clientData, interp, objc, argv - 1);
3111 }
3112 }
3113 }
3114 if (argc == 2) {
3115 int _v = 0;
3116 void *vptr = 0;
3117 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3118 _v = SWIG_CheckState(res);
3119 if (_v) {
3120 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3121 _v = SWIG_CheckState(res);
3122 if (_v) {
3123 return _wrap_getv__SWIG_0(clientData, interp, objc, argv - 1);
3124 }
3125 }
3126 }
3127 if (argc == 2) {
3128 int _v = 0;
3129 void *vptr = 0;
3130 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3131 _v = SWIG_CheckState(res);
3132 if (_v) {
3133 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3134 _v = SWIG_CheckState(res);
3135 if (_v) {
3136 return _wrap_getv__SWIG_1(clientData, interp, objc, argv - 1);
3137 }
3138 }
3139 }
3140 if (argc == 2) {
3141 int _v = 0;
3142 void *vptr = 0;
3143 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3144 _v = SWIG_CheckState(res);
3145 if (_v) {
3146 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3147 _v = SWIG_CheckState(res);
3148 if (_v) {
3149 return _wrap_getv__SWIG_2(clientData, interp, objc, argv - 1);
3150 }
3151 }
3152 }
3153
3154 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'getv'.\n"
3155 " Possible C/C++ prototypes are:\n"
3156 " getv(Agraph_t *,char *)\n"
3157 " getv(Agnode_t *,char *)\n"
3158 " getv(Agedge_t *,char *)\n"
3159 " getv(Agraph_t *,Agsym_t *)\n"
3160 " getv(Agnode_t *,Agsym_t *)\n"
3161 " getv(Agedge_t *,Agsym_t *)\n", TCL_STATIC);
3162 return TCL_ERROR;
3163}
3164
3165
3166SWIGINTERN int
3167_wrap_nameof__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3168 Agraph_t *arg1 = (Agraph_t *) 0 ;
3169 void *argp1 = 0 ;
3170 int res1 = 0 ;
3171 char *result = 0 ;
3172
3173 if (SWIG_GetArgs(interp, objc, objv,"o:gv::nameof g ",(void *)0) == TCL_ERROR) SWIG_fail;
3174 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3175 if (!SWIG_IsOK(res1)) {
3176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nameof" "', argument " "1"" of type '" "Agraph_t *""'");
3177 }
3178 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3179 result = (char *)nameof(arg1);
3180 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
3181 return TCL_OK;
3182fail:
3183 return TCL_ERROR;
3184}
3185
3186
3187SWIGINTERN int
3188_wrap_nameof__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3189 Agnode_t *arg1 = (Agnode_t *) 0 ;
3190 void *argp1 = 0 ;
3191 int res1 = 0 ;
3192 char *result = 0 ;
3193
3194 if (SWIG_GetArgs(interp, objc, objv,"o:gv::nameof n ",(void *)0) == TCL_ERROR) SWIG_fail;
3195 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3196 if (!SWIG_IsOK(res1)) {
3197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nameof" "', argument " "1"" of type '" "Agnode_t *""'");
3198 }
3199 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3200 result = (char *)nameof(arg1);
3201 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
3202 return TCL_OK;
3203fail:
3204 return TCL_ERROR;
3205}
3206
3207
3208SWIGINTERN int
3209_wrap_nameof__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3210 Agsym_t *arg1 = (Agsym_t *) 0 ;
3211 void *argp1 = 0 ;
3212 int res1 = 0 ;
3213 char *result = 0 ;
3214
3215 if (SWIG_GetArgs(interp, objc, objv,"o:gv::nameof a ",(void *)0) == TCL_ERROR) SWIG_fail;
3216 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agsym_t, 0 | 0 );
3217 if (!SWIG_IsOK(res1)) {
3218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nameof" "', argument " "1"" of type '" "Agsym_t *""'");
3219 }
3220 arg1 = reinterpret_cast< Agsym_t * >(argp1);
3221 result = (char *)nameof(arg1);
3222 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
3223 return TCL_OK;
3224fail:
3225 return TCL_ERROR;
3226}
3227
3228
3229SWIGINTERN int
3230_wrap_nameof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3231 Tcl_Obj *const *argv = objv+1;
3232 int argc = objc-1;
3233 if (argc == 1) {
3234 int _v = 0;
3235 void *vptr = 0;
3236 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3237 _v = SWIG_CheckState(res);
3238 if (_v) {
3239 return _wrap_nameof__SWIG_0(clientData, interp, objc, argv - 1);
3240 }
3241 }
3242 if (argc == 1) {
3243 int _v = 0;
3244 void *vptr = 0;
3245 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3246 _v = SWIG_CheckState(res);
3247 if (_v) {
3248 return _wrap_nameof__SWIG_1(clientData, interp, objc, argv - 1);
3249 }
3250 }
3251 if (argc == 1) {
3252 int _v = 0;
3253 void *vptr = 0;
3254 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agsym_t, 0);
3255 _v = SWIG_CheckState(res);
3256 if (_v) {
3257 return _wrap_nameof__SWIG_2(clientData, interp, objc, argv - 1);
3258 }
3259 }
3260
3261 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'nameof'.\n"
3262 " Possible C/C++ prototypes are:\n"
3263 " nameof(Agraph_t *)\n"
3264 " nameof(Agnode_t *)\n"
3265 " nameof(Agsym_t *)\n", TCL_STATIC);
3266 return TCL_ERROR;
3267}
3268
3269
3270SWIGINTERN int
3271_wrap_findsubg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3272 Agraph_t *arg1 = (Agraph_t *) 0 ;
3273 char *arg2 = (char *) 0 ;
3274 void *argp1 = 0 ;
3275 int res1 = 0 ;
3276 int res2 ;
3277 char *buf2 = 0 ;
3278 int alloc2 = 0 ;
3279 Agraph_t *result = 0 ;
3280
3281 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::findsubg g name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3282 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3283 if (!SWIG_IsOK(res1)) {
3284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findsubg" "', argument " "1"" of type '" "Agraph_t *""'");
3285 }
3286 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3287 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
3288 if (!SWIG_IsOK(res2)) {
3289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findsubg" "', argument " "2"" of type '" "char *""'");
3290 }
3291 arg2 = reinterpret_cast< char * >(buf2);
3292 result = (Agraph_t *)findsubg(arg1,arg2);
3293 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3294 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3295 return TCL_OK;
3296fail:
3297 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3298 return TCL_ERROR;
3299}
3300
3301
3302SWIGINTERN int
3303_wrap_findnode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3304 Agraph_t *arg1 = (Agraph_t *) 0 ;
3305 char *arg2 = (char *) 0 ;
3306 void *argp1 = 0 ;
3307 int res1 = 0 ;
3308 int res2 ;
3309 char *buf2 = 0 ;
3310 int alloc2 = 0 ;
3311 Agnode_t *result = 0 ;
3312
3313 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::findnode g name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3314 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3315 if (!SWIG_IsOK(res1)) {
3316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findnode" "', argument " "1"" of type '" "Agraph_t *""'");
3317 }
3318 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3319 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
3320 if (!SWIG_IsOK(res2)) {
3321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findnode" "', argument " "2"" of type '" "char *""'");
3322 }
3323 arg2 = reinterpret_cast< char * >(buf2);
3324 result = (Agnode_t *)findnode(arg1,arg2);
3325 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
3326 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3327 return TCL_OK;
3328fail:
3329 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3330 return TCL_ERROR;
3331}
3332
3333
3334SWIGINTERN int
3335_wrap_findedge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3336 Agnode_t *arg1 = (Agnode_t *) 0 ;
3337 Agnode_t *arg2 = (Agnode_t *) 0 ;
3338 void *argp1 = 0 ;
3339 int res1 = 0 ;
3340 void *argp2 = 0 ;
3341 int res2 = 0 ;
3342 Agedge_t *result = 0 ;
3343
3344 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::findedge t h ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3345 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3346 if (!SWIG_IsOK(res1)) {
3347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findedge" "', argument " "1"" of type '" "Agnode_t *""'");
3348 }
3349 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3350 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
3351 if (!SWIG_IsOK(res2)) {
3352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findedge" "', argument " "2"" of type '" "Agnode_t *""'");
3353 }
3354 arg2 = reinterpret_cast< Agnode_t * >(argp2);
3355 result = (Agedge_t *)findedge(arg1,arg2);
3356 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
3357 return TCL_OK;
3358fail:
3359 return TCL_ERROR;
3360}
3361
3362
3363SWIGINTERN int
3364_wrap_findattr__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3365 Agraph_t *arg1 = (Agraph_t *) 0 ;
3366 char *arg2 = (char *) 0 ;
3367 void *argp1 = 0 ;
3368 int res1 = 0 ;
3369 int res2 ;
3370 char *buf2 = 0 ;
3371 int alloc2 = 0 ;
3372 Agsym_t *result = 0 ;
3373
3374 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::findattr g name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3375 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3376 if (!SWIG_IsOK(res1)) {
3377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findattr" "', argument " "1"" of type '" "Agraph_t *""'");
3378 }
3379 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3380 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
3381 if (!SWIG_IsOK(res2)) {
3382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findattr" "', argument " "2"" of type '" "char *""'");
3383 }
3384 arg2 = reinterpret_cast< char * >(buf2);
3385 result = (Agsym_t *)findattr(arg1,arg2);
3386 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
3387 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3388 return TCL_OK;
3389fail:
3390 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3391 return TCL_ERROR;
3392}
3393
3394
3395SWIGINTERN int
3396_wrap_findattr__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3397 Agnode_t *arg1 = (Agnode_t *) 0 ;
3398 char *arg2 = (char *) 0 ;
3399 void *argp1 = 0 ;
3400 int res1 = 0 ;
3401 int res2 ;
3402 char *buf2 = 0 ;
3403 int alloc2 = 0 ;
3404 Agsym_t *result = 0 ;
3405
3406 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::findattr n name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3407 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3408 if (!SWIG_IsOK(res1)) {
3409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findattr" "', argument " "1"" of type '" "Agnode_t *""'");
3410 }
3411 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3412 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
3413 if (!SWIG_IsOK(res2)) {
3414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findattr" "', argument " "2"" of type '" "char *""'");
3415 }
3416 arg2 = reinterpret_cast< char * >(buf2);
3417 result = (Agsym_t *)findattr(arg1,arg2);
3418 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
3419 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3420 return TCL_OK;
3421fail:
3422 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3423 return TCL_ERROR;
3424}
3425
3426
3427SWIGINTERN int
3428_wrap_findattr__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3429 Agedge_t *arg1 = (Agedge_t *) 0 ;
3430 char *arg2 = (char *) 0 ;
3431 void *argp1 = 0 ;
3432 int res1 = 0 ;
3433 int res2 ;
3434 char *buf2 = 0 ;
3435 int alloc2 = 0 ;
3436 Agsym_t *result = 0 ;
3437
3438 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::findattr e name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "findattr" "', argument " "1"" of type '" "Agedge_t *""'");
3442 }
3443 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3444 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
3445 if (!SWIG_IsOK(res2)) {
3446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "findattr" "', argument " "2"" of type '" "char *""'");
3447 }
3448 arg2 = reinterpret_cast< char * >(buf2);
3449 result = (Agsym_t *)findattr(arg1,arg2);
3450 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
3451 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3452 return TCL_OK;
3453fail:
3454 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
3455 return TCL_ERROR;
3456}
3457
3458
3459SWIGINTERN int
3460_wrap_findattr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3461 Tcl_Obj *const *argv = objv+1;
3462 int argc = objc-1;
3463 if (argc == 2) {
3464 int _v = 0;
3465 void *vptr = 0;
3466 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3467 _v = SWIG_CheckState(res);
3468 if (_v) {
3469 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3470 _v = SWIG_CheckState(res);
3471 if (_v) {
3472 return _wrap_findattr__SWIG_0(clientData, interp, objc, argv - 1);
3473 }
3474 }
3475 }
3476 if (argc == 2) {
3477 int _v = 0;
3478 void *vptr = 0;
3479 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3480 _v = SWIG_CheckState(res);
3481 if (_v) {
3482 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3483 _v = SWIG_CheckState(res);
3484 if (_v) {
3485 return _wrap_findattr__SWIG_1(clientData, interp, objc, argv - 1);
3486 }
3487 }
3488 }
3489 if (argc == 2) {
3490 int _v = 0;
3491 void *vptr = 0;
3492 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3493 _v = SWIG_CheckState(res);
3494 if (_v) {
3495 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
3496 _v = SWIG_CheckState(res);
3497 if (_v) {
3498 return _wrap_findattr__SWIG_2(clientData, interp, objc, argv - 1);
3499 }
3500 }
3501 }
3502
3503 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'findattr'.\n"
3504 " Possible C/C++ prototypes are:\n"
3505 " findattr(Agraph_t *,char *)\n"
3506 " findattr(Agnode_t *,char *)\n"
3507 " findattr(Agedge_t *,char *)\n", TCL_STATIC);
3508 return TCL_ERROR;
3509}
3510
3511
3512SWIGINTERN int
3513_wrap_headof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3514 Agedge_t *arg1 = (Agedge_t *) 0 ;
3515 void *argp1 = 0 ;
3516 int res1 = 0 ;
3517 Agnode_t *result = 0 ;
3518
3519 if (SWIG_GetArgs(interp, objc, objv,"o:gv::headof e ",(void *)0) == TCL_ERROR) SWIG_fail;
3520 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3521 if (!SWIG_IsOK(res1)) {
3522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "headof" "', argument " "1"" of type '" "Agedge_t *""'");
3523 }
3524 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3525 result = (Agnode_t *)headof(arg1);
3526 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
3527 return TCL_OK;
3528fail:
3529 return TCL_ERROR;
3530}
3531
3532
3533SWIGINTERN int
3534_wrap_tailof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3535 Agedge_t *arg1 = (Agedge_t *) 0 ;
3536 void *argp1 = 0 ;
3537 int res1 = 0 ;
3538 Agnode_t *result = 0 ;
3539
3540 if (SWIG_GetArgs(interp, objc, objv,"o:gv::tailof e ",(void *)0) == TCL_ERROR) SWIG_fail;
3541 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3542 if (!SWIG_IsOK(res1)) {
3543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tailof" "', argument " "1"" of type '" "Agedge_t *""'");
3544 }
3545 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3546 result = (Agnode_t *)tailof(arg1);
3547 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
3548 return TCL_OK;
3549fail:
3550 return TCL_ERROR;
3551}
3552
3553
3554SWIGINTERN int
3555_wrap_graphof__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3556 Agraph_t *arg1 = (Agraph_t *) 0 ;
3557 void *argp1 = 0 ;
3558 int res1 = 0 ;
3559 Agraph_t *result = 0 ;
3560
3561 if (SWIG_GetArgs(interp, objc, objv,"o:gv::graphof g ",(void *)0) == TCL_ERROR) SWIG_fail;
3562 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3563 if (!SWIG_IsOK(res1)) {
3564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graphof" "', argument " "1"" of type '" "Agraph_t *""'");
3565 }
3566 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3567 result = (Agraph_t *)graphof(arg1);
3568 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3569 return TCL_OK;
3570fail:
3571 return TCL_ERROR;
3572}
3573
3574
3575SWIGINTERN int
3576_wrap_graphof__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3577 Agedge_t *arg1 = (Agedge_t *) 0 ;
3578 void *argp1 = 0 ;
3579 int res1 = 0 ;
3580 Agraph_t *result = 0 ;
3581
3582 if (SWIG_GetArgs(interp, objc, objv,"o:gv::graphof e ",(void *)0) == TCL_ERROR) SWIG_fail;
3583 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3584 if (!SWIG_IsOK(res1)) {
3585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graphof" "', argument " "1"" of type '" "Agedge_t *""'");
3586 }
3587 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3588 result = (Agraph_t *)graphof(arg1);
3589 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3590 return TCL_OK;
3591fail:
3592 return TCL_ERROR;
3593}
3594
3595
3596SWIGINTERN int
3597_wrap_graphof__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3598 Agnode_t *arg1 = (Agnode_t *) 0 ;
3599 void *argp1 = 0 ;
3600 int res1 = 0 ;
3601 Agraph_t *result = 0 ;
3602
3603 if (SWIG_GetArgs(interp, objc, objv,"o:gv::graphof n ",(void *)0) == TCL_ERROR) SWIG_fail;
3604 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3605 if (!SWIG_IsOK(res1)) {
3606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "graphof" "', argument " "1"" of type '" "Agnode_t *""'");
3607 }
3608 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3609 result = (Agraph_t *)graphof(arg1);
3610 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3611 return TCL_OK;
3612fail:
3613 return TCL_ERROR;
3614}
3615
3616
3617SWIGINTERN int
3618_wrap_graphof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3619 Tcl_Obj *const *argv = objv+1;
3620 int argc = objc-1;
3621 if (argc == 1) {
3622 int _v = 0;
3623 void *vptr = 0;
3624 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3625 _v = SWIG_CheckState(res);
3626 if (_v) {
3627 return _wrap_graphof__SWIG_0(clientData, interp, objc, argv - 1);
3628 }
3629 }
3630 if (argc == 1) {
3631 int _v = 0;
3632 void *vptr = 0;
3633 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3634 _v = SWIG_CheckState(res);
3635 if (_v) {
3636 return _wrap_graphof__SWIG_1(clientData, interp, objc, argv - 1);
3637 }
3638 }
3639 if (argc == 1) {
3640 int _v = 0;
3641 void *vptr = 0;
3642 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3643 _v = SWIG_CheckState(res);
3644 if (_v) {
3645 return _wrap_graphof__SWIG_2(clientData, interp, objc, argv - 1);
3646 }
3647 }
3648
3649 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'graphof'.\n"
3650 " Possible C/C++ prototypes are:\n"
3651 " graphof(Agraph_t *)\n"
3652 " graphof(Agedge_t *)\n"
3653 " graphof(Agnode_t *)\n", TCL_STATIC);
3654 return TCL_ERROR;
3655}
3656
3657
3658SWIGINTERN int
3659_wrap_rootof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3660 Agraph_t *arg1 = (Agraph_t *) 0 ;
3661 void *argp1 = 0 ;
3662 int res1 = 0 ;
3663 Agraph_t *result = 0 ;
3664
3665 if (SWIG_GetArgs(interp, objc, objv,"o:gv::rootof g ",(void *)0) == TCL_ERROR) SWIG_fail;
3666 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3667 if (!SWIG_IsOK(res1)) {
3668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rootof" "', argument " "1"" of type '" "Agraph_t *""'");
3669 }
3670 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3671 result = (Agraph_t *)rootof(arg1);
3672 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3673 return TCL_OK;
3674fail:
3675 return TCL_ERROR;
3676}
3677
3678
3679SWIGINTERN int
3680_wrap_protonode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3681 Agraph_t *arg1 = (Agraph_t *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 Agnode_t *result = 0 ;
3685
3686 if (SWIG_GetArgs(interp, objc, objv,"o:gv::protonode g ",(void *)0) == TCL_ERROR) SWIG_fail;
3687 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3688 if (!SWIG_IsOK(res1)) {
3689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "protonode" "', argument " "1"" of type '" "Agraph_t *""'");
3690 }
3691 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3692 result = (Agnode_t *)protonode(arg1);
3693 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
3694 return TCL_OK;
3695fail:
3696 return TCL_ERROR;
3697}
3698
3699
3700SWIGINTERN int
3701_wrap_protoedge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3702 Agraph_t *arg1 = (Agraph_t *) 0 ;
3703 void *argp1 = 0 ;
3704 int res1 = 0 ;
3705 Agedge_t *result = 0 ;
3706
3707 if (SWIG_GetArgs(interp, objc, objv,"o:gv::protoedge g ",(void *)0) == TCL_ERROR) SWIG_fail;
3708 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3709 if (!SWIG_IsOK(res1)) {
3710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "protoedge" "', argument " "1"" of type '" "Agraph_t *""'");
3711 }
3712 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3713 result = (Agedge_t *)protoedge(arg1);
3714 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
3715 return TCL_OK;
3716fail:
3717 return TCL_ERROR;
3718}
3719
3720
3721SWIGINTERN int
3722_wrap_ok__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3723 Agraph_t *arg1 = (Agraph_t *) 0 ;
3724 void *argp1 = 0 ;
3725 int res1 = 0 ;
3726 bool result;
3727
3728 if (SWIG_GetArgs(interp, objc, objv,"o:gv::ok g ",(void *)0) == TCL_ERROR) SWIG_fail;
3729 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3730 if (!SWIG_IsOK(res1)) {
3731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agraph_t *""'");
3732 }
3733 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3734 result = (bool)ok(arg1);
3735 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3736 return TCL_OK;
3737fail:
3738 return TCL_ERROR;
3739}
3740
3741
3742SWIGINTERN int
3743_wrap_ok__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3744 Agnode_t *arg1 = (Agnode_t *) 0 ;
3745 void *argp1 = 0 ;
3746 int res1 = 0 ;
3747 bool result;
3748
3749 if (SWIG_GetArgs(interp, objc, objv,"o:gv::ok n ",(void *)0) == TCL_ERROR) SWIG_fail;
3750 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
3751 if (!SWIG_IsOK(res1)) {
3752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agnode_t *""'");
3753 }
3754 arg1 = reinterpret_cast< Agnode_t * >(argp1);
3755 result = (bool)ok(arg1);
3756 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3757 return TCL_OK;
3758fail:
3759 return TCL_ERROR;
3760}
3761
3762
3763SWIGINTERN int
3764_wrap_ok__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3765 Agedge_t *arg1 = (Agedge_t *) 0 ;
3766 void *argp1 = 0 ;
3767 int res1 = 0 ;
3768 bool result;
3769
3770 if (SWIG_GetArgs(interp, objc, objv,"o:gv::ok e ",(void *)0) == TCL_ERROR) SWIG_fail;
3771 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
3772 if (!SWIG_IsOK(res1)) {
3773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agedge_t *""'");
3774 }
3775 arg1 = reinterpret_cast< Agedge_t * >(argp1);
3776 result = (bool)ok(arg1);
3777 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3778 return TCL_OK;
3779fail:
3780 return TCL_ERROR;
3781}
3782
3783
3784SWIGINTERN int
3785_wrap_ok__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3786 Agsym_t *arg1 = (Agsym_t *) 0 ;
3787 void *argp1 = 0 ;
3788 int res1 = 0 ;
3789 bool result;
3790
3791 if (SWIG_GetArgs(interp, objc, objv,"o:gv::ok a ",(void *)0) == TCL_ERROR) SWIG_fail;
3792 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agsym_t, 0 | 0 );
3793 if (!SWIG_IsOK(res1)) {
3794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ok" "', argument " "1"" of type '" "Agsym_t *""'");
3795 }
3796 arg1 = reinterpret_cast< Agsym_t * >(argp1);
3797 result = (bool)ok(arg1);
3798 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3799 return TCL_OK;
3800fail:
3801 return TCL_ERROR;
3802}
3803
3804
3805SWIGINTERN int
3806_wrap_ok(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3807 Tcl_Obj *const *argv = objv+1;
3808 int argc = objc-1;
3809 if (argc == 1) {
3810 int _v = 0;
3811 void *vptr = 0;
3812 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
3813 _v = SWIG_CheckState(res);
3814 if (_v) {
3815 return _wrap_ok__SWIG_0(clientData, interp, objc, argv - 1);
3816 }
3817 }
3818 if (argc == 1) {
3819 int _v = 0;
3820 void *vptr = 0;
3821 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
3822 _v = SWIG_CheckState(res);
3823 if (_v) {
3824 return _wrap_ok__SWIG_1(clientData, interp, objc, argv - 1);
3825 }
3826 }
3827 if (argc == 1) {
3828 int _v = 0;
3829 void *vptr = 0;
3830 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
3831 _v = SWIG_CheckState(res);
3832 if (_v) {
3833 return _wrap_ok__SWIG_2(clientData, interp, objc, argv - 1);
3834 }
3835 }
3836 if (argc == 1) {
3837 int _v = 0;
3838 void *vptr = 0;
3839 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agsym_t, 0);
3840 _v = SWIG_CheckState(res);
3841 if (_v) {
3842 return _wrap_ok__SWIG_3(clientData, interp, objc, argv - 1);
3843 }
3844 }
3845
3846 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'ok'.\n"
3847 " Possible C/C++ prototypes are:\n"
3848 " ok(Agraph_t *)\n"
3849 " ok(Agnode_t *)\n"
3850 " ok(Agedge_t *)\n"
3851 " ok(Agsym_t *)\n", TCL_STATIC);
3852 return TCL_ERROR;
3853}
3854
3855
3856SWIGINTERN int
3857_wrap_firstsubg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3858 Agraph_t *arg1 = (Agraph_t *) 0 ;
3859 void *argp1 = 0 ;
3860 int res1 = 0 ;
3861 Agraph_t *result = 0 ;
3862
3863 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstsubg g ",(void *)0) == TCL_ERROR) SWIG_fail;
3864 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3865 if (!SWIG_IsOK(res1)) {
3866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstsubg" "', argument " "1"" of type '" "Agraph_t *""'");
3867 }
3868 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3869 result = (Agraph_t *)firstsubg(arg1);
3870 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3871 return TCL_OK;
3872fail:
3873 return TCL_ERROR;
3874}
3875
3876
3877SWIGINTERN int
3878_wrap_nextsubg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3879 Agraph_t *arg1 = (Agraph_t *) 0 ;
3880 Agraph_t *arg2 = (Agraph_t *) 0 ;
3881 void *argp1 = 0 ;
3882 int res1 = 0 ;
3883 void *argp2 = 0 ;
3884 int res2 = 0 ;
3885 Agraph_t *result = 0 ;
3886
3887 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextsubg g sg ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3888 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3889 if (!SWIG_IsOK(res1)) {
3890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextsubg" "', argument " "1"" of type '" "Agraph_t *""'");
3891 }
3892 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3893 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agraph_t, 0 | 0 );
3894 if (!SWIG_IsOK(res2)) {
3895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextsubg" "', argument " "2"" of type '" "Agraph_t *""'");
3896 }
3897 arg2 = reinterpret_cast< Agraph_t * >(argp2);
3898 result = (Agraph_t *)nextsubg(arg1,arg2);
3899 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3900 return TCL_OK;
3901fail:
3902 return TCL_ERROR;
3903}
3904
3905
3906SWIGINTERN int
3907_wrap_firstsupg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3908 Agraph_t *arg1 = (Agraph_t *) 0 ;
3909 void *argp1 = 0 ;
3910 int res1 = 0 ;
3911 Agraph_t *result = 0 ;
3912
3913 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstsupg g ",(void *)0) == TCL_ERROR) SWIG_fail;
3914 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3915 if (!SWIG_IsOK(res1)) {
3916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstsupg" "', argument " "1"" of type '" "Agraph_t *""'");
3917 }
3918 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3919 result = (Agraph_t *)firstsupg(arg1);
3920 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3921 return TCL_OK;
3922fail:
3923 return TCL_ERROR;
3924}
3925
3926
3927SWIGINTERN int
3928_wrap_nextsupg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3929 Agraph_t *arg1 = (Agraph_t *) 0 ;
3930 Agraph_t *arg2 = (Agraph_t *) 0 ;
3931 void *argp1 = 0 ;
3932 int res1 = 0 ;
3933 void *argp2 = 0 ;
3934 int res2 = 0 ;
3935 Agraph_t *result = 0 ;
3936
3937 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextsupg g sg ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3938 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3939 if (!SWIG_IsOK(res1)) {
3940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextsupg" "', argument " "1"" of type '" "Agraph_t *""'");
3941 }
3942 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3943 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agraph_t, 0 | 0 );
3944 if (!SWIG_IsOK(res2)) {
3945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextsupg" "', argument " "2"" of type '" "Agraph_t *""'");
3946 }
3947 arg2 = reinterpret_cast< Agraph_t * >(argp2);
3948 result = (Agraph_t *)nextsupg(arg1,arg2);
3949 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agraph_t,0));
3950 return TCL_OK;
3951fail:
3952 return TCL_ERROR;
3953}
3954
3955
3956SWIGINTERN int
3957_wrap_firstedge__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3958 Agraph_t *arg1 = (Agraph_t *) 0 ;
3959 void *argp1 = 0 ;
3960 int res1 = 0 ;
3961 Agedge_t *result = 0 ;
3962
3963 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstedge g ",(void *)0) == TCL_ERROR) SWIG_fail;
3964 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3965 if (!SWIG_IsOK(res1)) {
3966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstedge" "', argument " "1"" of type '" "Agraph_t *""'");
3967 }
3968 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3969 result = (Agedge_t *)firstedge(arg1);
3970 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
3971 return TCL_OK;
3972fail:
3973 return TCL_ERROR;
3974}
3975
3976
3977SWIGINTERN int
3978_wrap_nextedge__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
3979 Agraph_t *arg1 = (Agraph_t *) 0 ;
3980 Agedge_t *arg2 = (Agedge_t *) 0 ;
3981 void *argp1 = 0 ;
3982 int res1 = 0 ;
3983 void *argp2 = 0 ;
3984 int res2 = 0 ;
3985 Agedge_t *result = 0 ;
3986
3987 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextedge g e ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3988 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
3989 if (!SWIG_IsOK(res1)) {
3990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextedge" "', argument " "1"" of type '" "Agraph_t *""'");
3991 }
3992 arg1 = reinterpret_cast< Agraph_t * >(argp1);
3993 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
3994 if (!SWIG_IsOK(res2)) {
3995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextedge" "', argument " "2"" of type '" "Agedge_t *""'");
3996 }
3997 arg2 = reinterpret_cast< Agedge_t * >(argp2);
3998 result = (Agedge_t *)nextedge(arg1,arg2);
3999 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4000 return TCL_OK;
4001fail:
4002 return TCL_ERROR;
4003}
4004
4005
4006SWIGINTERN int
4007_wrap_firstout__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4008 Agraph_t *arg1 = (Agraph_t *) 0 ;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 Agedge_t *result = 0 ;
4012
4013 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstout g ",(void *)0) == TCL_ERROR) SWIG_fail;
4014 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4015 if (!SWIG_IsOK(res1)) {
4016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstout" "', argument " "1"" of type '" "Agraph_t *""'");
4017 }
4018 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4019 result = (Agedge_t *)firstout(arg1);
4020 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4021 return TCL_OK;
4022fail:
4023 return TCL_ERROR;
4024}
4025
4026
4027SWIGINTERN int
4028_wrap_nextout__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4029 Agraph_t *arg1 = (Agraph_t *) 0 ;
4030 Agedge_t *arg2 = (Agedge_t *) 0 ;
4031 void *argp1 = 0 ;
4032 int res1 = 0 ;
4033 void *argp2 = 0 ;
4034 int res2 = 0 ;
4035 Agedge_t *result = 0 ;
4036
4037 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextout g e ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4038 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4039 if (!SWIG_IsOK(res1)) {
4040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextout" "', argument " "1"" of type '" "Agraph_t *""'");
4041 }
4042 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4043 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4044 if (!SWIG_IsOK(res2)) {
4045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextout" "', argument " "2"" of type '" "Agedge_t *""'");
4046 }
4047 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4048 result = (Agedge_t *)nextout(arg1,arg2);
4049 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4050 return TCL_OK;
4051fail:
4052 return TCL_ERROR;
4053}
4054
4055
4056SWIGINTERN int
4057_wrap_firstedge__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4058 Agnode_t *arg1 = (Agnode_t *) 0 ;
4059 void *argp1 = 0 ;
4060 int res1 = 0 ;
4061 Agedge_t *result = 0 ;
4062
4063 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstedge n ",(void *)0) == TCL_ERROR) SWIG_fail;
4064 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4065 if (!SWIG_IsOK(res1)) {
4066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstedge" "', argument " "1"" of type '" "Agnode_t *""'");
4067 }
4068 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4069 result = (Agedge_t *)firstedge(arg1);
4070 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4071 return TCL_OK;
4072fail:
4073 return TCL_ERROR;
4074}
4075
4076
4077SWIGINTERN int
4078_wrap_firstedge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4079 Tcl_Obj *const *argv = objv+1;
4080 int argc = objc-1;
4081 if (argc == 1) {
4082 int _v = 0;
4083 void *vptr = 0;
4084 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4085 _v = SWIG_CheckState(res);
4086 if (_v) {
4087 return _wrap_firstedge__SWIG_0(clientData, interp, objc, argv - 1);
4088 }
4089 }
4090 if (argc == 1) {
4091 int _v = 0;
4092 void *vptr = 0;
4093 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4094 _v = SWIG_CheckState(res);
4095 if (_v) {
4096 return _wrap_firstedge__SWIG_1(clientData, interp, objc, argv - 1);
4097 }
4098 }
4099
4100 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'firstedge'.\n"
4101 " Possible C/C++ prototypes are:\n"
4102 " firstedge(Agraph_t *)\n"
4103 " firstedge(Agnode_t *)\n", TCL_STATIC);
4104 return TCL_ERROR;
4105}
4106
4107
4108SWIGINTERN int
4109_wrap_nextedge__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4110 Agnode_t *arg1 = (Agnode_t *) 0 ;
4111 Agedge_t *arg2 = (Agedge_t *) 0 ;
4112 void *argp1 = 0 ;
4113 int res1 = 0 ;
4114 void *argp2 = 0 ;
4115 int res2 = 0 ;
4116 Agedge_t *result = 0 ;
4117
4118 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextedge n e ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4119 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4120 if (!SWIG_IsOK(res1)) {
4121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextedge" "', argument " "1"" of type '" "Agnode_t *""'");
4122 }
4123 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4124 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4125 if (!SWIG_IsOK(res2)) {
4126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextedge" "', argument " "2"" of type '" "Agedge_t *""'");
4127 }
4128 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4129 result = (Agedge_t *)nextedge(arg1,arg2);
4130 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4131 return TCL_OK;
4132fail:
4133 return TCL_ERROR;
4134}
4135
4136
4137SWIGINTERN int
4138_wrap_nextedge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4139 Tcl_Obj *const *argv = objv+1;
4140 int argc = objc-1;
4141 if (argc == 2) {
4142 int _v = 0;
4143 void *vptr = 0;
4144 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4145 _v = SWIG_CheckState(res);
4146 if (_v) {
4147 void *vptr = 0;
4148 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4149 _v = SWIG_CheckState(res);
4150 if (_v) {
4151 return _wrap_nextedge__SWIG_0(clientData, interp, objc, argv - 1);
4152 }
4153 }
4154 }
4155 if (argc == 2) {
4156 int _v = 0;
4157 void *vptr = 0;
4158 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4159 _v = SWIG_CheckState(res);
4160 if (_v) {
4161 void *vptr = 0;
4162 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4163 _v = SWIG_CheckState(res);
4164 if (_v) {
4165 return _wrap_nextedge__SWIG_1(clientData, interp, objc, argv - 1);
4166 }
4167 }
4168 }
4169
4170 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'nextedge'.\n"
4171 " Possible C/C++ prototypes are:\n"
4172 " nextedge(Agraph_t *,Agedge_t *)\n"
4173 " nextedge(Agnode_t *,Agedge_t *)\n", TCL_STATIC);
4174 return TCL_ERROR;
4175}
4176
4177
4178SWIGINTERN int
4179_wrap_firstout__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4180 Agnode_t *arg1 = (Agnode_t *) 0 ;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 Agedge_t *result = 0 ;
4184
4185 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstout n ",(void *)0) == TCL_ERROR) SWIG_fail;
4186 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4187 if (!SWIG_IsOK(res1)) {
4188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstout" "', argument " "1"" of type '" "Agnode_t *""'");
4189 }
4190 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4191 result = (Agedge_t *)firstout(arg1);
4192 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4193 return TCL_OK;
4194fail:
4195 return TCL_ERROR;
4196}
4197
4198
4199SWIGINTERN int
4200_wrap_firstout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4201 Tcl_Obj *const *argv = objv+1;
4202 int argc = objc-1;
4203 if (argc == 1) {
4204 int _v = 0;
4205 void *vptr = 0;
4206 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4207 _v = SWIG_CheckState(res);
4208 if (_v) {
4209 return _wrap_firstout__SWIG_0(clientData, interp, objc, argv - 1);
4210 }
4211 }
4212 if (argc == 1) {
4213 int _v = 0;
4214 void *vptr = 0;
4215 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4216 _v = SWIG_CheckState(res);
4217 if (_v) {
4218 return _wrap_firstout__SWIG_1(clientData, interp, objc, argv - 1);
4219 }
4220 }
4221
4222 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'firstout'.\n"
4223 " Possible C/C++ prototypes are:\n"
4224 " firstout(Agraph_t *)\n"
4225 " firstout(Agnode_t *)\n", TCL_STATIC);
4226 return TCL_ERROR;
4227}
4228
4229
4230SWIGINTERN int
4231_wrap_nextout__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4232 Agnode_t *arg1 = (Agnode_t *) 0 ;
4233 Agedge_t *arg2 = (Agedge_t *) 0 ;
4234 void *argp1 = 0 ;
4235 int res1 = 0 ;
4236 void *argp2 = 0 ;
4237 int res2 = 0 ;
4238 Agedge_t *result = 0 ;
4239
4240 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextout n e ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4241 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4242 if (!SWIG_IsOK(res1)) {
4243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextout" "', argument " "1"" of type '" "Agnode_t *""'");
4244 }
4245 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4246 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4247 if (!SWIG_IsOK(res2)) {
4248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextout" "', argument " "2"" of type '" "Agedge_t *""'");
4249 }
4250 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4251 result = (Agedge_t *)nextout(arg1,arg2);
4252 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4253 return TCL_OK;
4254fail:
4255 return TCL_ERROR;
4256}
4257
4258
4259SWIGINTERN int
4260_wrap_nextout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4261 Tcl_Obj *const *argv = objv+1;
4262 int argc = objc-1;
4263 if (argc == 2) {
4264 int _v = 0;
4265 void *vptr = 0;
4266 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4267 _v = SWIG_CheckState(res);
4268 if (_v) {
4269 void *vptr = 0;
4270 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4271 _v = SWIG_CheckState(res);
4272 if (_v) {
4273 return _wrap_nextout__SWIG_0(clientData, interp, objc, argv - 1);
4274 }
4275 }
4276 }
4277 if (argc == 2) {
4278 int _v = 0;
4279 void *vptr = 0;
4280 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4281 _v = SWIG_CheckState(res);
4282 if (_v) {
4283 void *vptr = 0;
4284 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4285 _v = SWIG_CheckState(res);
4286 if (_v) {
4287 return _wrap_nextout__SWIG_1(clientData, interp, objc, argv - 1);
4288 }
4289 }
4290 }
4291
4292 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'nextout'.\n"
4293 " Possible C/C++ prototypes are:\n"
4294 " nextout(Agraph_t *,Agedge_t *)\n"
4295 " nextout(Agnode_t *,Agedge_t *)\n", TCL_STATIC);
4296 return TCL_ERROR;
4297}
4298
4299
4300SWIGINTERN int
4301_wrap_firsthead(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4302 Agnode_t *arg1 = (Agnode_t *) 0 ;
4303 void *argp1 = 0 ;
4304 int res1 = 0 ;
4305 Agnode_t *result = 0 ;
4306
4307 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firsthead n ",(void *)0) == TCL_ERROR) SWIG_fail;
4308 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4309 if (!SWIG_IsOK(res1)) {
4310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firsthead" "', argument " "1"" of type '" "Agnode_t *""'");
4311 }
4312 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4313 result = (Agnode_t *)firsthead(arg1);
4314 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4315 return TCL_OK;
4316fail:
4317 return TCL_ERROR;
4318}
4319
4320
4321SWIGINTERN int
4322_wrap_nexthead(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4323 Agnode_t *arg1 = (Agnode_t *) 0 ;
4324 Agnode_t *arg2 = (Agnode_t *) 0 ;
4325 void *argp1 = 0 ;
4326 int res1 = 0 ;
4327 void *argp2 = 0 ;
4328 int res2 = 0 ;
4329 Agnode_t *result = 0 ;
4330
4331 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nexthead n h ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4332 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nexthead" "', argument " "1"" of type '" "Agnode_t *""'");
4335 }
4336 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4337 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
4338 if (!SWIG_IsOK(res2)) {
4339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nexthead" "', argument " "2"" of type '" "Agnode_t *""'");
4340 }
4341 arg2 = reinterpret_cast< Agnode_t * >(argp2);
4342 result = (Agnode_t *)nexthead(arg1,arg2);
4343 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4344 return TCL_OK;
4345fail:
4346 return TCL_ERROR;
4347}
4348
4349
4350SWIGINTERN int
4351_wrap_firstin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4352 Agraph_t *arg1 = (Agraph_t *) 0 ;
4353 void *argp1 = 0 ;
4354 int res1 = 0 ;
4355 Agedge_t *result = 0 ;
4356
4357 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstin g ",(void *)0) == TCL_ERROR) SWIG_fail;
4358 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4359 if (!SWIG_IsOK(res1)) {
4360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstin" "', argument " "1"" of type '" "Agraph_t *""'");
4361 }
4362 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4363 result = (Agedge_t *)firstin(arg1);
4364 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4365 return TCL_OK;
4366fail:
4367 return TCL_ERROR;
4368}
4369
4370
4371SWIGINTERN int
4372_wrap_nextin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4373 Agnode_t *arg1 = (Agnode_t *) 0 ;
4374 Agedge_t *arg2 = (Agedge_t *) 0 ;
4375 void *argp1 = 0 ;
4376 int res1 = 0 ;
4377 void *argp2 = 0 ;
4378 int res2 = 0 ;
4379 Agedge_t *result = 0 ;
4380
4381 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextin n e ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4382 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4383 if (!SWIG_IsOK(res1)) {
4384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextin" "', argument " "1"" of type '" "Agnode_t *""'");
4385 }
4386 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4387 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4388 if (!SWIG_IsOK(res2)) {
4389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextin" "', argument " "2"" of type '" "Agedge_t *""'");
4390 }
4391 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4392 result = (Agedge_t *)nextin(arg1,arg2);
4393 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4394 return TCL_OK;
4395fail:
4396 return TCL_ERROR;
4397}
4398
4399
4400SWIGINTERN int
4401_wrap_firstin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4402 Agnode_t *arg1 = (Agnode_t *) 0 ;
4403 void *argp1 = 0 ;
4404 int res1 = 0 ;
4405 Agedge_t *result = 0 ;
4406
4407 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstin n ",(void *)0) == TCL_ERROR) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstin" "', argument " "1"" of type '" "Agnode_t *""'");
4411 }
4412 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4413 result = (Agedge_t *)firstin(arg1);
4414 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4415 return TCL_OK;
4416fail:
4417 return TCL_ERROR;
4418}
4419
4420
4421SWIGINTERN int
4422_wrap_firstin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4423 Tcl_Obj *const *argv = objv+1;
4424 int argc = objc-1;
4425 if (argc == 1) {
4426 int _v = 0;
4427 void *vptr = 0;
4428 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4429 _v = SWIG_CheckState(res);
4430 if (_v) {
4431 return _wrap_firstin__SWIG_0(clientData, interp, objc, argv - 1);
4432 }
4433 }
4434 if (argc == 1) {
4435 int _v = 0;
4436 void *vptr = 0;
4437 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4438 _v = SWIG_CheckState(res);
4439 if (_v) {
4440 return _wrap_firstin__SWIG_1(clientData, interp, objc, argv - 1);
4441 }
4442 }
4443
4444 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'firstin'.\n"
4445 " Possible C/C++ prototypes are:\n"
4446 " firstin(Agraph_t *)\n"
4447 " firstin(Agnode_t *)\n", TCL_STATIC);
4448 return TCL_ERROR;
4449}
4450
4451
4452SWIGINTERN int
4453_wrap_nextin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4454 Agraph_t *arg1 = (Agraph_t *) 0 ;
4455 Agedge_t *arg2 = (Agedge_t *) 0 ;
4456 void *argp1 = 0 ;
4457 int res1 = 0 ;
4458 void *argp2 = 0 ;
4459 int res2 = 0 ;
4460 Agedge_t *result = 0 ;
4461
4462 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextin g e ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4463 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4464 if (!SWIG_IsOK(res1)) {
4465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextin" "', argument " "1"" of type '" "Agraph_t *""'");
4466 }
4467 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4468 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agedge_t, 0 | 0 );
4469 if (!SWIG_IsOK(res2)) {
4470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextin" "', argument " "2"" of type '" "Agedge_t *""'");
4471 }
4472 arg2 = reinterpret_cast< Agedge_t * >(argp2);
4473 result = (Agedge_t *)nextin(arg1,arg2);
4474 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agedge_t,0));
4475 return TCL_OK;
4476fail:
4477 return TCL_ERROR;
4478}
4479
4480
4481SWIGINTERN int
4482_wrap_nextin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4483 Tcl_Obj *const *argv = objv+1;
4484 int argc = objc-1;
4485 if (argc == 2) {
4486 int _v = 0;
4487 void *vptr = 0;
4488 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4489 _v = SWIG_CheckState(res);
4490 if (_v) {
4491 void *vptr = 0;
4492 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4493 _v = SWIG_CheckState(res);
4494 if (_v) {
4495 return _wrap_nextin__SWIG_0(clientData, interp, objc, argv - 1);
4496 }
4497 }
4498 }
4499 if (argc == 2) {
4500 int _v = 0;
4501 void *vptr = 0;
4502 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4503 _v = SWIG_CheckState(res);
4504 if (_v) {
4505 void *vptr = 0;
4506 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agedge_t, 0);
4507 _v = SWIG_CheckState(res);
4508 if (_v) {
4509 return _wrap_nextin__SWIG_1(clientData, interp, objc, argv - 1);
4510 }
4511 }
4512 }
4513
4514 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'nextin'.\n"
4515 " Possible C/C++ prototypes are:\n"
4516 " nextin(Agnode_t *,Agedge_t *)\n"
4517 " nextin(Agraph_t *,Agedge_t *)\n", TCL_STATIC);
4518 return TCL_ERROR;
4519}
4520
4521
4522SWIGINTERN int
4523_wrap_firsttail(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4524 Agnode_t *arg1 = (Agnode_t *) 0 ;
4525 void *argp1 = 0 ;
4526 int res1 = 0 ;
4527 Agnode_t *result = 0 ;
4528
4529 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firsttail n ",(void *)0) == TCL_ERROR) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firsttail" "', argument " "1"" of type '" "Agnode_t *""'");
4533 }
4534 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4535 result = (Agnode_t *)firsttail(arg1);
4536 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4537 return TCL_OK;
4538fail:
4539 return TCL_ERROR;
4540}
4541
4542
4543SWIGINTERN int
4544_wrap_nexttail(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4545 Agnode_t *arg1 = (Agnode_t *) 0 ;
4546 Agnode_t *arg2 = (Agnode_t *) 0 ;
4547 void *argp1 = 0 ;
4548 int res1 = 0 ;
4549 void *argp2 = 0 ;
4550 int res2 = 0 ;
4551 Agnode_t *result = 0 ;
4552
4553 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nexttail n t ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4554 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4555 if (!SWIG_IsOK(res1)) {
4556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nexttail" "', argument " "1"" of type '" "Agnode_t *""'");
4557 }
4558 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4559 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
4560 if (!SWIG_IsOK(res2)) {
4561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nexttail" "', argument " "2"" of type '" "Agnode_t *""'");
4562 }
4563 arg2 = reinterpret_cast< Agnode_t * >(argp2);
4564 result = (Agnode_t *)nexttail(arg1,arg2);
4565 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4566 return TCL_OK;
4567fail:
4568 return TCL_ERROR;
4569}
4570
4571
4572SWIGINTERN int
4573_wrap_firstnode__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4574 Agraph_t *arg1 = (Agraph_t *) 0 ;
4575 void *argp1 = 0 ;
4576 int res1 = 0 ;
4577 Agnode_t *result = 0 ;
4578
4579 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstnode g ",(void *)0) == TCL_ERROR) SWIG_fail;
4580 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4581 if (!SWIG_IsOK(res1)) {
4582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstnode" "', argument " "1"" of type '" "Agraph_t *""'");
4583 }
4584 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4585 result = (Agnode_t *)firstnode(arg1);
4586 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4587 return TCL_OK;
4588fail:
4589 return TCL_ERROR;
4590}
4591
4592
4593SWIGINTERN int
4594_wrap_nextnode__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4595 Agraph_t *arg1 = (Agraph_t *) 0 ;
4596 Agnode_t *arg2 = (Agnode_t *) 0 ;
4597 void *argp1 = 0 ;
4598 int res1 = 0 ;
4599 void *argp2 = 0 ;
4600 int res2 = 0 ;
4601 Agnode_t *result = 0 ;
4602
4603 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextnode g n ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4604 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4605 if (!SWIG_IsOK(res1)) {
4606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextnode" "', argument " "1"" of type '" "Agraph_t *""'");
4607 }
4608 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4609 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
4610 if (!SWIG_IsOK(res2)) {
4611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextnode" "', argument " "2"" of type '" "Agnode_t *""'");
4612 }
4613 arg2 = reinterpret_cast< Agnode_t * >(argp2);
4614 result = (Agnode_t *)nextnode(arg1,arg2);
4615 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4616 return TCL_OK;
4617fail:
4618 return TCL_ERROR;
4619}
4620
4621
4622SWIGINTERN int
4623_wrap_firstnode__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4624 Agedge_t *arg1 = (Agedge_t *) 0 ;
4625 void *argp1 = 0 ;
4626 int res1 = 0 ;
4627 Agnode_t *result = 0 ;
4628
4629 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstnode e ",(void *)0) == TCL_ERROR) SWIG_fail;
4630 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4631 if (!SWIG_IsOK(res1)) {
4632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstnode" "', argument " "1"" of type '" "Agedge_t *""'");
4633 }
4634 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4635 result = (Agnode_t *)firstnode(arg1);
4636 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4637 return TCL_OK;
4638fail:
4639 return TCL_ERROR;
4640}
4641
4642
4643SWIGINTERN int
4644_wrap_firstnode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4645 Tcl_Obj *const *argv = objv+1;
4646 int argc = objc-1;
4647 if (argc == 1) {
4648 int _v = 0;
4649 void *vptr = 0;
4650 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4651 _v = SWIG_CheckState(res);
4652 if (_v) {
4653 return _wrap_firstnode__SWIG_0(clientData, interp, objc, argv - 1);
4654 }
4655 }
4656 if (argc == 1) {
4657 int _v = 0;
4658 void *vptr = 0;
4659 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4660 _v = SWIG_CheckState(res);
4661 if (_v) {
4662 return _wrap_firstnode__SWIG_1(clientData, interp, objc, argv - 1);
4663 }
4664 }
4665
4666 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'firstnode'.\n"
4667 " Possible C/C++ prototypes are:\n"
4668 " firstnode(Agraph_t *)\n"
4669 " firstnode(Agedge_t *)\n", TCL_STATIC);
4670 return TCL_ERROR;
4671}
4672
4673
4674SWIGINTERN int
4675_wrap_nextnode__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4676 Agedge_t *arg1 = (Agedge_t *) 0 ;
4677 Agnode_t *arg2 = (Agnode_t *) 0 ;
4678 void *argp1 = 0 ;
4679 int res1 = 0 ;
4680 void *argp2 = 0 ;
4681 int res2 = 0 ;
4682 Agnode_t *result = 0 ;
4683
4684 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextnode e n ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4685 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4686 if (!SWIG_IsOK(res1)) {
4687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextnode" "', argument " "1"" of type '" "Agedge_t *""'");
4688 }
4689 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4690 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agnode_t, 0 | 0 );
4691 if (!SWIG_IsOK(res2)) {
4692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextnode" "', argument " "2"" of type '" "Agnode_t *""'");
4693 }
4694 arg2 = reinterpret_cast< Agnode_t * >(argp2);
4695 result = (Agnode_t *)nextnode(arg1,arg2);
4696 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agnode_t,0));
4697 return TCL_OK;
4698fail:
4699 return TCL_ERROR;
4700}
4701
4702
4703SWIGINTERN int
4704_wrap_nextnode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4705 Tcl_Obj *const *argv = objv+1;
4706 int argc = objc-1;
4707 if (argc == 2) {
4708 int _v = 0;
4709 void *vptr = 0;
4710 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4711 _v = SWIG_CheckState(res);
4712 if (_v) {
4713 void *vptr = 0;
4714 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
4715 _v = SWIG_CheckState(res);
4716 if (_v) {
4717 return _wrap_nextnode__SWIG_0(clientData, interp, objc, argv - 1);
4718 }
4719 }
4720 }
4721 if (argc == 2) {
4722 int _v = 0;
4723 void *vptr = 0;
4724 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4725 _v = SWIG_CheckState(res);
4726 if (_v) {
4727 void *vptr = 0;
4728 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agnode_t, 0);
4729 _v = SWIG_CheckState(res);
4730 if (_v) {
4731 return _wrap_nextnode__SWIG_1(clientData, interp, objc, argv - 1);
4732 }
4733 }
4734 }
4735
4736 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'nextnode'.\n"
4737 " Possible C/C++ prototypes are:\n"
4738 " nextnode(Agraph_t *,Agnode_t *)\n"
4739 " nextnode(Agedge_t *,Agnode_t *)\n", TCL_STATIC);
4740 return TCL_ERROR;
4741}
4742
4743
4744SWIGINTERN int
4745_wrap_firstattr__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4746 Agraph_t *arg1 = (Agraph_t *) 0 ;
4747 void *argp1 = 0 ;
4748 int res1 = 0 ;
4749 Agsym_t *result = 0 ;
4750
4751 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstattr g ",(void *)0) == TCL_ERROR) SWIG_fail;
4752 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4753 if (!SWIG_IsOK(res1)) {
4754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstattr" "', argument " "1"" of type '" "Agraph_t *""'");
4755 }
4756 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4757 result = (Agsym_t *)firstattr(arg1);
4758 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
4759 return TCL_OK;
4760fail:
4761 return TCL_ERROR;
4762}
4763
4764
4765SWIGINTERN int
4766_wrap_nextattr__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4767 Agraph_t *arg1 = (Agraph_t *) 0 ;
4768 Agsym_t *arg2 = (Agsym_t *) 0 ;
4769 void *argp1 = 0 ;
4770 int res1 = 0 ;
4771 void *argp2 = 0 ;
4772 int res2 = 0 ;
4773 Agsym_t *result = 0 ;
4774
4775 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextattr g a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4776 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
4777 if (!SWIG_IsOK(res1)) {
4778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextattr" "', argument " "1"" of type '" "Agraph_t *""'");
4779 }
4780 arg1 = reinterpret_cast< Agraph_t * >(argp1);
4781 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4782 if (!SWIG_IsOK(res2)) {
4783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextattr" "', argument " "2"" of type '" "Agsym_t *""'");
4784 }
4785 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4786 result = (Agsym_t *)nextattr(arg1,arg2);
4787 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
4788 return TCL_OK;
4789fail:
4790 return TCL_ERROR;
4791}
4792
4793
4794SWIGINTERN int
4795_wrap_firstattr__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4796 Agedge_t *arg1 = (Agedge_t *) 0 ;
4797 void *argp1 = 0 ;
4798 int res1 = 0 ;
4799 Agsym_t *result = 0 ;
4800
4801 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstattr e ",(void *)0) == TCL_ERROR) SWIG_fail;
4802 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4803 if (!SWIG_IsOK(res1)) {
4804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstattr" "', argument " "1"" of type '" "Agedge_t *""'");
4805 }
4806 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4807 result = (Agsym_t *)firstattr(arg1);
4808 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
4809 return TCL_OK;
4810fail:
4811 return TCL_ERROR;
4812}
4813
4814
4815SWIGINTERN int
4816_wrap_nextattr__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4817 Agedge_t *arg1 = (Agedge_t *) 0 ;
4818 Agsym_t *arg2 = (Agsym_t *) 0 ;
4819 void *argp1 = 0 ;
4820 int res1 = 0 ;
4821 void *argp2 = 0 ;
4822 int res2 = 0 ;
4823 Agsym_t *result = 0 ;
4824
4825 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextattr e a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4826 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
4827 if (!SWIG_IsOK(res1)) {
4828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextattr" "', argument " "1"" of type '" "Agedge_t *""'");
4829 }
4830 arg1 = reinterpret_cast< Agedge_t * >(argp1);
4831 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4832 if (!SWIG_IsOK(res2)) {
4833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextattr" "', argument " "2"" of type '" "Agsym_t *""'");
4834 }
4835 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4836 result = (Agsym_t *)nextattr(arg1,arg2);
4837 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
4838 return TCL_OK;
4839fail:
4840 return TCL_ERROR;
4841}
4842
4843
4844SWIGINTERN int
4845_wrap_firstattr__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4846 Agnode_t *arg1 = (Agnode_t *) 0 ;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 Agsym_t *result = 0 ;
4850
4851 if (SWIG_GetArgs(interp, objc, objv,"o:gv::firstattr n ",(void *)0) == TCL_ERROR) SWIG_fail;
4852 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4853 if (!SWIG_IsOK(res1)) {
4854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "firstattr" "', argument " "1"" of type '" "Agnode_t *""'");
4855 }
4856 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4857 result = (Agsym_t *)firstattr(arg1);
4858 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
4859 return TCL_OK;
4860fail:
4861 return TCL_ERROR;
4862}
4863
4864
4865SWIGINTERN int
4866_wrap_firstattr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4867 Tcl_Obj *const *argv = objv+1;
4868 int argc = objc-1;
4869 if (argc == 1) {
4870 int _v = 0;
4871 void *vptr = 0;
4872 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4873 _v = SWIG_CheckState(res);
4874 if (_v) {
4875 return _wrap_firstattr__SWIG_0(clientData, interp, objc, argv - 1);
4876 }
4877 }
4878 if (argc == 1) {
4879 int _v = 0;
4880 void *vptr = 0;
4881 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4882 _v = SWIG_CheckState(res);
4883 if (_v) {
4884 return _wrap_firstattr__SWIG_1(clientData, interp, objc, argv - 1);
4885 }
4886 }
4887 if (argc == 1) {
4888 int _v = 0;
4889 void *vptr = 0;
4890 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4891 _v = SWIG_CheckState(res);
4892 if (_v) {
4893 return _wrap_firstattr__SWIG_2(clientData, interp, objc, argv - 1);
4894 }
4895 }
4896
4897 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'firstattr'.\n"
4898 " Possible C/C++ prototypes are:\n"
4899 " firstattr(Agraph_t *)\n"
4900 " firstattr(Agedge_t *)\n"
4901 " firstattr(Agnode_t *)\n", TCL_STATIC);
4902 return TCL_ERROR;
4903}
4904
4905
4906SWIGINTERN int
4907_wrap_nextattr__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4908 Agnode_t *arg1 = (Agnode_t *) 0 ;
4909 Agsym_t *arg2 = (Agsym_t *) 0 ;
4910 void *argp1 = 0 ;
4911 int res1 = 0 ;
4912 void *argp2 = 0 ;
4913 int res2 = 0 ;
4914 Agsym_t *result = 0 ;
4915
4916 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::nextattr n a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4917 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
4918 if (!SWIG_IsOK(res1)) {
4919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nextattr" "', argument " "1"" of type '" "Agnode_t *""'");
4920 }
4921 arg1 = reinterpret_cast< Agnode_t * >(argp1);
4922 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Agsym_t, 0 | 0 );
4923 if (!SWIG_IsOK(res2)) {
4924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "nextattr" "', argument " "2"" of type '" "Agsym_t *""'");
4925 }
4926 arg2 = reinterpret_cast< Agsym_t * >(argp2);
4927 result = (Agsym_t *)nextattr(arg1,arg2);
4928 Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Agsym_t,0));
4929 return TCL_OK;
4930fail:
4931 return TCL_ERROR;
4932}
4933
4934
4935SWIGINTERN int
4936_wrap_nextattr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4937 Tcl_Obj *const *argv = objv+1;
4938 int argc = objc-1;
4939 if (argc == 2) {
4940 int _v = 0;
4941 void *vptr = 0;
4942 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
4943 _v = SWIG_CheckState(res);
4944 if (_v) {
4945 void *vptr = 0;
4946 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4947 _v = SWIG_CheckState(res);
4948 if (_v) {
4949 return _wrap_nextattr__SWIG_0(clientData, interp, objc, argv - 1);
4950 }
4951 }
4952 }
4953 if (argc == 2) {
4954 int _v = 0;
4955 void *vptr = 0;
4956 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
4957 _v = SWIG_CheckState(res);
4958 if (_v) {
4959 void *vptr = 0;
4960 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4961 _v = SWIG_CheckState(res);
4962 if (_v) {
4963 return _wrap_nextattr__SWIG_1(clientData, interp, objc, argv - 1);
4964 }
4965 }
4966 }
4967 if (argc == 2) {
4968 int _v = 0;
4969 void *vptr = 0;
4970 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
4971 _v = SWIG_CheckState(res);
4972 if (_v) {
4973 void *vptr = 0;
4974 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Agsym_t, 0);
4975 _v = SWIG_CheckState(res);
4976 if (_v) {
4977 return _wrap_nextattr__SWIG_2(clientData, interp, objc, argv - 1);
4978 }
4979 }
4980 }
4981
4982 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'nextattr'.\n"
4983 " Possible C/C++ prototypes are:\n"
4984 " nextattr(Agraph_t *,Agsym_t *)\n"
4985 " nextattr(Agedge_t *,Agsym_t *)\n"
4986 " nextattr(Agnode_t *,Agsym_t *)\n", TCL_STATIC);
4987 return TCL_ERROR;
4988}
4989
4990
4991SWIGINTERN int
4992_wrap_rm__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
4993 Agraph_t *arg1 = (Agraph_t *) 0 ;
4994 void *argp1 = 0 ;
4995 int res1 = 0 ;
4996 bool result;
4997
4998 if (SWIG_GetArgs(interp, objc, objv,"o:gv::rm g ",(void *)0) == TCL_ERROR) SWIG_fail;
4999 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rm" "', argument " "1"" of type '" "Agraph_t *""'");
5002 }
5003 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5004 result = (bool)rm(arg1);
5005 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5006 return TCL_OK;
5007fail:
5008 return TCL_ERROR;
5009}
5010
5011
5012SWIGINTERN int
5013_wrap_rm__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5014 Agnode_t *arg1 = (Agnode_t *) 0 ;
5015 void *argp1 = 0 ;
5016 int res1 = 0 ;
5017 bool result;
5018
5019 if (SWIG_GetArgs(interp, objc, objv,"o:gv::rm n ",(void *)0) == TCL_ERROR) SWIG_fail;
5020 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agnode_t, 0 | 0 );
5021 if (!SWIG_IsOK(res1)) {
5022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rm" "', argument " "1"" of type '" "Agnode_t *""'");
5023 }
5024 arg1 = reinterpret_cast< Agnode_t * >(argp1);
5025 result = (bool)rm(arg1);
5026 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5027 return TCL_OK;
5028fail:
5029 return TCL_ERROR;
5030}
5031
5032
5033SWIGINTERN int
5034_wrap_rm__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5035 Agedge_t *arg1 = (Agedge_t *) 0 ;
5036 void *argp1 = 0 ;
5037 int res1 = 0 ;
5038 bool result;
5039
5040 if (SWIG_GetArgs(interp, objc, objv,"o:gv::rm e ",(void *)0) == TCL_ERROR) SWIG_fail;
5041 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agedge_t, 0 | 0 );
5042 if (!SWIG_IsOK(res1)) {
5043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rm" "', argument " "1"" of type '" "Agedge_t *""'");
5044 }
5045 arg1 = reinterpret_cast< Agedge_t * >(argp1);
5046 result = (bool)rm(arg1);
5047 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5048 return TCL_OK;
5049fail:
5050 return TCL_ERROR;
5051}
5052
5053
5054SWIGINTERN int
5055_wrap_rm(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5056 Tcl_Obj *const *argv = objv+1;
5057 int argc = objc-1;
5058 if (argc == 1) {
5059 int _v = 0;
5060 void *vptr = 0;
5061 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5062 _v = SWIG_CheckState(res);
5063 if (_v) {
5064 return _wrap_rm__SWIG_0(clientData, interp, objc, argv - 1);
5065 }
5066 }
5067 if (argc == 1) {
5068 int _v = 0;
5069 void *vptr = 0;
5070 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agnode_t, 0);
5071 _v = SWIG_CheckState(res);
5072 if (_v) {
5073 return _wrap_rm__SWIG_1(clientData, interp, objc, argv - 1);
5074 }
5075 }
5076 if (argc == 1) {
5077 int _v = 0;
5078 void *vptr = 0;
5079 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agedge_t, 0);
5080 _v = SWIG_CheckState(res);
5081 if (_v) {
5082 return _wrap_rm__SWIG_2(clientData, interp, objc, argv - 1);
5083 }
5084 }
5085
5086 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'rm'.\n"
5087 " Possible C/C++ prototypes are:\n"
5088 " rm(Agraph_t *)\n"
5089 " rm(Agnode_t *)\n"
5090 " rm(Agedge_t *)\n", TCL_STATIC);
5091 return TCL_ERROR;
5092}
5093
5094
5095SWIGINTERN int
5096_wrap_layout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5097 Agraph_t *arg1 = (Agraph_t *) 0 ;
5098 char *arg2 = (char *) 0 ;
5099 void *argp1 = 0 ;
5100 int res1 = 0 ;
5101 int res2 ;
5102 char *buf2 = 0 ;
5103 int alloc2 = 0 ;
5104 bool result;
5105
5106 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::layout g engine ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5107 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layout" "', argument " "1"" of type '" "Agraph_t *""'");
5110 }
5111 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5112 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5113 if (!SWIG_IsOK(res2)) {
5114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layout" "', argument " "2"" of type '" "char const *""'");
5115 }
5116 arg2 = reinterpret_cast< char * >(buf2);
5117 result = (bool)layout(arg1,(char const *)arg2);
5118 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5119 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5120 return TCL_OK;
5121fail:
5122 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5123 return TCL_ERROR;
5124}
5125
5126
5127SWIGINTERN int
5128_wrap_render__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5129 Agraph_t *arg1 = (Agraph_t *) 0 ;
5130 void *argp1 = 0 ;
5131 int res1 = 0 ;
5132 bool result;
5133
5134 if (SWIG_GetArgs(interp, objc, objv,"o:gv::render g ",(void *)0) == TCL_ERROR) SWIG_fail;
5135 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5136 if (!SWIG_IsOK(res1)) {
5137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
5138 }
5139 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5140 result = (bool)render(arg1);
5141 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5142 return TCL_OK;
5143fail:
5144 return TCL_ERROR;
5145}
5146
5147
5148SWIGINTERN int
5149_wrap_render__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5150 Agraph_t *arg1 = (Agraph_t *) 0 ;
5151 char *arg2 = (char *) 0 ;
5152 void *argp1 = 0 ;
5153 int res1 = 0 ;
5154 int res2 ;
5155 char *buf2 = 0 ;
5156 int alloc2 = 0 ;
5157 bool result;
5158
5159 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::render g format ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5160 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5161 if (!SWIG_IsOK(res1)) {
5162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
5163 }
5164 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5165 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5166 if (!SWIG_IsOK(res2)) {
5167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "render" "', argument " "2"" of type '" "char const *""'");
5168 }
5169 arg2 = reinterpret_cast< char * >(buf2);
5170 result = (bool)render(arg1,(char const *)arg2);
5171 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5172 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5173 return TCL_OK;
5174fail:
5175 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5176 return TCL_ERROR;
5177}
5178
5179
5180SWIGINTERN int
5181_wrap_render__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5182 Agraph_t *arg1 = (Agraph_t *) 0 ;
5183 char *arg2 = (char *) 0 ;
5184 FILE *arg3 = (FILE *) 0 ;
5185 void *argp1 = 0 ;
5186 int res1 = 0 ;
5187 int res2 ;
5188 char *buf2 = 0 ;
5189 int alloc2 = 0 ;
5190 void *argp3 = 0 ;
5191 int res3 = 0 ;
5192 bool result;
5193
5194 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::render g format fout ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5195 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5196 if (!SWIG_IsOK(res1)) {
5197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
5198 }
5199 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5200 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5201 if (!SWIG_IsOK(res2)) {
5202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "render" "', argument " "2"" of type '" "char const *""'");
5203 }
5204 arg2 = reinterpret_cast< char * >(buf2);
5205 res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_FILE, 0 | 0 );
5206 if (!SWIG_IsOK(res3)) {
5207 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "render" "', argument " "3"" of type '" "FILE *""'");
5208 }
5209 arg3 = reinterpret_cast< FILE * >(argp3);
5210 result = (bool)render(arg1,(char const *)arg2,arg3);
5211 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5212 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5213 return TCL_OK;
5214fail:
5215 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5216 return TCL_ERROR;
5217}
5218
5219
5220SWIGINTERN int
5221_wrap_render__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5222 Agraph_t *arg1 = (Agraph_t *) 0 ;
5223 char *arg2 = (char *) 0 ;
5224 char *arg3 = (char *) 0 ;
5225 void *argp1 = 0 ;
5226 int res1 = 0 ;
5227 int res2 ;
5228 char *buf2 = 0 ;
5229 int alloc2 = 0 ;
5230 int res3 ;
5231 char *buf3 = 0 ;
5232 int alloc3 = 0 ;
5233 bool result;
5234
5235 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::render g format filename ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5236 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5237 if (!SWIG_IsOK(res1)) {
5238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "render" "', argument " "1"" of type '" "Agraph_t *""'");
5239 }
5240 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5241 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5242 if (!SWIG_IsOK(res2)) {
5243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "render" "', argument " "2"" of type '" "char const *""'");
5244 }
5245 arg2 = reinterpret_cast< char * >(buf2);
5246 res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
5247 if (!SWIG_IsOK(res3)) {
5248 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "render" "', argument " "3"" of type '" "char const *""'");
5249 }
5250 arg3 = reinterpret_cast< char * >(buf3);
5251 result = (bool)render(arg1,(char const *)arg2,(char const *)arg3);
5252 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5253 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5254 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5255 return TCL_OK;
5256fail:
5257 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5258 if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5259 return TCL_ERROR;
5260}
5261
5262
5263SWIGINTERN int
5264_wrap_render(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5265 Tcl_Obj *const *argv = objv+1;
5266 int argc = objc-1;
5267 if (argc == 1) {
5268 int _v = 0;
5269 void *vptr = 0;
5270 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5271 _v = SWIG_CheckState(res);
5272 if (_v) {
5273 return _wrap_render__SWIG_0(clientData, interp, objc, argv - 1);
5274 }
5275 }
5276 if (argc == 2) {
5277 int _v = 0;
5278 void *vptr = 0;
5279 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5280 _v = SWIG_CheckState(res);
5281 if (_v) {
5282 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5283 _v = SWIG_CheckState(res);
5284 if (_v) {
5285 return _wrap_render__SWIG_1(clientData, interp, objc, argv - 1);
5286 }
5287 }
5288 }
5289 if (argc == 3) {
5290 int _v = 0;
5291 void *vptr = 0;
5292 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5293 _v = SWIG_CheckState(res);
5294 if (_v) {
5295 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5296 _v = SWIG_CheckState(res);
5297 if (_v) {
5298 void *vptr = 0;
5299 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FILE, 0);
5300 _v = SWIG_CheckState(res);
5301 if (_v) {
5302 return _wrap_render__SWIG_2(clientData, interp, objc, argv - 1);
5303 }
5304 }
5305 }
5306 }
5307 if (argc == 3) {
5308 int _v = 0;
5309 void *vptr = 0;
5310 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5311 _v = SWIG_CheckState(res);
5312 if (_v) {
5313 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5314 _v = SWIG_CheckState(res);
5315 if (_v) {
5316 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
5317 _v = SWIG_CheckState(res);
5318 if (_v) {
5319 return _wrap_render__SWIG_3(clientData, interp, objc, argv - 1);
5320 }
5321 }
5322 }
5323 }
5324
5325 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'render'.\n"
5326 " Possible C/C++ prototypes are:\n"
5327 " render(Agraph_t *)\n"
5328 " render(Agraph_t *,char const *)\n"
5329 " render(Agraph_t *,char const *,FILE *)\n"
5330 " render(Agraph_t *,char const *,char const *)\n", TCL_STATIC);
5331 return TCL_ERROR;
5332}
5333
5334
5335SWIGINTERN int
5336_wrap_renderresult(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5337 Agraph_t *arg1 = (Agraph_t *) 0 ;
5338 char *arg2 = (char *) 0 ;
5339 char *arg3 = (char *) 0 ;
5340 void *argp1 = 0 ;
5341 int res1 = 0 ;
5342 int res2 ;
5343 char *buf2 = 0 ;
5344 int alloc2 = 0 ;
5345 Tcl_Obj *o3 ;
5346
5347 {
5348 o3 = Tcl_NewStringObj(NULL, -1);
5349 arg3 = (char*)o3;
5350 }
5351 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::renderresult g format ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5352 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5353 if (!SWIG_IsOK(res1)) {
5354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "renderresult" "', argument " "1"" of type '" "Agraph_t *""'");
5355 }
5356 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5357 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5358 if (!SWIG_IsOK(res2)) {
5359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "renderresult" "', argument " "2"" of type '" "char const *""'");
5360 }
5361 arg2 = reinterpret_cast< char * >(buf2);
5362 renderresult(arg1,(char const *)arg2,arg3);
5363
5364 {
5365 Tcl_ListObjAppendElement(interp,(Tcl_GetObjResult(interp)),(Tcl_Obj*)arg3);
5366 }
5367 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5368 return TCL_OK;
5369fail:
5370 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5371 return TCL_ERROR;
5372}
5373
5374
5375SWIGINTERN int
5376_wrap_renderchannel(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5377 Agraph_t *arg1 = (Agraph_t *) 0 ;
5378 char *arg2 = (char *) 0 ;
5379 char *arg3 = (char *) 0 ;
5380 void *argp1 = 0 ;
5381 int res1 = 0 ;
5382 int res2 ;
5383 char *buf2 = 0 ;
5384 int alloc2 = 0 ;
5385 int mode3 ;
5386 bool result;
5387
5388 if (SWIG_GetArgs(interp, objc, objv,"ooo:gv::renderchannel g format channelname ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5389 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5390 if (!SWIG_IsOK(res1)) {
5391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "renderchannel" "', argument " "1"" of type '" "Agraph_t *""'");
5392 }
5393 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5394 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5395 if (!SWIG_IsOK(res2)) {
5396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "renderchannel" "', argument " "2"" of type '" "char const *""'");
5397 }
5398 arg2 = reinterpret_cast< char * >(buf2);
5399 {
5400 arg3 = (char*)Tcl_GetChannel(interp, Tcl_GetString(objv[3]), &mode3);
5401 // FIXME - need to error if chan is NULL or mode3 not TCL_WRITABLE
5402 }
5403 result = (bool)renderchannel(arg1,(char const *)arg2,(char const *)arg3);
5404 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5405 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5406 return TCL_OK;
5407fail:
5408 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5409 return TCL_ERROR;
5410}
5411
5412
5413SWIGINTERN int
5414_wrap_renderdata(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5415 Agraph_t *arg1 = (Agraph_t *) 0 ;
5416 char *arg2 = (char *) 0 ;
5417 void *argp1 = 0 ;
5418 int res1 = 0 ;
5419 int res2 ;
5420 char *buf2 = 0 ;
5421 int alloc2 = 0 ;
5422 char *result = 0 ;
5423
5424 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::renderdata g format ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5425 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5426 if (!SWIG_IsOK(res1)) {
5427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "renderdata" "', argument " "1"" of type '" "Agraph_t *""'");
5428 }
5429 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5430 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5431 if (!SWIG_IsOK(res2)) {
5432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "renderdata" "', argument " "2"" of type '" "char const *""'");
5433 }
5434 arg2 = reinterpret_cast< char * >(buf2);
5435 result = (char *)renderdata(arg1,(char const *)arg2);
5436 Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
5437 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5438 return TCL_OK;
5439fail:
5440 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5441 return TCL_ERROR;
5442}
5443
5444
5445SWIGINTERN int
5446_wrap_write__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5447 Agraph_t *arg1 = (Agraph_t *) 0 ;
5448 char *arg2 = (char *) 0 ;
5449 void *argp1 = 0 ;
5450 int res1 = 0 ;
5451 int res2 ;
5452 char *buf2 = 0 ;
5453 int alloc2 = 0 ;
5454 bool result;
5455
5456 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::write g filename ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5457 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5458 if (!SWIG_IsOK(res1)) {
5459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write" "', argument " "1"" of type '" "Agraph_t *""'");
5460 }
5461 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5462 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
5463 if (!SWIG_IsOK(res2)) {
5464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "write" "', argument " "2"" of type '" "char const *""'");
5465 }
5466 arg2 = reinterpret_cast< char * >(buf2);
5467 result = (bool)write(arg1,(char const *)arg2);
5468 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5469 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5470 return TCL_OK;
5471fail:
5472 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5473 return TCL_ERROR;
5474}
5475
5476
5477SWIGINTERN int
5478_wrap_write__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5479 Agraph_t *arg1 = (Agraph_t *) 0 ;
5480 FILE *arg2 = (FILE *) 0 ;
5481 void *argp1 = 0 ;
5482 int res1 = 0 ;
5483 void *argp2 = 0 ;
5484 int res2 = 0 ;
5485 bool result;
5486
5487 if (SWIG_GetArgs(interp, objc, objv,"oo:gv::write g f ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5488 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5489 if (!SWIG_IsOK(res1)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write" "', argument " "1"" of type '" "Agraph_t *""'");
5491 }
5492 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5493 res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_FILE, 0 | 0 );
5494 if (!SWIG_IsOK(res2)) {
5495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "write" "', argument " "2"" of type '" "FILE *""'");
5496 }
5497 arg2 = reinterpret_cast< FILE * >(argp2);
5498 result = (bool)write(arg1,arg2);
5499 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5500 return TCL_OK;
5501fail:
5502 return TCL_ERROR;
5503}
5504
5505
5506SWIGINTERN int
5507_wrap_write(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5508 Tcl_Obj *const *argv = objv+1;
5509 int argc = objc-1;
5510 if (argc == 2) {
5511 int _v = 0;
5512 void *vptr = 0;
5513 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5514 _v = SWIG_CheckState(res);
5515 if (_v) {
5516 void *vptr = 0;
5517 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FILE, 0);
5518 _v = SWIG_CheckState(res);
5519 if (_v) {
5520 return _wrap_write__SWIG_1(clientData, interp, objc, argv - 1);
5521 }
5522 }
5523 }
5524 if (argc == 2) {
5525 int _v = 0;
5526 void *vptr = 0;
5527 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Agraph_t, 0);
5528 _v = SWIG_CheckState(res);
5529 if (_v) {
5530 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
5531 _v = SWIG_CheckState(res);
5532 if (_v) {
5533 return _wrap_write__SWIG_0(clientData, interp, objc, argv - 1);
5534 }
5535 }
5536 }
5537
5538 Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'write'.\n"
5539 " Possible C/C++ prototypes are:\n"
5540 " write(Agraph_t *,char const *)\n"
5541 " write(Agraph_t *,FILE *)\n", TCL_STATIC);
5542 return TCL_ERROR;
5543}
5544
5545
5546SWIGINTERN int
5547_wrap_tred(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) {
5548 Agraph_t *arg1 = (Agraph_t *) 0 ;
5549 void *argp1 = 0 ;
5550 int res1 = 0 ;
5551 bool result;
5552
5553 if (SWIG_GetArgs(interp, objc, objv,"o:gv::tred g ",(void *)0) == TCL_ERROR) SWIG_fail;
5554 res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Agraph_t, 0 | 0 );
5555 if (!SWIG_IsOK(res1)) {
5556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tred" "', argument " "1"" of type '" "Agraph_t *""'");
5557 }
5558 arg1 = reinterpret_cast< Agraph_t * >(argp1);
5559 result = (bool)tred(arg1);
5560 Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
5561 return TCL_OK;
5562fail:
5563 return TCL_ERROR;
5564}
5565
5566
5567
5617 {0, 0, 0}
5618};
5619
5621 {0,0,0,0}
5622};
5623
5625 {0,0,0,0,0,0}
5626};
5627
5628/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5629
5630static swig_type_info _swigt__p_Agedge_t = {"_p_Agedge_t", "Agedge_t *", 0, 0, (void*)0, 0};
5631static swig_type_info _swigt__p_Agnode_t = {"_p_Agnode_t", "Agnode_t *", 0, 0, (void*)0, 0};
5632static swig_type_info _swigt__p_Agraph_t = {"_p_Agraph_t", "Agraph_t *", 0, 0, (void*)0, 0};
5633static swig_type_info _swigt__p_Agsym_t = {"_p_Agsym_t", "Agsym_t *", 0, 0, (void*)0, 0};
5634static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
5635static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5636
5645
5646static swig_cast_info _swigc__p_Agedge_t[] = { {&_swigt__p_Agedge_t, 0, 0, 0},{0, 0, 0, 0}};
5647static swig_cast_info _swigc__p_Agnode_t[] = { {&_swigt__p_Agnode_t, 0, 0, 0},{0, 0, 0, 0}};
5648static swig_cast_info _swigc__p_Agraph_t[] = { {&_swigt__p_Agraph_t, 0, 0, 0},{0, 0, 0, 0}};
5649static swig_cast_info _swigc__p_Agsym_t[] = { {&_swigt__p_Agsym_t, 0, 0, 0},{0, 0, 0, 0}};
5650static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
5651static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5652
5661
5662
5663/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5664
5665#ifdef __cplusplus
5666}
5667#endif
5668/* -----------------------------------------------------------------------------
5669 * Type initialization:
5670 * This problem is tough by the requirement that no dynamic
5671 * memory is used. Also, since swig_type_info structures store pointers to
5672 * swig_cast_info structures and swig_cast_info structures store pointers back
5673 * to swig_type_info structures, we need some lookup code at initialization.
5674 * The idea is that swig generates all the structures that are needed.
5675 * The runtime then collects these partially filled structures.
5676 * The SWIG_InitializeModule function takes these initial arrays out of
5677 * swig_module, and does all the lookup, filling in the swig_module.types
5678 * array with the correct data and linking the correct swig_cast_info
5679 * structures together.
5680 *
5681 * The generated swig_type_info structures are assigned statically to an initial
5682 * array. We just loop through that array, and handle each type individually.
5683 * First we lookup if this type has been already loaded, and if so, use the
5684 * loaded structure instead of the generated one. Then we have to fill in the
5685 * cast linked list. The cast data is initially stored in something like a
5686 * two-dimensional array. Each row corresponds to a type (there are the same
5687 * number of rows as there are in the swig_type_initial array). Each entry in
5688 * a column is one of the swig_cast_info structures for that type.
5689 * The cast_initial array is actually an array of arrays, because each row has
5690 * a variable number of columns. So to actually build the cast linked list,
5691 * we find the array of casts associated with the type, and loop through it
5692 * adding the casts to the list. The one last trick we need to do is making
5693 * sure the type pointer in the swig_cast_info struct is correct.
5694 *
5695 * First off, we lookup the cast->type name to see if it is already loaded.
5696 * There are three cases to handle:
5697 * 1) If the cast->type has already been loaded AND the type we are adding
5698 * casting info to has not been loaded (it is in this module), THEN we
5699 * replace the cast->type pointer with the type pointer that has already
5700 * been loaded.
5701 * 2) If BOTH types (the one we are adding casting info to, and the
5702 * cast->type) are loaded, THEN the cast info has already been loaded by
5703 * the previous module so we just ignore it.
5704 * 3) Finally, if cast->type has not already been loaded, then we add that
5705 * swig_cast_info to the linked list (because the cast->type) pointer will
5706 * be correct.
5707 * ----------------------------------------------------------------------------- */
5708
5709#ifdef __cplusplus
5710extern "C" {
5711#if 0
5712} /* c-mode */
5713#endif
5714#endif
5715
5716#if 0
5717#define SWIGRUNTIME_DEBUG
5718#endif
5719
5720#ifndef SWIG_INIT_CLIENT_DATA_TYPE
5721#define SWIG_INIT_CLIENT_DATA_TYPE void *
5722#endif
5723
5724SWIGRUNTIME void
5726 size_t i;
5727 swig_module_info *module_head, *iter;
5728 int init;
5729
5730 /* check to see if the circular list has been setup, if not, set it up */
5731 if (swig_module.next==0) {
5732 /* Initialize the swig_module */
5736 init = 1;
5737 } else {
5738 init = 0;
5739 }
5740
5741 /* Try and load any already created modules */
5742 module_head = SWIG_GetModule(clientdata);
5743 if (!module_head) {
5744 /* This is the first module loaded for this interpreter */
5745 /* so set the swig module into the interpreter */
5746 SWIG_SetModule(clientdata, &swig_module);
5747 } else {
5748 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5749 iter=module_head;
5750 do {
5751 if (iter==&swig_module) {
5752 /* Our module is already in the list, so there's nothing more to do. */
5753 return;
5754 }
5755 iter=iter->next;
5756 } while (iter!= module_head);
5757
5758 /* otherwise we must add our module into the list */
5759 swig_module.next = module_head->next;
5760 module_head->next = &swig_module;
5761 }
5762
5763 /* When multiple interpreters are used, a module could have already been initialized in
5764 a different interpreter, but not yet have a pointer in this interpreter.
5765 In this case, we do not want to continue adding types... everything should be
5766 set up already */
5767 if (init == 0) return;
5768
5769 /* Now work on filling in swig_module.types */
5770#ifdef SWIGRUNTIME_DEBUG
5771 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
5772#endif
5773 for (i = 0; i < swig_module.size; ++i) {
5774 swig_type_info *type = 0;
5775 swig_type_info *ret;
5776 swig_cast_info *cast;
5777
5778#ifdef SWIGRUNTIME_DEBUG
5779 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5780#endif
5781
5782 /* if there is another module already loaded */
5783 if (swig_module.next != &swig_module) {
5785 }
5786 if (type) {
5787 /* Overwrite clientdata field */
5788#ifdef SWIGRUNTIME_DEBUG
5789 printf("SWIG_InitializeModule: found type %s\n", type->name);
5790#endif
5792 type->clientdata = swig_module.type_initial[i]->clientdata;
5793#ifdef SWIGRUNTIME_DEBUG
5794 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5795#endif
5796 }
5797 } else {
5799 }
5800
5801 /* Insert casting types */
5802 cast = swig_module.cast_initial[i];
5803 while (cast->type) {
5804 /* Don't need to add information already in the list */
5805 ret = 0;
5806#ifdef SWIGRUNTIME_DEBUG
5807 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5808#endif
5809 if (swig_module.next != &swig_module) {
5811#ifdef SWIGRUNTIME_DEBUG
5812 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5813#endif
5814 }
5815 if (ret) {
5816 if (type == swig_module.type_initial[i]) {
5817#ifdef SWIGRUNTIME_DEBUG
5818 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5819#endif
5820 cast->type = ret;
5821 ret = 0;
5822 } else {
5823 /* Check for casting already in the list */
5824 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5825#ifdef SWIGRUNTIME_DEBUG
5826 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5827#endif
5828 if (!ocast) ret = 0;
5829 }
5830 }
5831
5832 if (!ret) {
5833#ifdef SWIGRUNTIME_DEBUG
5834 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5835#endif
5836 if (type->cast) {
5837 type->cast->prev = cast;
5838 cast->next = type->cast;
5839 }
5840 type->cast = cast;
5841 }
5842 cast++;
5843 }
5844 /* Set entry in modules->types array equal to the type */
5845 swig_module.types[i] = type;
5846 }
5847 swig_module.types[i] = 0;
5848
5849#ifdef SWIGRUNTIME_DEBUG
5850 printf("**** SWIG_InitializeModule: Cast List ******\n");
5851 for (i = 0; i < swig_module.size; ++i) {
5852 int j = 0;
5854 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5855 while (cast->type) {
5856 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5857 cast++;
5858 ++j;
5859 }
5860 printf("---- Total casts: %d\n",j);
5861 }
5862 printf("**** SWIG_InitializeModule: Cast List ******\n");
5863#endif
5864}
5865
5866/* This function will propagate the clientdata field of type to
5867* any new swig_type_info structures that have been added into the list
5868* of equivalent types. It is like calling
5869* SWIG_TypeClientData(type, clientdata) a second time.
5870*/
5871SWIGRUNTIME void
5873 size_t i;
5874 swig_cast_info *equiv;
5875 static int init_run = 0;
5876
5877 if (init_run) return;
5878 init_run = 1;
5879
5880 for (i = 0; i < swig_module.size; i++) {
5881 if (swig_module.types[i]->clientdata) {
5882 equiv = swig_module.types[i]->cast;
5883 while (equiv) {
5884 if (!equiv->converter) {
5885 if (equiv->type && !equiv->type->clientdata)
5887 }
5888 equiv = equiv->next;
5889 }
5890 }
5891 }
5892}
5893
5894#ifdef __cplusplus
5895#if 0
5896{
5897 /* c-mode */
5898#endif
5899}
5900#endif
5901
5902
5903#ifdef __cplusplus
5904extern "C" {
5905#endif
5906
5907 /* -----------------------------------------------------------------------------
5908 * constants/methods manipulation
5909 * ----------------------------------------------------------------------------- */
5910
5911 /* Install Constants */
5912
5913 SWIGINTERN void
5914 SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[]) {
5915 size_t i;
5916 Tcl_Obj *obj;
5917
5918 if (!swigconstTableinit) {
5919 Tcl_InitHashTable(&swigconstTable, TCL_STRING_KEYS);
5921 }
5922 for (i = 0; constants[i].type; i++) {
5923 switch(constants[i].type) {
5924 case SWIG_TCL_POINTER:
5925 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
5926 break;
5927 case SWIG_TCL_BINARY:
5928 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
5929 break;
5930 default:
5931 obj = 0;
5932 break;
5933 }
5934 if (obj) {
5935 SWIG_Tcl_SetConstantObj(interp, constants[i].name, obj);
5936 }
5937 }
5938 }
5939
5940 /* Create fast method lookup tables */
5941
5942 SWIGINTERN void
5944 size_t i;
5945
5946 for (i = 0; i < swig_module.size; ++i) {
5948 if (type->clientdata) {
5949 swig_class* klass = (swig_class*) type->clientdata;
5950 swig_method* meth;
5951 Tcl_InitHashTable(&(klass->hashtable), TCL_STRING_KEYS);
5952 for (meth = klass->methods; meth && meth->name; ++meth) {
5953 int newEntry;
5954 Tcl_HashEntry* hashentry = Tcl_CreateHashEntry(&(klass->hashtable), meth->name, &newEntry);
5955 Tcl_SetHashValue(hashentry, (ClientData)meth->method);
5956 }
5957 }
5958 }
5959 }
5960
5961#ifdef __cplusplus
5962}
5963#endif
5964
5965/* -----------------------------------------------------------------------------*
5966 * Partial Init method
5967 * -----------------------------------------------------------------------------*/
5968
5969SWIGEXPORT int SWIG_init(Tcl_Interp *interp) {
5970 size_t i;
5971 if (interp == 0) return TCL_ERROR;
5972#ifdef USE_TCL_STUBS
5973 if (Tcl_InitStubs(interp, SWIG_TCL_STUBS_VERSION, 0) == NULL) {
5974 return TCL_ERROR;
5975 }
5976#endif
5977#ifdef USE_TK_STUBS
5978 /* (char*) cast is required to avoid compiler warning/error. */
5979 if (Tk_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
5980 return TCL_ERROR;
5981 }
5982#endif
5983
5984 Tcl_PkgProvide(interp, (char*)SWIG_name, (char*)SWIG_version);
5985
5986#ifdef SWIG_namespace
5987 Tcl_Eval(interp, "namespace eval " SWIG_namespace " { }");
5988#endif
5989
5990 SWIG_InitializeModule((void *) interp);
5992
5993 for (i = 0; swig_commands[i].name; i++) {
5994 Tcl_CreateObjCommand(interp, (char *) swig_commands[i].name, (swig_wrapper_func) swig_commands[i].wrapper,
5995 swig_commands[i].clientdata, NULL);
5996 }
5997 for (i = 0; swig_variables[i].name; i++) {
5998 Tcl_SetVar(interp, (char *) swig_variables[i].name, (char *) "", TCL_GLOBAL_ONLY);
5999 Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY,
6000 (Tcl_VarTraceProc *) swig_variables[i].get, (ClientData) swig_variables[i].addr);
6001 Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY,
6002 (Tcl_VarTraceProc *) swig_variables[i].set, (ClientData) swig_variables[i].addr);
6003 }
6004
6007
6008
6009 return TCL_OK;
6010}
6011SWIGEXPORT int Gv_SafeInit(Tcl_Interp *interp) {
6012 return SWIG_init(interp);
6013}
6014
int compare(Agobj_t *l, Agobj_t *r)
Definition actions.c:686
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, const char **color_scheme, int *lightness)
expr procedure type
Definition exparse.y:208
static int flags
Definition gc.c:61
static double len(glCompPoint p)
Definition glutils.c:150
void * malloc(YYSIZE_T)
void free(void *)
edge
Definition gmlparse.y:240
node NULL
Definition grammar.y:163
#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:5725
static swig_type_info _swigt__p_Agsym_t
Definition gv_tcl.cpp:5633
bool ok(Agraph_t *g)
Definition gv.cpp:362
static swig_var_info swig_variables[]
Definition gv_tcl.cpp:5620
static swig_cast_info _swigc__p_Agraph_t[]
Definition gv_tcl.cpp:5648
SWIGINTERN int _wrap_read__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2158
static swig_cast_info * swig_cast_initial[]
Definition gv_tcl.cpp:5653
SWIGINTERN int _wrap_firstout__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4007
SWIGINTERN int _wrap_firstattr__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4795
bool tred(Agraph_t *g)
Definition gv.cpp:728
Agraph_t * firstsubg(Agraph_t *g)
Definition gv.cpp:367
SWIGINTERN int _wrap_node(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2275
Agraph_t * read(const char *filename)
Definition gv.cpp:66
SWIGINTERN int _wrap_findsubg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3271
SWIGINTERN int _wrap_graph__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2209
SWIGINTERN int _wrap_graph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2241
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:373
Agraph_t * readstring(char *string)
Definition gv.cpp:54
#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:2307
SWIGINTERN int _wrap_firstin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4422
char * getv(Agraph_t *g, char *attr)
Definition gv.cpp:130
SWIGINTERN void SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[])
Definition gv_tcl.cpp:5914
SWIGINTERN int _wrap_nextin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4482
Agraph_t * findsubg(Agraph_t *g, char *name)
Definition gv.cpp:247
SWIGINTERN int _wrap_getv__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3011
static swig_const_info swig_constants[]
Definition gv_tcl.cpp:5624
SWIGINTERN int _wrap_render__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5221
void renderresult(Agraph_t *g, const char *format, char *outdata)
Definition gv.cpp:690
#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:3857
SWIGRUNTIME void SWIG_Tcl_Acquire(void *ptr)
Definition gv_tcl.cpp:1047
static swig_cast_info _swigc__p_FILE[]
Definition gv_tcl.cpp:5650
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:4845
#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:3534
#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:2014
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:42
SWIGINTERN int _wrap_edge__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2336
SWIGINTERN int _wrap_renderresult(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5336
char * setv(Agraph_t *g, char *attr, char *val)
Definition gv.cpp:152
#define SWIG_RuntimeError
Definition gv_tcl.cpp:752
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:395
SWIGINTERN int _wrap_firsttail(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4523
#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:3069
static swig_command_info swig_commands[]
Definition gv_tcl.cpp:5568
SWIGINTERN int _wrap_nextin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4372
SWIGINTERN int _wrap_nextnode__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4594
SWIGINTERN int _wrap_getv__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2918
Agraph_t * rootof(Agraph_t *g)
Definition gv.cpp:327
static swig_cast_info _swigc__p_Agnode_t[]
Definition gv_tcl.cpp:5647
Agnode_t * headof(Agedge_t *e)
Definition gv.cpp:287
#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:4057
#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:3188
Agnode_t * firsttail(Agnode_t *n)
Definition gv.cpp:494
SWIGINTERN int SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char **cptr, size_t *psize, int *alloc)
Definition gv_tcl.cpp:1967
#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:48
#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:648
SWIGINTERN int _wrap_nextsupg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3928
SWIGINTERN int _wrap_nextattr__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4816
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
Definition gv.cpp:382
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
Definition gv_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:4644
#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:2443
SWIGINTERN int _wrap_firsthead(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4301
SWIGINTERN int _wrap_nextsubg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3878
#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:4675
Agedge_t * firstedge(Agraph_t *g)
Definition gv.cpp:409
SWIGINTERN int _wrap_render__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5128
#define SWIG_AttributeError
Definition gv_tcl.cpp:760
Agraph_t * graphof(Agraph_t *g)
Definition gv.cpp:303
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
Definition gv_tcl.cpp:705
SWIGINTERN int _wrap_setv(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2764
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:3335
SWIGINTERN int _wrap_nameof__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3209
char * nameof(Agraph_t *g)
Definition gv.cpp:343
#define SWIG_SetModule(clientdata, pointer)
Definition gv_tcl.cpp:984
Agnode_t * firstnode(Agraph_t *g)
Definition gv.cpp:518
SWIGRUNTIME char * SWIG_Tcl_PointerTypeFromString(char *c)
Definition gv_tcl.cpp:1158
#define SWIG_INIT_CLIENT_DATA_TYPE
Definition gv_tcl.cpp:5721
SWIGINTERN int _wrap_ok__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3785
#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:5096
Agedge_t * firstout(Agraph_t *g)
Definition gv.cpp:384
#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:5181
SWIGINTERN int _wrap_nextout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4260
#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:3555
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:4028
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:5149
SWIGINTERN int _wrap_rootof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3659
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:2110
SWIGINTERN int _wrap_ok(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3806
SWIGINTERN int _wrap_protoedge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3701
static swig_cast_info _swigc__p_char[]
Definition gv_tcl.cpp:5651
SWIGINTERN int _wrap_nextnode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4704
SWIGINTERN int _wrap_setv__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2644
SWIGINTERN int _wrap_edge__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2368
SWIGINTERN int _wrap_firstsupg(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3907
#define SWIGINTERN
Definition gv_tcl.cpp:70
bool layout(Agraph_t *g, const char *engine)
Definition gv.cpp:615
SWIGINTERN int _wrap_graphof__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3597
static swig_type_info _swigt__p_Agraph_t
Definition gv_tcl.cpp:5632
SWIGINTERN int _wrap_renderchannel(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5376
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:3513
SWIGINTERN int _wrap_nameof__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3167
#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:3743
SWIGINTERN int _wrap_firstnode__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4623
SWIGINTERNINLINE Tcl_Obj * SWIG_FromCharPtr(const char *cptr)
Definition gv_tcl.cpp:2002
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:5446
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
Definition gv.cpp:549
#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:295
bool write(Agraph_t *g, const char *filename)
Definition gv.cpp:717
SWIGINTERN int _wrap_rm__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5034
char * renderdata(Agraph_t *g, const char *format)
Definition gv.cpp:699
SWIGINTERN int _wrap_write(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5507
SWIGINTERN int _wrap_firstattr__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4745
#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:4351
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:5547
SWIGINTERN int _wrap_write__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5478
#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:5013
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:2982
Agnode_t * protonode(Agraph_t *g)
Definition gv.cpp:334
static swig_cast_info _swigc__p_Agedge_t[]
Definition gv_tcl.cpp:5646
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
Definition gv_tcl.cpp:650
bool rm(Agraph_t *g)
Definition gv.cpp:584
SWIGINTERN int _wrap_setv__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2601
Agnode_t * findnode(Agraph_t *g, char *name)
Definition gv.cpp:253
#define SWIGTYPE_p_Agedge_t
Definition gv_tcl.cpp:1684
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
Definition gv.cpp:503
#define SWIG_From_bool
Definition gv_tcl.cpp:2008
SWIGINTERN int _wrap_firstin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4401
#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:380
#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:4322
SWIGINTERN int _wrap_setv__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2684
#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:4866
SWIGINTERN int _wrap_setv__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2558
SWIGINTERN int _wrap_firstout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4200
#define SWIG_GetModule(clientdata)
Definition gv_tcl.cpp:983
Agsym_t * findattr(Agraph_t *g, char *name)
Definition gv.cpp:267
SWIGINTERN int _wrap_setv__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2515
#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:3722
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:5872
SWIGINTERN int _wrap_nextin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4453
SWIGINTERN int _wrap_findattr__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3428
SWIGINTERN int _wrap_getv__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2886
SWIGINTERN int _wrap_rm(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5055
Agraph_t * digraph(char *name)
Definition gv.cpp:36
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
Definition gv_tcl.cpp:525
Agedge_t * firstin(Agraph_t *g)
Definition gv.cpp:461
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
Definition gv_tcl.cpp:440
SWIGINTERN int _wrap_findattr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3460
SWIGINTERN int _wrap_edge__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2400
#define SWIG_ERROR_RELEASE_NOT_OWNED
Definition gv_tcl.cpp:288
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
Definition gv.cpp:524
SWIGINTERN int _wrap_nextout__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4231
SWIGINTERN int _wrap_graphof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3618
#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:4573
SWIGINTERN int _wrap_findattr__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3396
static swig_type_info _swigt__p_FILE
Definition gv_tcl.cpp:5634
SWIGINTERN int _wrap_nextattr__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4907
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:488
Agraph_t * graph(char *name)
Definition gv.cpp:30
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:3364
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:6011
#define SWIGTYPE_p_FILE
Definition gv_tcl.cpp:1688
Agsym_t * firstattr(Agraph_t *g)
Definition gv.cpp:542
#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:3576
SWIGINTERN int _wrap_digraph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2038
static swig_type_info * swig_type_initial[]
Definition gv_tcl.cpp:5637
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:4078
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:2062
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:5414
SWIGINTERN int _wrap_render(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:5264
SWIGINTERN int _wrap_nextedge__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4109
SWIGINTERN int _wrap_nameof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3230
static swig_cast_info _swigc__p_Agsym_t[]
Definition gv_tcl.cpp:5649
SWIGINTERN int _wrap_strictdigraph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2086
#define SWIG_MemoryError
Definition gv_tcl.cpp:761
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
Definition gv.cpp:411
SWIGINTERNINLINE Tcl_Obj * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
Definition gv_tcl.cpp:1995
SWIGINTERN int _wrap_setv__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2724
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
Definition gv.cpp:259
#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:5635
SWIGINTERN int _wrap_getv__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3040
#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:3978
#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:4179
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:3680
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:425
static swig_type_info _swigt__p_Agnode_t
Definition gv_tcl.cpp:5631
SWIGINTERN int _wrap_firstedge__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3957
SWIGINTERN int _wrap_read(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2179
#define SWIG_IndexError
Definition gv_tcl.cpp:753
SWIGINTERN void SWIG_Tcl_InstallMethodLookupTables(void)
Definition gv_tcl.cpp:5943
bool render(Agraph_t *g)
Definition gv.cpp:624
#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:3303
SWIGINTERN int _wrap_nextedge(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4138
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:5630
SWIGINTERN int _wrap_read__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:2134
SWIGINTERN int _wrap_nexttail(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4544
#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:2950
SWIGINTERN int _wrap_nextattr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4936
#define SWIG_OK
Definition gv_tcl.cpp:282
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
Definition gv.cpp:434
#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:4992
Agedge_t * protoedge(Agraph_t *g)
Definition gv.cpp:338
SWIGINTERN int _wrap_nextattr__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:4766
SWIGINTERN int _wrap_ok__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
Definition gv_tcl.cpp:3764
#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:637
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:43
static mytime_t T
Definition timing.c:41
Definition grammar.c:93
char * name
Definition grammar.c:98