codex
Loading...
Searching...
No Matches
yaml.c File Reference
#include "yaml.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
Include dependency graph for yaml.c:

Macros

#define C(x)   case (x): return #x;
 
#define C(t, n)   case (SCALAR_ ## t): return #n;
 

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_yaml (struct parser *parser, FILE *out)
 

Macro Definition Documentation

◆ C [1/2]

#define C ( t,
n )   case (SCALAR_ ## t): return #n;

◆ C [2/2]

#define C ( x)    case (x): return #x;

Function Documentation

◆ event_type_str()

const char * event_type_str ( yaml_event_type_t t)

◆ process_yaml()

int process_yaml ( struct parser * parser,
FILE * out )

◆ scalar_from_event()

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

◆ scalar_print()

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

◆ scalar_type_str()

const char * scalar_type_str ( enum scalar_type t)