You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
4.3 KiB
99 lines
4.3 KiB
Index: src/config.h |
|
--- src/config.h.orig 2018-10-15 08:30:01.928667000 +0200 |
|
+++ src/config.h 2018-10-15 08:30:59.703454000 +0200 |
|
@@ -31,7 +31,7 @@ |
|
|
|
#define WITH_FLOAT 1 |
|
#define WITH_REFERENCE 1 |
|
-#define WITH_DRAW 1 |
|
+#undef WITH_DRAW |
|
#define WITH_SQL 1 |
|
#define WITH_STATISTIC 0 |
|
#define WITH_COMPILATION_INFO 1 |
|
Index: src/heaputl.c |
|
--- src/heaputl.c.orig 2018-05-11 15:27:59.000000000 +0200 |
|
+++ src/heaputl.c 2018-10-15 08:30:01.928893000 +0200 |
|
@@ -38,8 +38,8 @@ |
|
#include "stdio.h" |
|
#if HAS_GETRLIMIT && defined STACK_SIZE |
|
/* In FreeBSD it is necessary to include <sys/types.h> before <sys/resource.h> */ |
|
-#include "sys/types.h" |
|
-#include "sys/resource.h" |
|
+#include <sys/types.h> |
|
+#include <sys/resource.h> |
|
#endif |
|
|
|
#include "common.h" |
|
Index: src/makefile |
|
--- src/makefile.orig 2018-10-07 09:50:20.000000000 +0200 |
|
+++ src/makefile 2018-10-15 08:30:01.929075000 +0200 |
|
@@ -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 -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) -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 $(INCLUDE_OPTIONS) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith |
|
# CFLAGS = -O2 -g -std=c1x -D_XOPEN_SOURCE -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith |
|
@@ -22,24 +22,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 > |
|
@@ -87,7 +87,7 @@ |
|
DOBJ = big_rtl.o big_gmp.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 2018-10-09 23:14:33.000000000 +0200 |
|
+++ src/objutl.c 2018-10-15 08:30:01.929254000 +0200 |
|
@@ -761,7 +761,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);
|
|
|