Sha256: b687396fc125c1aaed1679947ebc5e16609f1d57619ec23df663770453a1701c

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

.. meta::
   :robots: index,follow
   :description: libndtypes documentation

.. sectionauthor:: Stefan Krah <skrah at bytereef.org>


Typedef
=======

libndtypes has a global lookup table for type aliases.  These aliases are
treated as nominal types in pattern matching.


.. code-block:: c

   int ndt_init(ndt_context_t *ctx);

This function must be called at program start to initialize the typedef
table.


.. code-block:: c

   int ndt_typedef(const char *name, ndt_t *type, ndt_context_t *ctx);

Create a nominal type alias for *type*.  The function steals the *type*
argument.



Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ndtypes-0.2.0dev8 ext/ruby_ndtypes/ndtypes/doc/libndtypes/typedef.rst
ndtypes-0.2.0dev6 ext/ruby_ndtypes/ndtypes/doc/libndtypes/typedef.rst
ndtypes-0.2.0dev5 ext/ruby_ndtypes/ndtypes/doc/libndtypes/typedef.rst
ndtypes-0.2.0dev4 ext/ruby_ndtypes/ndtypes/doc/libndtypes/typedef.rst