From 84e697e7c3060556f5b0f72deb7873e76da7173c Mon Sep 17 00:00:00 2001 From: nisstyre56 Date: Sat, 25 Oct 2014 02:17:09 -0400 Subject: [PATCH] move around stuff --- Makefile | 2 +- tokenize.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index df303a2..b12e6b0 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ default: tokenize.c RTS.c tokenize.h RTS.h $(MAKE) lib; $(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./tokenize.c -lmaa -o tokenize_test; $(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./RTS.c -o RTS.o; - $(CC) -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./reader.c -lmaa -o reader_test -L. -ltokenize -lrts -Wl,-rpath,/home/wes/schream; + $(CC) -DLIB -Wall -Wextra -pedantic -Wpointer-arith -Wmissing-prototypes -Werror -std=c99 -O3 ./reader.c -lmaa -o reader_test -L. -ltokenize -lrts -Wl,-rpath,/home/wes/schream; unsafe: tokenize.c RTS.c tokenize.h RTS.h $(CC) -DNDEBUG -std=c99 -O3 ./tokenize.c -lmaa; diff --git a/tokenize.h b/tokenize.h index d40b0af..ae08f4a 100644 --- a/tokenize.h +++ b/tokenize.h @@ -53,6 +53,21 @@ tokenize(source_t, uint32_t, const uint32_t); bool release_tokens(token_stream*); + +#ifndef LIB +static uint32_t +match_int(source_t, uint32_t, const uint32_t); + +static uint32_t +match_float(source_t, uint32_t, const uint32_t); + +static uint32_t +match_identifier(source_t, uint32_t, const uint32_t); + +static uint32_t +match_symbol(source_t, uint32_t, const uint32_t); +#endif + int free_token(const void *, const void *);