Next: , Previous: , Up: pathname simple   [Contents][Index]


8.3.2 Simple pathname: constructors

Constructors for embedded instances

Function: void ccname_init(ccstructs_pathname_t, from_asciiz) (cce_destination_t L, ccstructs_pathname_t * ptn, ccmem_asciiz_t rep)

Constructor function that initialises an already allocated struct instance. This function initialises from an ASCIIZ representation; (ccmemory)Zero terminated strings. If an error occurs: raise an exception by performing a non–local exit to L.

Function: void ccname_init(ccstructs_pathname_t, from_ascii) (cce_destination_t L, ccstructs_pathname_t * ptn, ccmem_ascii_t rep)

Constructor function that initialises an already allocated struct instance. This function initialises from an ASCII representation; (ccmemory)Non–zero terminated strings. If an error occurs: raise an exception by performing a non–local exit to L.

Function: void ccname_init(ccstructs_pathname_t, from_chars) (cce_destination_t L, ccstructs_pathname_t * ptn, char const * P)

Constructor function that initialises an already allocated struct instance. This function initialises from a C pointer to an ASCIIZ representation. If an error occurs: raise an exception by performing a non–local exit to L.

Function: void ccname_init(ccstructs_pathname_t, copy) (cce_destination_t L, ccstructs_pathname_t * dst, ccstructs_pathname_t const * src)

Constructor function that initialises an already allocated struct instance. This function initialises from an already built pathname instance. If an error occurs: raise an exception by performing a non–local exit to L.

Function: void ccname_init(ccstructs_pathname_t, deserialisable) (ccstructs_pathname_t * ptn)

Constructor function that initialises an already allocated struct instance. This function initialises in such a way that it allows for both finalisation and mutation from deserialisation.

Constructors for standalone instances

Function: ccstructs_pathname_t const * ccname_new(ccstructs_pathname_t, from_asciiz) (cce_destination_t L, ccmem_asciiz_t rep)

Constructor function that allocates the struct on the heap using the standard memory allocator implemented by CCMemory; (ccmemory)The standard allocator. This function initialises from an ASCIIZ representation; (ccmemory)Zero terminated strings. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccstructs_pathname_t const * ccname_new(ccstructs_pathname_t, from_ascii) (cce_destination_t L, ccmem_ascii_t rep)

Constructor function that allocates the struct on the heap using the standard memory allocator implemented by CCMemory; (ccmemory)The standard allocator. This function initialises from an ASCII representation; (ccmemory)Non–zero terminated strings. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccstructs_pathname_t const * ccname_new(ccstructs_pathname_t, from_chars) (cce_destination_t L, char const * P)

Constructor function that allocates the struct on the heap using the standard memory allocator implemented by CCMemory; (ccmemory)The standard allocator. This function initialises from a C pointer to an ASCIIZ representation. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccstructs_pathname_t const * ccname_new(ccstructs_pathname_t, copy) (cce_destination_t L, ccstructs_pathname_t const * src)

Constructor function that allocates the struct on the heap using the standard memory allocator implemented by CCMemory; (ccmemory)The standard allocator. This function initialises from an already built pathname representation. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccstructs_pathname_t * ccname_new(ccstructs_pathname_t, deserialisable) (cce_destination_t L)

Constructor function that allocates the struct on the heap using the standard memory allocator implemented by CCMemory; (ccmemory)The standard allocator. This function initialises in such a way that it allows for both finalisation and mutation from deserialisation. If an error occurs: raise an exception by performing a non–local exit to L.


Next: , Previous: , Up: pathname simple   [Contents][Index]

This document describes version 0.3.0-devel.3 of CCStructs.