YATL
Loading...
Searching...
No Matches
Opaque Types and Constants

Core opaque structures and size constants. More...

Data Structures

struct  YATL_Line
 Opaque line structure. More...
struct  YATL_Cursor
 Opaque cursor structure. More...
struct  YATL_Span
 Opaque span structure. More...
struct  YATL_Doc
 Opaque document structure. More...

Macros

#define YATL_LINE_SIZE   96
 Size of opaque YATL_Line_t structure in bytes.
#define YATL_CURSOR_SIZE   96
 Size of opaque YATL_Cursor_t structure in bytes.
#define YATL_SPAN_SIZE   160
 Size of opaque YATL_Span_t structure in bytes.
#define YATL_DOC_SIZE   64
 Size of opaque YATL_Doc_t structure in bytes.

Typedefs

typedef struct YATL_Line YATL_Line_t
 Opaque line structure.
typedef struct YATL_Cursor YATL_Cursor_t
 Opaque cursor structure.
typedef struct YATL_Span YATL_Span_t
 Opaque span structure.
typedef struct YATL_Doc YATL_Doc_t
 Opaque document structure.

Detailed Description

Core opaque structures and size constants.

Typedef Documentation

◆ YATL_Cursor_t

typedef struct YATL_Cursor YATL_Cursor_t

Opaque cursor structure.

Points to a specific position within a document (line + character offset). Used for iteration and defining span boundaries.

Note
Always initialize with YATL_cursor_create() for input cursors.

◆ YATL_Doc_t

typedef struct YATL_Doc YATL_Doc_t

Opaque document structure.

Represents a complete TOML document as a doubly-linked list of lines.

Note
Always initialize with YATL_doc_create() before use. Always call YATL_doc_free() when done to release resources.

◆ YATL_Line_t

typedef struct YATL_Line YATL_Line_t

Opaque line structure.

Represents a single line in a TOML document. Users should not access internal fields directly.

◆ YATL_Span_t

typedef struct YATL_Span YATL_Span_t

Opaque span structure.

A view into the document defined by start and end cursors. Spans are lightweight and do not copy data. They can represent the entire document, a table, a key-value pair, or a value.

Note
Spans become invalid if the underlying document is modified in a way that affects the spanned region.