Fixes
This commit is contained in:
parent
4b2180d4ba
commit
037c8cf8e0
@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
#include"ebml.h"
|
#include"ebml.h"
|
||||||
|
|
||||||
|
#include<stddef.h>
|
||||||
|
#include<stdint.h>
|
||||||
|
|
||||||
enum EBMLReaderState {
|
enum EBMLReaderState {
|
||||||
EBMLRS_WAITING_FOR_ELEMENT_ID,
|
EBMLRS_WAITING_FOR_ELEMENT_ID,
|
||||||
EBMLRS_WAITING_FOR_ELEMENT_LENGTH,
|
EBMLRS_WAITING_FOR_ELEMENT_LENGTH,
|
||||||
|
2
schemagen/Makefile
Normal file
2
schemagen/Makefile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
all:
|
||||||
|
cc -o schemagen schemagen.c ezxml.c
|
@ -29,7 +29,7 @@ int main(int argc, char **argv) {
|
|||||||
printf("#include<stdlib.h>\n");
|
printf("#include<stdlib.h>\n");
|
||||||
printf("#include<string.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) {
|
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"));
|
printf("#define %s_%s %sL\n", NAME, ezxml_attr(el, "name"), ezxml_attr(el, "id"));
|
||||||
|
Loading…
Reference in New Issue
Block a user