From 26f94aa6da58382e9f1579accf4aabda18bb5c07 Mon Sep 17 00:00:00 2001 From: "e.gavrin" Date: Tue, 8 Jul 2014 16:11:34 +0400 Subject: [PATCH] fyxed typos --- Makefile | 11 ++++++----- src/libcoreint/interpreter.c | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index e3eda3f25..4f527b674 100644 --- a/Makefile +++ b/Makefile @@ -67,10 +67,10 @@ STRIP = $(CROSS_COMPILE)strip # General flags CFLAGS ?= $(INCLUDES) -std=c99 #-fdiagnostics-color=always -#CFLAGS += -Wall -Wextra -Wpedantic -Wlogical-op -Winline -#CFLAGS += -Wformat-nonliteral -Winit-self -Wstack-protector -#CFLAGS += -Wconversion -Wsign-conversion -Wformat-security -#CFLAGS += -Wstrict-prototypes -Wmissing-prototypes +CFLAGS += -Wall -Wextra -Wpedantic -Wlogical-op -Winline +CFLAGS += -Wformat-nonliteral -Winit-self -Wstack-protector +CFLAGS += -Wconversion -Wsign-conversion -Wformat-security +CFLAGS += -Wstrict-prototypes -Wmissing-prototypes # Flags for MCU MCU_CFLAGS += -mlittle-endian -mcpu=cortex-m4 -march=armv7e-m -mthumb @@ -99,7 +99,7 @@ release: clean $(SOURCES) $(MAIN_MODULE_SRC) -o $(OUT_DIR)/release.host/$(TARGET) $(STRIP) $(OUT_DIR)/release.host/$(TARGET) -tests: clean +tests: mkdir -p $(OUT_DIR)/tests.host/ for unit_test in $(UNITTESTS); \ do \ @@ -116,6 +116,7 @@ clean: rm -f $(TARGET).map rm -f $(TARGET).hex rm -f $(TARGET).lst + rm -f js.files check: tests @mkdir -p $(OUT_DIR) diff --git a/src/libcoreint/interpreter.c b/src/libcoreint/interpreter.c index d841fdf6f..088de1733 100644 --- a/src/libcoreint/interpreter.c +++ b/src/libcoreint/interpreter.c @@ -32,12 +32,12 @@ gen_bytecode () wait(500); } */ - save_op_data (0, getop_loop_inf (1)); - save_op_data (1, getop_call_1 (0, 12)); - save_op_data (2, getop_call_1 (0, 13)); - save_op_data (3, getop_call_1 (0, 14)); - save_op_data (4, getop_call_1 (0, 15)); - save_op_data (5, getop_jmp (0)); +// save_op_data (0, getop_loop_inf (1)); +// save_op_data (1, getop_call_1 (0, 12)); +// save_op_data (2, getop_call_1 (0, 13)); +// save_op_data (3, getop_call_1 (0, 14)); +// save_op_data (4, getop_call_1 (0, 15)); +// save_op_data (5, getop_jmp (0)); #ifdef __MCU // It's mandatory to restart app!