libsheepy
Macros | Functions
ymlScanner.c File Reference
#include "yaml_private.h"
Include dependency graph for ymlScanner.c:

Go to the source code of this file.

Macros

#define CACHE(parser, length)
 
#define SKIP(parser)
 
#define SKIP_LINE(parser)
 
#define READ(parser, string)
 
#define READ_LINE(parser, string)
 
#define MAX_NUMBER_LENGTH   9
 

Functions

 yaml_parser_scan (yaml_parser_t *parser, yaml_token_t *token)
 Scan the input stream and produce the next token. More...
 
 yaml_parser_fetch_more_tokens (yaml_parser_t *parser)
 

Macro Definition Documentation

◆ CACHE

#define CACHE (   parser,
  length 
)
Value:
(parser->unread >= (length) \
? 1 \
: yaml_parser_update_buffer(parser, (length)))
yaml_parser_update_buffer(yaml_parser_t *parser, size_t length)
Definition: ymlReader.c:142

Definition at line 486 of file ymlScanner.c.

◆ SKIP

#define SKIP (   parser)
Value:
(parser->mark.index ++, \
parser->mark.column ++, \
parser->unread --, \
parser->buffer.pointer += WIDTH(parser->buffer))
#define WIDTH(string)
Definition: yaml_private.h:383

Definition at line 495 of file ymlScanner.c.

◆ SKIP_LINE

#define SKIP_LINE (   parser)
Value:
(IS_CRLF(parser->buffer) ? \
(parser->mark.index += 2, \
parser->mark.column = 0, \
parser->mark.line ++, \
parser->unread -= 2, \
parser->buffer.pointer += 2) : \
IS_BREAK(parser->buffer) ? \
(parser->mark.index ++, \
parser->mark.column = 0, \
parser->mark.line ++, \
parser->unread --, \
parser->buffer.pointer += WIDTH(parser->buffer)) : 0)
#define WIDTH(string)
Definition: yaml_private.h:383
#define IS_CRLF(string)
Definition: yaml_private.h:344
#define IS_BREAK(string)
Definition: yaml_private.h:339

Definition at line 501 of file ymlScanner.c.

◆ READ

#define READ (   parser,
  string 
)
Value:
(STRING_EXTEND(parser,string) ? \
(COPY(string,parser->buffer), \
parser->mark.index ++, \
parser->mark.column ++, \
parser->unread --, \
1) : 0)
#define COPY(string_a, string_b)
Definition: yaml_private.h:395
#define STRING_EXTEND(context, string)
Definition: yaml_private.h:143

Definition at line 519 of file ymlScanner.c.

◆ READ_LINE

#define READ_LINE (   parser,
  string 
)

Definition at line 531 of file ymlScanner.c.

◆ MAX_NUMBER_LENGTH

#define MAX_NUMBER_LENGTH   9

Definition at line 2197 of file ymlScanner.c.

Function Documentation

◆ yaml_parser_fetch_more_tokens()

yaml_parser_fetch_more_tokens ( yaml_parser_t parser)

Definition at line 801 of file ymlScanner.c.

Here is the caller graph for this function: