31# define SERD_LOG_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
33# define SERD_LOG_FUNC(fmt, arg1)
36#ifdef SERD_STACK_CHECK
37# define SERD_STACK_ASSERT_TOP(reader, ref) \
38 assert(ref == reader->allocs[reader->n_allocs - 1]);
40# define SERD_STACK_ASSERT_TOP(reader, ref)
80#ifdef SERD_STACK_CHECK
161 for (
unsigned i = 0;
i <
n; ++
i) {
191 for (
unsigned i = 0;
i < len; ++
i) {
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
static SerdStatus serd_byte_source_advance(SerdByteSource *source)
Definition byte_source.h:81
int * l
Definition inflate.c:1579
unsigned d
Definition inflate.c:940
register unsigned i
Definition inflate.c:1575
unsigned s
Definition inflate.c:1555
SerdStatus(* SerdStatementSink)(void *SERD_NULLABLE handle, SerdStatementFlags flags, const SerdNode *SERD_NULLABLE graph, const SerdNode *SERD_NONNULL subject, const SerdNode *SERD_NONNULL predicate, const SerdNode *SERD_NONNULL object, const SerdNode *SERD_NULLABLE object_datatype, const SerdNode *SERD_NULLABLE object_lang)
Definition serd.h:632
SerdStatus(* SerdEndSink)(void *SERD_NULLABLE handle, const SerdNode *SERD_NONNULL node)
Definition serd.h:649
SerdStatus(* SerdPrefixSink)(void *SERD_NULLABLE handle, const SerdNode *SERD_NONNULL name, const SerdNode *SERD_NONNULL uri)
Definition serd.h:623
SerdStatus(* SerdErrorSink)(void *SERD_NULLABLE handle, const SerdError *SERD_NONNULL error)
Definition serd.h:607
SerdStatus(* SerdBaseSink)(void *SERD_NULLABLE handle, const SerdNode *SERD_NONNULL uri)
Definition serd.h:615
SerdStatus
Return status code.
Definition serd.h:100
SerdSyntax
RDF syntax type.
Definition serd.h:113
struct SerdReaderImpl SerdReader
Streaming parser that reads a text stream and writes to a statement sink.
Definition serd.h:94
uint32_t SerdStatementFlags
Bitwise OR of SerdStatementFlag values.
Definition serd.h:133
SerdType
Definition serd.h:146
@ SERD_ERR_BAD_SYNTAX
Invalid syntax.
Definition serd.h:104
@ SERD_SUCCESS
No error.
Definition serd.h:101
unsigned char uint8_t
Definition mid.cpp:98
SerdStatus read_turtleTrigDoc(SerdReader *reader)
Definition n3.c:1651
SerdStatus read_nquadsDoc(SerdReader *reader)
Definition n3.c:1667
SerdStatus read_n3_statement(SerdReader *reader)
Definition n3.c:1563
SerdStatus r_err(SerdReader *reader, SerdStatus st, const char *fmt,...)
Definition reader.c:32
static int peek_byte(SerdReader *reader)
Definition reader.h:128
#define SERD_LOG_FUNC(fmt, arg1)
Definition reader.h:33
static int eat_byte_safe(SerdReader *reader, const int byte)
Definition reader.h:136
static int eat_byte_check(SerdReader *reader, const int byte)
Definition reader.h:148
#define SERD_STACK_ASSERT_TOP(reader, ref)
Definition reader.h:40
static SerdStatus push_byte(SerdReader *reader, Ref ref, const int c)
Definition reader.h:170
static SerdStatus eat_string(SerdReader *reader, const char *str, unsigned n)
Definition reader.h:159
static void push_bytes(SerdReader *reader, Ref ref, const uint8_t *bytes, unsigned len)
Definition reader.h:189
size_t Ref
Definition reader.h:46
static void * serd_stack_push(SerdStack *stack, size_t n_bytes)
Definition stack.h:65
Ref object
Definition reader.h:52
SerdStatementFlags * flags
Definition reader.h:55
Ref graph
Definition reader.h:49
Ref datatype
Definition reader.h:53
Ref lang
Definition reader.h:54
Ref subject
Definition reader.h:50
Ref predicate
Definition reader.h:51
Definition byte_source.h:34
size_t read_head
Offset into read_buf.
Definition byte_source.h:43
const uint8_t * read_buf
Pointer to file_buf or read_byte.
Definition byte_source.h:42
bool eof
True iff end of file reached.
Definition byte_source.h:47
A syntactic RDF node.
Definition serd.h:199
size_t n_bytes
Size in bytes (excluding null).
Definition serd.h:201
size_t n_chars
String length (excluding null).
Definition serd.h:202
Ref rdf_first
Definition reader.h:67
void(* free_handle)(void *ptr)
Definition reader.h:60
SerdPrefixSink prefix_sink
Definition reader.h:62
SerdErrorSink error_sink
Definition reader.h:65
Ref rdf_rest
Definition reader.h:68
uint8_t * bprefix
Definition reader.h:76
size_t bprefix_len
Definition reader.h:77
SerdByteSource source
Definition reader.h:71
void * error_handle
Definition reader.h:66
bool seen_genid
Definition reader.h:79
SerdStack stack
Definition reader.h:72
Ref rdf_nil
Definition reader.h:69
SerdNode default_graph
Definition reader.h:70
SerdStatementSink statement_sink
Definition reader.h:63
bool strict
True iff strict parsing.
Definition reader.h:78
uint8_t * buf
Definition reader.h:75
SerdEndSink end_sink
Definition reader.h:64
unsigned next_id
Definition reader.h:74
SerdBaseSink base_sink
Definition reader.h:61
void * handle
Definition reader.h:59
SerdSyntax syntax
Definition reader.h:73
uint8_t * buf
Stack memory.
Definition stack.h:31
int n
Definition crypt.c:458
return c
Definition crypt.c:175
fmt[0]
Definition fileio.c:2503
typedef int(UZ_EXP MsgFn)()
#define void
Definition unzip.h:396
#define const
Definition zconf.h:137