Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 271391 Details for
Bug 402931
"swig -c++ -r" generates bad code
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
gv.i swig source file
gv.i (text/plain), 7.27 KB, created by
John Ellson
on 2007-11-28 15:07:55 UTC
(
hide
)
Description:
gv.i swig source file
Filename:
MIME Type:
Creator:
John Ellson
Created:
2007-11-28 15:07:55 UTC
Size:
7.27 KB
patch
obsolete
>/* $Id: gv.i,v 1.32 2007/11/16 20:20:49 ellson Exp $ $Revision: 1.32 $ */ >/* vim:set shiftwidth=4 ts=8: */ > >/********************************************************** >* This software is part of the graphviz package * >* http://www.graphviz.org/ * >* * >* Copyright (c) 1994-2004 AT&T Corp. * >* and is licensed under the * >* Common Public License, Version 1.0 * >* by AT&T Corp. * >* * >* Information and Software Systems Research * >* AT&T Research, Florham Park NJ * >**********************************************************/ > >%module gv >%{ > >/* some language headers (e.g. php.h, ruby.h) leave these defined */ >#undef PACKAGE_STRING >#undef PACKAGE_TARNAME >#undef PACKAGE_VERSION >#undef PACKAGE_NAME >#undef TRUE >#undef FALSE > >/* #include "gvc.h" */ /* replace with stubs to tickle the swig bugs */ >typedef struct {char *stuff;} Agraph_t; >typedef struct {char *stuff;} Agnode_t; >typedef struct {char *stuff;} Agedge_t; >typedef struct {char *stuff;} Agsym_t; >%} > >%inline %{ >/** New graphs */ >/*** New empty graph */ >extern Agraph_t *graph(char *name); >extern Agraph_t *digraph(char *name); >extern Agraph_t *strictgraph(char *name); >extern Agraph_t *strictdigraph(char *name); >/*** New graph from a dot-syntax string or file */ >extern Agraph_t *readstring(char *string); >extern Agraph_t *read(char *filename); >extern Agraph_t *read(FILE *f); >/*** Add new subgraph to existing graph */ >extern Agraph_t *graph(Agraph_t *g, char *name); > >/** New nodes */ >/*** Add new node to existing graph */ >extern Agnode_t *node(Agraph_t *g, char *name); > >/** New edges */ >/*** Add new edge between existing nodes */ >extern Agedge_t *edge(Agnode_t *t, Agnode_t *h); >/*** 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 */ >extern Agedge_t *edge(Agnode_t *t, char *hname); >/*** 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 */ >extern Agedge_t *edge(char *tname, Agnode_t *h); >/*** Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist */ >extern Agedge_t *edge(Agraph_t *g, char *tname, char *hname); > >/** Setting attribute values */ >/*** Set value of named attribute of graph/node/edge - creating attribute if necessary */ >extern char *setv(Agraph_t *g, char *attr, char *val); >extern char *setv(Agnode_t *n, char *attr, char *val); >extern char *setv(Agedge_t *e, char *attr, char *val); > >/*** Set value of existing attribute of graph/node/edge (using attribute handle) */ >extern char *setv(Agraph_t *g, Agsym_t *a, char *val); >extern char *setv(Agnode_t *n, Agsym_t *a, char *val); >extern char *setv(Agedge_t *e, Agsym_t *a, char *val); > >/** Getting attribute values */ >/*** Get value of named attribute of graph/node/edge */ >extern char *getv(Agraph_t *g, char *attr); >extern char *getv(Agnode_t *n, char *attr); >extern char *getv(Agedge_t *e, char *attr); > >/*** Get value of attribute of graph/node/edge (using attribute handle) */ >extern char *getv(Agraph_t *g, Agsym_t *a); >extern char *getv(Agnode_t *n, Agsym_t *a); >extern char *getv(Agedge_t *e, Agsym_t *a); > >/** Obtain names from handles */ >extern char *nameof(Agraph_t *g); >extern char *nameof(Agnode_t *n); >//extern char *nameof(Agedge_t *e); >extern char *nameof(Agsym_t *a); > >/** Find handles from names */ >extern Agraph_t *findsubg(Agraph_t *g, char *name); >extern Agnode_t *findnode(Agraph_t *g, char *name); >extern Agedge_t *findedge(Agnode_t *t, Agnode_t *h); > >/** */ >extern Agsym_t *findattr(Agraph_t *g, char *name); >extern Agsym_t *findattr(Agnode_t *n, char *name); >extern Agsym_t *findattr(Agedge_t *e, char *name); > >/** Misc graph navigators returning handles */ >extern Agnode_t *headof(Agedge_t *e); >extern Agnode_t *tailof(Agedge_t *e); >extern Agraph_t *graphof(Agraph_t *g); >extern Agraph_t *graphof(Agedge_t *e); >extern Agraph_t *graphof(Agnode_t *n); >extern Agraph_t *rootof(Agraph_t *g); > >/** Obtain handles of proto node/edge for setting default attribute values */ >extern Agnode_t *protonode(Agraph_t *g); >extern Agedge_t *protoedge(Agraph_t *g); > >/** Iterators */ >/*** Iteration termination tests */ >extern bool ok(Agraph_t *g); >extern bool ok(Agnode_t *n); >extern bool ok(Agedge_t *e); >extern bool ok(Agsym_t *a); > >/*** Iterate over subgraphs of a graph */ >extern Agraph_t *firstsubg(Agraph_t *g); >extern Agraph_t *nextsubg(Agraph_t *g, Agraph_t *sg); > >/*** Iterate over supergraphs of a graph (obscure and rarely useful) */ >extern Agraph_t *firstsupg(Agraph_t *g); >extern Agraph_t *nextsupg(Agraph_t *g, Agraph_t *sg); > >/*** Iterate over edges of a graph */ >extern Agedge_t *firstedge(Agraph_t *g); >extern Agedge_t *nextedge(Agraph_t *g, Agedge_t *e); > >/*** Iterate over outedges of a graph */ >extern Agedge_t *firstout(Agraph_t *g); >extern Agedge_t *nextout(Agraph_t *g, Agedge_t *e); > >/*** Iterate over edges of a node */ >extern Agedge_t *firstedge(Agnode_t *n); >extern Agedge_t *nextedge(Agnode_t *n, Agedge_t *e); > >/*** Iterate over out-edges of a node */ >extern Agedge_t *firstout(Agnode_t *n); >extern Agedge_t *nextout(Agnode_t *n, Agedge_t *e); > >/*** Iterate over head nodes reachable from out-edges of a node */ >extern Agnode_t *firsthead(Agnode_t *n); >extern Agnode_t *nexthead(Agnode_t *n, Agnode_t *h); > >/*** Iterate over in-edges of a graph */ >extern Agedge_t *firstin(Agraph_t *g); >extern Agedge_t *nextin(Agnode_t *n, Agedge_t *e); > >/*** Iterate over in-edges of a node */ >extern Agedge_t *firstin(Agnode_t *n); >extern Agedge_t *nextin(Agraph_t *g, Agedge_t *e); > >/*** Iterate over tail nodes reachable from in-edges of a node */ >extern Agnode_t *firsttail(Agnode_t *n); >extern Agnode_t *nexttail(Agnode_t *n, Agnode_t *t); > >/*** Iterate over nodes of a graph */ >extern Agnode_t *firstnode(Agraph_t *g); >extern Agnode_t *nextnode(Agraph_t *g, Agnode_t *n); > >/*** Iterate over nodes of an edge */ >extern Agnode_t *firstnode(Agedge_t *e); >extern Agnode_t *nextnode(Agedge_t *e, Agnode_t *n); > >/*** Iterate over attributes of a graph */ >extern Agsym_t *firstattr(Agraph_t *g); >extern Agsym_t *nextattr(Agraph_t *g, Agsym_t *a); > >/*** Iterate over attributes of an edge */ >extern Agsym_t *firstattr(Agedge_t *e); >extern Agsym_t *nextattr(Agedge_t *e, Agsym_t *a); > >/*** Iterate over attributes of a node */ >extern Agsym_t *firstattr(Agnode_t *n); >extern Agsym_t *nextattr(Agnode_t *n, Agsym_t *a); > >/** Remove graph objects */ >extern bool rm(Agraph_t *g); >extern bool rm(Agnode_t *n); >extern bool rm(Agedge_t *e); > >/** Layout */ >/*** Annotate a graph with layout attributes and values using a specific layout engine */ >extern bool layout(Agraph_t *g, char *engine); > >/** Render */ >/*** Render a layout into attributes of the graph */ >extern bool render(Agraph_t *g); > >/*** Render a layout in a specific format */ >extern bool render(Agraph_t *g, char *format); >extern bool render(Agraph_t *g, char *format, char *filename); >extern bool render(Agraph_t *g, char *format, FILE *f); >extern char* renderdata(Agraph_t *g, char *format); > >/*** Writing graph back to file */ >bool write(Agraph_t *g, FILE *f); >bool write(Agraph_t *g, char *filename); > >%}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 402931
:
271381
| 271391