getCType {RGtkBindingGenerator} | R Documentation |
These utilities are repsonsible for mapping the name of a type in the symbolic definitions to the appropriate C type.
mapToCType
isn't used in the package's code.
Use getCType
instead.
getCType(type, defs) CtypeDecl(type, var, defs)
type |
the name of the C type, e.g. string, GtkWidget as a character vector of length 1 |
defs |
the collection of symbolic class, routine and enumeration definitions. |
var |
the name of the C variable |
CtypeDecl
calls getCType
and returns a string giving the C declaration for the specified
variable name in the form Type var
.
getCType
returns a string giving the name of the C type corresponding
to the symbolic Gtk type. It does this by a multi-clause
if-else
statement since some of the matching is computational rather than lookup-based.
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.omegahat.org/RGtkBindingGenerator, http://www.gtk.org http://www.pygtk.org(?)