Index: src/config.h --- src/config.h.orig 2015-10-21 23:11:04.000000000 +0200 +++ src/config.h 2016-03-05 10:35:31.312615434 +0100 @@ -31,7 +31,7 @@ #define WITH_FLOAT #define WITH_REFERENCE -#define WITH_DRAW +#undef WITH_DRAW #undef WITH_STATISTIC #define WITH_COMPILATION_INFO #define WITH_TYPE_CHECK Index: src/heaputl.c --- src/heaputl.c.orig 2016-03-05 10:35:31.312615000 +0100 +++ src/heaputl.c 2016-03-05 10:35:51.742498911 +0100 @@ -38,8 +38,8 @@ #include "stdio.h" #if HAS_GETRLIMIT && defined STACK_SIZE /* In FreeBSD it is necessary to include before */ -#include "sys/types.h" -#include "sys/resource.h" +#include +#include #endif #include "common.h" Index: src/makefile --- src/makefile.orig 2016-02-11 20:32:43.000000000 +0100 +++ src/makefile 2016-03-05 10:35:31.312615434 +0100 @@ -4,7 +4,7 @@ # make # If you are under windows you should use MinGW with mk_mingw.mak, mk_nmake.mak or mk_msys.mak instead. -# CFLAGS = +CFLAGS = # CFLAGS = -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -g -Wall -Wextra -Wswitch-default -Wswitch-enum -Wcast-qual -Waggregate-return -Wwrite-strings -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -Wmissing-noreturn -Wno-multichar -Wc++-compat @@ -13,7 +13,7 @@ # CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -ftrapv # CFLAGS = -O2 -g -x c++ -Wall -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -g -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -ftrapv -CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith +CFLAGS = -O2 -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) # CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) -Wall -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -g -std=c99 -D_POSIX_SOURCE -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -g -Wall -Winline -Wconversion -Wshadow -Wpointer-arith @@ -21,24 +21,24 @@ # CFLAGS = -O2 -g -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith # CFLAGS = -O2 -fomit-frame-pointer -funroll-loops -Wall # CFLAGS = -O2 -funroll-loops -Wall -pg -LDFLAGS = -Wl,--gc-sections +LDFLAGS = # LDFLAGS = -pg # LDFLAGS = -pg -lc_p -SYSTEM_LIBS = -lm -ldl +SYSTEM_LIBS = -lm # SYSTEM_LIBS = -lm -ldl -lgmp # SYSTEM_LIBS = -lm_p -lc_p SYSTEM_CONSOLE_LIBS = -lncurses -SYSTEM_DRAW_LIBS = -lX11 +SYSTEM_DRAW_LIBS = # SYSTEM_DRAW_LIBS = /usr/Xlib/libX11.so # SYSTEM_DRAW_LIBS = -lX11 -lXext # SYSTEM_DRAW_LIBS = -lGL -lGLEW -lglut # SYSTEM_DRAW_LIBS = -lGL -lGLEW -lX11 SEED7_LIB = seed7_05.a CONSOLE_LIB = s7_con.a -DRAW_LIB = s7_draw.a +DRAW_LIB = COMP_DATA_LIB = s7_data.a COMPILER_LIB = s7_comp.a -ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(DRAW_LIB) ../bin/$(CONSOLE_LIB) ../bin/$(SEED7_LIB) +ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(CONSOLE_LIB) ../bin/$(SEED7_LIB) # CC = g++ CC = gcc GET_CC_VERSION_INFO = $(CC) --version > @@ -90,7 +90,7 @@ DOBJ = $(BIGINT_LIB).o cmd_unx.o dll_unx.o fil_unx.o pcs_unx.o pol_unx.o tim_unx.o OBJ = $(MOBJ) SEED7_LIB_OBJ = $(ROBJ) $(DOBJ) -DRAW_LIB_OBJ = gkb_rtl.o drw_x11.o gkb_x11.o +DRAW_LIB_OBJ = COMP_DATA_LIB_OBJ = typ_data.o rfl_data.o ref_data.o listutl.o flistutl.o typeutl.o datautl.o COMPILER_LIB_OBJ = $(POBJ) $(LOBJ) $(EOBJ) $(AOBJ) $(GOBJ) Index: src/objutl.c --- src/objutl.c.orig 2015-06-04 23:39:11.000000000 +0200 +++ src/objutl.c 2016-03-05 10:35:31.312615434 +0100 @@ -760,7 +760,9 @@ if (object->value.winValue != NULL) { object->value.winValue->usage_count--; if (object->value.winValue->usage_count == 0) { +#ifdef WITH_DRAW drwFree(object->value.winValue); +#endif } /* if */ } /* if */ SET_UNUSED_FLAG(object);