MMgr v1.0.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
mmgr_fval Struct Reference

One value, tagged with the kind that selects which arm of as holds it. More...

#include <numeros_scribo.h>

Data Structures

union  [union].as

Data Fields

mmgr_fk kind
union  as
uint8_t width

Detailed Description

One value, tagged with the kind that selects which arm of as holds it.

Note
numer_build requires kind to equal the field's kind, and abandons the whole write when it does not.
numer_emit takes width from here, where numer_build takes it from the field.
Warning
numer_emit_one reads the arm that kind names and no other. A value whose kind and filled arm disagree formats what that arm was left holding.

Definition at line 95 of file numeros_scribo.h.

Field Documentation

◆ kind

mmgr_fk mmgr_fval::kind

Which arm of as holds the value.

Definition at line 97 of file numeros_scribo.h.

◆ as

union mmgr_fval::[union].as mmgr_fval::as

The value, under the arm that kind names.

◆ width

uint8_t mmgr_fval::width

Width numer_emit gives this value, or 0 to take the kind's default from s_kind.

Definition at line 106 of file numeros_scribo.h.


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