protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit e61de4ded786b5e1b909069c2df5928366eddb37
parent ab040e5f8fb23b0f4f2b234b8bb3d8fb2f7bd3aa
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  5 Jul 2021 12:15:01 -0700

misc

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MMakefile | 4++--
Msrc/parse.c | 6++++--
Mtodo/todo.txt | 1+
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,5 @@ -CFLAGS = -Wno-error=unused-function -DDEBUG -O2 -g -std=gnu90 -Wall -Wextra -Werror \ +CFLAGS = -Wno-error=unused-function -O2 -g -std=gnu90 -Wall -Wextra -Werror \ -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes \ -Wmissing-declarations -Wdeclaration-after-statement @@ -43,7 +43,7 @@ bench: src/bench.c $(OBJS) @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ clean: - rm -f protoverse test $(OBJS) libprotoverse.a $(WASMS) + rm -f protoverse test $(OBJS) libprotoverse.a test: src/test.c $(OBJS) @echo "ld $@" diff --git a/src/parse.c b/src/parse.c @@ -42,7 +42,7 @@ union token { }; -/* +#ifdef DEBUG static const char *attr_type_str(enum attribute_type type) { switch (type) { @@ -61,7 +61,7 @@ static const char *attr_type_str(enum attribute_type type) return "unknown"; } -*/ +#endif static const char *token_error_string(enum token_error err) { @@ -656,6 +656,7 @@ static int pull_token(struct token_cursor *tokens, } #ifdef DEBUG +/* static void print_token_data(union token *token, enum token_type type) { switch (type) { @@ -702,6 +703,7 @@ static void print_current_token(struct token_cursor *tokens) print_token_data(&token, type); printf("\n"); } +*/ #endif /* diff --git a/todo/todo.txt b/todo/todo.txt @@ -0,0 +1 @@ +chunked envelope (1280-byte sized chunks) @net