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.
93 lines
4.3 KiB
93 lines
4.3 KiB
Index: src/config.h |
|
--- src/config.h.orig 2021-06-21 23:34:28.000000000 +0200 |
|
+++ src/config.h 2021-10-11 08:13:05.171131000 +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 2021-09-25 09:18:50.000000000 +0200 |
|
+++ src/heaputl.c 2021-10-11 08:13:05.171348000 +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 2021-09-24 17:38:04.000000000 +0200 |
|
+++ src/makefile 2021-10-11 08:14:53.766506000 +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) $(CC_OPT_LINK_TIME_OPTIMIZATION) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith |
|
+CFLAGS = -O2 -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) |
|
# CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) -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,7 +22,7 @@ |
|
# 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 = |
|
@@ -35,12 +35,12 @@ |
|
SYSTEM_MATH_LIBS = -lm |
|
ALL_SYSTEM_LIBS = $(SYSTEM_LIBS) $(SYSTEM_BIGINT_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_DRAW_LIBS) $(SYSTEM_MATH_LIBS) |
|
SEED7_LIB = seed7_05.a |
|
-DRAW_LIB = s7_draw.a |
|
+DRAW_LIB = |
|
CONSOLE_LIB = s7_con.a |
|
DATABASE_LIB = s7_db.a |
|
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/$(DATABASE_LIB) ../bin/$(SEED7_LIB) |
|
+ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(CONSOLE_LIB) ../bin/$(DATABASE_LIB) ../bin/$(SEED7_LIB) |
|
# CC = g++ |
|
CC = gcc |
|
AR = ar |
|
@@ -64,7 +64,7 @@ |
|
tim_unx.o |
|
OBJ = $(MOBJ) |
|
SEED7_LIB_OBJ = $(ROBJ) $(DOBJ) |
|
-DRAW_LIB_OBJ = gkb_rtl.o drw_x11.o gkb_x11.o fwd_x11.o |
|
+DRAW_LIB_OBJ = |
|
CONSOLE_LIB_OBJ = kbd_rtl.o con_inf.o kbd_inf.o kbd_poll.o trm_inf.o trm_cap.o fwd_term.o |
|
DATABASE_LIB_OBJ = sql_base.o sql_db2.o sql_fire.o sql_lite.o sql_my.o sql_oci.o sql_odbc.o \ |
|
sql_post.o sql_srv.o sql_tds.o |
|
Index: src/objutl.c |
|
--- src/objutl.c.orig 2021-06-19 23:13:16.000000000 +0200 |
|
+++ src/objutl.c 2021-10-11 08:13:05.171965000 +0200 |
|
@@ -768,7 +768,9 @@ |
|
object->value.winValue->usage_count != 0) { |
|
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);
|
|
|