diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-14 01:57:04 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-14 02:00:17 +0630 |
commit | 4e9eb0a42eacdf11c9f5f3d2d9e16ef1b7ce9610 (patch) | |
tree | ae454c44e4bd961e041ca54c6501f79c3aecf4f4 /Makefile | |
parent | e2667eda65068cf1aad40f3e34fafb7814d75b1f (diff) | |
download | ovm-4e9eb0a42eacdf11c9f5f3d2d9e16ef1b7ce9610.tar.gz ovm-4e9eb0a42eacdf11c9f5f3d2d9e16ef1b7ce9610.tar.bz2 ovm-4e9eb0a42eacdf11c9f5f3d2d9e16ef1b7ce9610.zip |
fix! loops in preprocess_use_blocks iterate to the wrong bound0.0.1
A token_stream being constructed on the spot has different
used/available properties to a fully constructed one: a fully
constructed token stream uses available to hold the total number of
tokens and used as an internal iterator, while one that is still being
constructed uses the semantics of a standard darr.
Furthermore, some loops didn't divide by ~sizeof(token_t)~ which lead
to iteration over bound errors.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -56,38 +56,38 @@ examples: $(EXAMPLES_DIST) $(EXAMPLES) $(LIB_DIST)/%.o: $(LIB_SRC)/%.c @$(CC) $(LIB_CFLAGS) -MMD -c $< -o $@ $(LIBS) - @echo -e "$(TERM_YELLOW)$@$(TERM_RESET): $<" + @echo "$(TERM_YELLOW)$@$(TERM_RESET): $<" ## VM Recipes $(VM_OUT): $(LIB_OBJECTS) $(VM_OBJECTS) $(VM_DIST)/main.o @$(CC) $(VM_CFLAGS) $^ -o $@ $(LIBS) - @echo -e "$(TERM_GREEN)$@$(TERM_RESET): $^" + @echo "$(TERM_GREEN)$@$(TERM_RESET): $^" -include $(VM_DEPS) $(VM_DIST)/%.o: $(VM_SRC)/%.c @$(CC) $(VM_CFLAGS) -MMD -c $< -o $@ $(LIBS) - @echo -e "$(TERM_YELLOW)$@$(TERM_RESET): $<" + @echo "$(TERM_YELLOW)$@$(TERM_RESET): $<" ## ASSEMBLY Recipes $(ASM_OUT): $(LIB_OBJECTS) $(ASM_OBJECTS) $(ASM_DIST)/main.o @$(CC) $(ASM_CFLAGS) $^ -o $@ $(LIBS) - @echo -e "$(TERM_GREEN)$@$(TERM_RESET): $^" + @echo "$(TERM_GREEN)$@$(TERM_RESET): $^" -include $(ASM_DEPS) $(ASM_DIST)/%.o: $(ASM_SRC)/%.c @$(CC) $(ASM_CFLAGS) -MMD -c $< -o $@ $(LIBS) - @echo -e "$(TERM_YELLOW)$@$(TERM_RESET): $<" + @echo "$(TERM_YELLOW)$@$(TERM_RESET): $<" ## EXAMPLES recipes $(EXAMPLES_DIST)/%.out: $(EXAMPLES_SRC)/%.asm $(ASM_OUT) @$(ASM_OUT) $< $@ - @echo -e "$(TERM_GREEN)$@$(TERM_RESET): $<" + @echo "$(TERM_GREEN)$@$(TERM_RESET): $<" .PHONY: run-examples run-examples: $(EXAMPLES) - $(foreach example,$(EXAMPLES),$(MAKE) interpret BYTECODE=$(example);) + @$(foreach example,$(EXAMPLES), echo "$(TERM_YELLOW)$(example)$(TERM_RESET)"; $(MAKE) -s interpret BYTECODE=$(example);) OUT= ARGS= |