From a0d6bf48a185026589288fd9aa94506b321301d8 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 4 May 2021 11:07:45 +0200 Subject: further improved parsing and related tests --- service/src/stlfile.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'service/src/stlfile.h') diff --git a/service/src/stlfile.h b/service/src/stlfile.h index 25f2211..6c85ed6 100644 --- a/service/src/stlfile.h +++ b/service/src/stlfile.h @@ -7,6 +7,7 @@ #include enum { + KW_INVALID = -1, KW_UNKNOWN, KW_SOLID_BEGIN, KW_SOLID_END, @@ -34,14 +35,14 @@ struct stack { }; struct parseinfo { - char fmtbuf[256]; - char header[80]; - int type, valid; + char extra[80]; unsigned int loopcount; - float bbw, bbh; + float bbmin[3], bbmax[3]; + int type, valid; char *namehash, *infopath, *stlpath; }; int parse_file(struct parseinfo *info, char *buf, size_t len); +void free_info(struct parseinfo *info); #endif /* STLFILE_H */ -- cgit v1.2.3-71-gd317