codex
Loading...
Searching...
No Matches
yaml.h File Reference
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include </usr/include/yaml.h>
Include dependency graph for yaml.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  parser< s >
 
struct  scalar_string
 
struct  scalar
 

Macros

#define MAX_DEPTH   128
 
#define ARRAY_RESIZE(p, pn0, n1)   array_resize(p, pn0, n1, sizeof(*p))
 

Enumerations

enum  scalar_type {
  SCALAR_EMPTY , SCALAR_INT , SCALAR_UINT , SCALAR_FLOAT ,
  SCALAR_STRING
}
 

Functions

const char * event_type_str (yaml_event_type_t t)
 
const char * scalar_type_str (enum scalar_type t)
 
void scalar_print (const struct scalar *s, FILE *out)
 
bool scalar_from_event (const yaml_event_t *event, struct scalar *s)
 
int process_text (struct parser *parser, FILE *out)
 
int process_json (struct parser *parser, FILE *out)
 
int process_yaml (struct parser *parser, FILE *out)
 
static void * array_resize (void *p, size_t *pn0, size_t n1, size_t s)
 

Macro Definition Documentation

◆ ARRAY_RESIZE

#define ARRAY_RESIZE ( p,
pn0,
n1 )   array_resize(p, pn0, n1, sizeof(*p))

◆ MAX_DEPTH

#define MAX_DEPTH   128

Enumeration Type Documentation

◆ scalar_type

Enumerator
SCALAR_EMPTY 
SCALAR_INT 
SCALAR_UINT 
SCALAR_FLOAT 
SCALAR_STRING 

Function Documentation

◆ array_resize()

void * array_resize ( void * p,
size_t * pn0,
size_t n1,
size_t s )
inlinestatic

◆ event_type_str()

const char * event_type_str ( yaml_event_type_t t)
Here is the caller graph for this function:

◆ process_json()

int process_json ( struct parser * parser,
FILE * out )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_text()

int process_text ( struct parser * parser,
FILE * out )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_yaml()

int process_yaml ( struct parser * parser,
FILE * out )
Here is the caller graph for this function:

◆ scalar_from_event()

bool scalar_from_event ( const yaml_event_t * event,
struct scalar * s )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scalar_print()

void scalar_print ( const struct scalar * s,
FILE * out )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scalar_type_str()

const char * scalar_type_str ( enum scalar_type t)
Here is the caller graph for this function: