This commit is contained in:
mid 2024-07-25 10:52:05 +03:00
parent 4b2180d4ba
commit 037c8cf8e0
3 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,9 @@
#include"ebml.h"
#include<stddef.h>
#include<stdint.h>
enum EBMLReaderState {
EBMLRS_WAITING_FOR_ELEMENT_ID,
EBMLRS_WAITING_FOR_ELEMENT_LENGTH,

2
schemagen/Makefile Normal file
View File

@ -0,0 +1,2 @@
all:
cc -o schemagen schemagen.c ezxml.c

View File

@ -29,7 +29,7 @@ int main(int argc, char **argv) {
printf("#include<stdlib.h>\n");
printf("#include<string.h>\n");
printf("#include\"reader.h\"\n");
printf("#include\"eebie/reader.h\"\n");
for(ezxml_t el = ezxml_child(schema, "element"); el; el = el->next) {
printf("#define %s_%s %sL\n", NAME, ezxml_attr(el, "name"), ezxml_attr(el, "id"));