Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_option_dict_t Struct Reference

Ordered loose string option dictionary. More...

#include <base.h>

Data Fields

loomc_structure_type_t type
 Structure type. Must be LOOMC_STRUCTURE_TYPE_OPTION_DICT.
loomc_host_size_t structure_size
 Size of this structure in bytes.
const void * next
 Next invocation option extension.
const loomc_option_entry_tentries
 Ordered option entries.
loomc_host_size_t entry_count
 Number of entries in entries.

Detailed Description

Ordered loose string option dictionary.

Operations that document support for this descriptor accept it on their invocation option next chain. Supporting operations walk descriptor-chain order, and each dictionary walks entries in array order. When a recognized key appears more than once, the last recognized value wins.

Supporting operations report unknown keys through the returned result, not process-level status failures. A non-OK status is still used for structural API misuse such as an entry count with a NULL entry pointer.


The documentation for this struct was generated from the following file: