add assignment operator and unify memory pools
The unification of memory pools also fixed some memory leaks and hopefully reduced the mallocs of identifier strings significantly by giving them the same pool as the token stream.
This commit is contained in:
1 parent
21694f98ac
commit
63af3e907b
11 files changed
+121
-48
No files matched your search
@@ -24,10 +24,16 @@ map_test: map_test.c util.c map.c
|
||||
run_map_test: map_test
|
||||
valgrind ./map_test
|
||||
|
||||
pool_test: pool_test.c util.c
|
||||
$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
run_pool_test: pool_test
|
||||
valgrind ./pool_test
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f $(OBJ) $(EXE) deps.mk gmon.out map_test
|
||||
rm -f $(OBJ) $(EXE) deps.mk gmon.out map_test pool_test
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
include deps.mk
|
||||
|
||||
Reference in new issue
Block a user