mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 06:52:49 -06:00
initial import of the C runtime
This commit is contained in:
34
src/runtime/c/gu/dump.h
Normal file
34
src/runtime/c/gu/dump.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef GU_DUMP_H_
|
||||
#define GU_DUMP_H_
|
||||
|
||||
#include <gu/defs.h>
|
||||
#include <gu/yaml.h>
|
||||
#include <gu/type.h>
|
||||
#include <gu/map.h>
|
||||
|
||||
typedef struct GuDump GuDump;
|
||||
|
||||
struct GuDump {
|
||||
GuPool* pool;
|
||||
GuYaml* yaml;
|
||||
GuMap* data;
|
||||
GuTypeMap* dumpers;
|
||||
bool print_address;
|
||||
};
|
||||
|
||||
typedef void (*GuDumpFn)(GuFn* self, GuType* type, const void* value, GuDump* ctx);
|
||||
|
||||
GuDump*
|
||||
gu_new_dump(GuWriter* wtr, GuTypeTable* dumpers, GuExn* err, GuPool* pool);
|
||||
|
||||
void
|
||||
gu_dump(GuType* type, const void* value, GuDump* ctx);
|
||||
|
||||
void
|
||||
gu_dump_stderr(GuType* type, const void* value, GuExn* err);
|
||||
|
||||
extern GuTypeTable
|
||||
gu_dump_table;
|
||||
|
||||
|
||||
#endif // GU_DUMP_H_
|
||||
Reference in New Issue
Block a user