head	1.14;
access;
symbols
	RELEASE_8_3_0:1.10
	RELEASE_9_0_0:1.8
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2;
locks; strict;
comment	@# @;


1.14
date	2013.01.09.19.00.16;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.12.20.12.56.41;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.11.28.14.21.16;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.10.18.13.01.49;	author gahr;	state Exp;
branches;
next	1.10;

1.10
date	2012.02.28.11.37.59;	author gahr;	state Exp;
branches;
next	1.9;

1.9
date	2012.02.03.10.28.24;	author gahr;	state Exp;
branches;
next	1.8;

1.8
date	2011.11.24.09.05.43;	author gahr;	state Exp;
branches;
next	1.7;

1.7
date	2011.11.23.09.27.46;	author gahr;	state Exp;
branches;
next	1.6;

1.6
date	2011.09.07.07.33.44;	author gahr;	state Exp;
branches;
next	1.5;

1.5
date	2011.02.04.13.30.52;	author gahr;	state Exp;
branches;
next	1.4;

1.4
date	2010.12.24.10.52.58;	author gahr;	state Exp;
branches;
next	1.3;

1.3
date	2009.07.08.15.03.54;	author gahr;	state Exp;
branches;
next	1.2;

1.2
date	2008.08.05.14.10.46;	author gahr;	state Exp;
branches;
next	1.1;

1.1
date	2008.07.16.22.42.13;	author gahr;	state Exp;
branches;
next	;


desc
@@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310158
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310158 | gahr | 2013-01-09 16:48:22 +0000 (Wed, 09 Jan 2013) | 28 lines
## SVN ##
## SVN ## - Update to 05_20130105
## SVN ##   Changes:
## SVN ##
## SVN ##   * The Seed7 interpreter was renamed. The new name of the Seed7 interpreter
## SVN ##     is s7.
## SVN ##   * Manual, FAQ, read_me files and several example programs were updated to
## SVN ##     use the new name of the Seed7 interpreter (s7).
## SVN ##   * The build process of a package can compile interpreter and compiler with
## SVN ##     (xx and yy must be replaced with a path):
## SVN ##     $ make S7_LIB_DIR=xx SEED7_LIBRARY=yy depend s7 s7c
## SVN ##   * The function drwOpen in drw_win.c was improved to hide the console
## SVN ##     window, when the program was not started from a console.
## SVN ##   * Descriptions of the operators 'sci' and 'exp' were added to the manual.
## SVN ##   * Documentation comments were added to clib_file.s7i.
## SVN ##   * In pixmap_file.s7i the functions for pixmapFontFiles were improved.
## SVN ##   * Interpreter and compiler were improved to allow using winmain as main
## SVN ##     function.
## SVN ##   * In cmd_win.c the function prepareCommandLine was improved and in the
## SVN ##     function cmdStartProcess the flag wShowWindow was changed to 1.
## SVN ##   * The file hi.c was renamed to s7.c.
## SVN ##   * In striutl.c the function escape_command was changed to quote commands
## SVN ##     with special characters under windows.
## SVN ##   * In striutl.c the function cp_to_command was improved to do a quoting
## SVN ##     under windows, even when there are no parameters.
## SVN ##   * Parameter names were added to null_file.s7i, osfiles.s7i, time.s7i,
## SVN ##     pixmapfont.s7i, progs.s7i, reference.s7i, seed7_05.s7i, shell.s7i,
## SVN ##     stritext.s7i, text.s7i, rever.sd7 and snake.sd7.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@--- makefile.orig	2012-11-27 13:49:47.000000000 +0100
+++ makefile	2012-11-27 13:50:36.000000000 +0100
@@@@ -12,7 +12,7 @@@@
 # CFLAGS = -O2 -fomit-frame-pointer -Wall -Wextra -Wswitch-default -Wcast-qual -Waggregate-return -Wwrite-strings -Winline -Wconversion -Wshadow -Wpointer-arith -Wmissing-noreturn -Wno-multichar
 # 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
+CFLAGS += -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include
 # CFLAGS = -O2 -g -ffunction-sections -fdata-sections -Wall -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -g -std=c99 -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -g -Wall -Winline -Wconversion -Wshadow -Wpointer-arith
@@@@ -21,6 +21,6 @@@@
 # CFLAGS = -O2 -fomit-frame-pointer -funroll-loops -Wall
 # CFLAGS = -O2 -funroll-loops -Wall -pg
-LDFLAGS = -Wl,--gc-sections
+LDFLAGS = -Wl,--gc-sections -L%%LOCALBASE%%/lib
 # LDFLAGS = -pg
 # LDFLAGS = -pg -lc_p
 SYSTEM_LIBS = -lm
@@@@ -39,7 +40,7 @@@@
 COMPILER_LIB = s7_comp.a
 ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(DRAW_LIB) ../bin/$(CONSOLE_LIB) ../bin/$(SEED7_LIB)
 # CC = g++
-CC = gcc
+CC ?= gcc
 GET_CC_VERSION_INFO = $(CC) --version >
 
 BIGINT_LIB_DEFINE = USE_BIG_RTL_LIBRARY
@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309313
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309313 | gahr | 2012-12-20 12:47:43 +0000 (Thu, 20 Dec 2012) | 2 lines
## SVN ##
## SVN ## - Respect user's CFLAGS
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d12 1
a12 1
@@@@ -21,6 +21,7 @@@@
d15 1
a15 1
 LDFLAGS = -Wl,--gc-sections
a28 8
@@@@ -113,6 +114,7 @@@@
 COMP_DATA_LIB_SRC = typ_data.c rfl_data.c ref_data.c listutl.c flistutl.c typeutl.c datautl.c
 COMPILER_LIB_SRC = $(PSRC1) $(LSRC1) $(LSRC2) $(LSRC3) $(ESRC1) $(ASRC1) $(ASRC2) $(ASRC3) $(GSRC1) $(GSRC2)
 
+.PHONY: hi
 hi: ../bin/hi ../prg/hi
 	../bin/hi level
 
@


1.12
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/307906
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307906 | gahr | 2012-11-28 14:18:12 +0000 (Wed, 28 Nov 2012) | 58 lines
## SVN ##
## SVN ## - Update to 05_20121125
## SVN ##
## SVN ##   20121125:
## SVN ##   - The makefiles and the file setpaths.c were improved to accept the
## SVN ##     macros S7_LIB_DIR (Directory with static Seed7 object libraries)
## SVN ##     and SEED7_LIBRARY (Directory with the Seed7 include libraries).
## SVN ##     Now the build process of a package can call make e.g. with:
## SVN ##     make S7_LIB_DIR=/abc/seed7/bin SEED7_LIBRARY=/abc/seed7/lib depend
## SVN ##     This way the two paths are defined in version.h. This defines them
## SVN ##     as default paths in the interpreter executable and in the compiler.
## SVN ##   - An explanation, what a binary Seed7 package should install, was
## SVN ##     added to the FAQ. This can be used as guideline for Seed7 packages.
## SVN ##   - The description of the times-operator in the manual and in
## SVN ##     array.s7i was improved.
## SVN ##   - A description of the function name(PROGRAM), file(PROGRAM) and
## SVN ##     'environment' was added to the manual.
## SVN ##   - The new library environment.s7i was added. Most of the contents of
## SVN ##     this library was extracted from "seed7_05.sd7". The new library is
## SVN ##     included from "seed7_05.s7i", so no change in existing programs is
## SVN ##     necessary.
## SVN ##   - A documentation comment for getSearchPath was added to shell.s7i.
## SVN ##   - The functions ltrim and rtrim were added to the library string.s7i.
## SVN ##   - Testcases for ltrim and rtrim were added to chkstr.sd7.
## SVN ##   - The function getProgramName in arr_rtl.c was improved to do the
## SVN ##     comparison with EXECUTABLE_FILE_EXTENSION correctly.
## SVN ##   - The program tar7.sd7 was improved to accept also DOS paths for the
## SVN ##     file specified with -f.
## SVN ##   - The function homeDir was improved to work with DJGPP (either $HOME
## SVN ##     or C:\ is used).
## SVN ##   - The function prc_cpy in prclib.c was improved.
## SVN ##   - The files executl.c, hshlib.c, ref_data.c, reflib.c and sctlib.c
## SVN ##     were improved to copy the descriptor union with memcpy and to copy
## SVN ##     the posinfo flag with SET_ANY_FLAG, when necessary.
## SVN ##
## SVN ##   20121104:
## SVN ##   - The new function homeDir was added to the library osfiles.s7i.
## SVN ##     Interpreter and compiler were improved to support homeDir.
## SVN ##   - The libraries makedata.s7i and make.s7i were improved to support
## SVN ##     replacement macros.
## SVN ##   - A check for division by zero with /:= was added to chkflt.sd7.
## SVN ##   - The compiler (comp.sd7) was improved to use definitions of
## SVN ##     NOT_A_NUMBER, POSITIVE_INFINITY and NEGATIVE_INFINITY.
## SVN ##   - The program chkccomp.c was improved. Now it manages the macros
## SVN ##     likely, unlikely, UNISTD_H_PRESENT, POPEN_MISSING, os_utime_orig,
## SVN ##     os_utime, USE_ALTERNATE_UTIME, INCLUDE_SYS_UTIME, USE_LOCALTIME_R,
## SVN ##     USE_LOCALTIME_S, FLOAT_ZERO_DIV_ERROR, CHECK_FLOAT_DIV_BY_ZERO,
## SVN ##     ISNAN_WITH_UNDERLINE and HOME_DIR_ENV_VAR. Additionally chkccomp.c
## SVN ##     does not depend on the definitions of long_long_EXISTS,
## SVN ##     long_long_SUFFIX_LL, __int64_EXISTS, __int64_SUFFIX_LL and
## SVN ##     USE_BUILTIN_EXPECT in chkccomp.h.
## SVN ##   - The functions flt_div and flt_div_assign in fltlib.c were improved
## SVN ##     to work correctly when CHECK_FLOAT_DIV_BY_ZERO is defined.
## SVN ##   - Several #defines were ommitted from the makefiles.
## SVN ##   - Explanations of several version.h #defines were added to
## SVN ##     read_me.txt
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d8 1
a8 1
+CFLAGS = -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include
@


1.11
log
@SVN rev 306068 on 2012-10-18 13:01:49Z by gahr

- Update to 05_20121007

  Changes:

  20121007:
  - An error message, that could occur when the Seed7 interpreter is
    compiled, is explained in the FAQ and to 'src/read_me.txt'.
  - A description of the for-step-statement was added to the manual.
  - The library make.s7i was improved. Now makefile dependencies can
    contain colons (:) and equal signs (=). The parameters of the echo
    command are parsed better now. Calls of the function callOwnProgram
    are also avoided now. This way the library works correctly, when it
    is used by programs other than make7.sd7.
  - The library tar.s7i was improved to set the file mode, when an
    archive is extracted.
  - Testcases for a variant of the @@:= operator, which copies a string
    to another, were added to the program chkstr.sd7.
  - Interpreter and compiler were improved to support the situation,
    when source and destination of the @@:= operator (action STR_POSCPY)
    are identical.
  - The compiler was improved to support the action ITF_DESTR.
  - The compiler was improved, to call C compiler and linker with
    specific options, such that unneeded functions are ommited (when
    the linker and executable file format support this feature).
  - The compiler was improved to remove debug symbols, unless called
    with -g (some makefiles now define LINKER_OPT_NO_DEBUG_INFO).
  - The function name(PROGRAM) was improved, to return the program name
    without following symbolic links.
  - The function path(PROGRAM) was improved, to follow symbolic links
    (see function followLink in cmd_rtl.c). Consequently dir(PROGRAM)
    also follows symbolic links.
  - The function CommandLineToArgvW in cmd_win.c was improved.
  - The files itf_rtl.c and itf_rtl.h, which contain interface
    functions, were added.
  - The makefile mk_mingc.mak was added to support compilation of the
    self extracting version of Seed7.

  20120923:
  - Experimental support for automatic memory management with reference
    counting was added to the interpreter.
  - The libraries external_file.s7i, field.s7i, stritext.s7i, gzip.s7i,
    listener.s7i, pixmap_file.s7i, shell.s7i, socket.s7i, strifile.s7i,
    dir.s7i, utf16.s7i, utf8.s7i and xmldom.s7i were improved to use
    the function toInterface.
  - The function name(PROGRAM) was improved, to return the name of the
    program without extension and without path.
  - The interpreter was improved to support the action ITF_DESTR.

Feature safe:	yes
@
text
@d1 3
a3 3
--- makefile.orig	2012-10-18 14:42:29.000000000 +0200
+++ makefile	2012-10-18 14:43:37.000000000 +0200
@@@@ -12,14 +12,14 @@@@
d8 2
a9 1
+CFLAGS += -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include
d12 1
a12 2
 # CFLAGS = -O2 -g -Wall
 # CFLAGS = -O2 -g -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
d15 2
a16 2
-LDFLAGS = -Wl,--gc-sections
+LDFLAGS += -L%%LOCALBASE%%/lib
d20 1
a20 1
@@@@ -38,7 +38,7 @@@@
d29 1
a29 1
@@@@ -112,6 +112,7 @@@@
@


1.10
log
@- Update to 05_20120219
- Fixes to the console library have been pushed upstreams
@
text
@d1 2
a2 2
--- makefile.orig	2012-01-01 16:17:58.000000000 +0100
+++ makefile	2012-02-03 11:22:53.000000000 +0100
d7 2
a8 2
-CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
+CFLAGS += -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include
d15 2
a16 2
-LDFLAGS =
+LDFLAGS = -L%%LOCALBASE%%/lib
@


1.9
log
@- Update to 05_20120115
- Install console library as well
@
text
@a28 11
@@@@ -47,8 +47,8 @@@@
 # BIGINT_LIB = big_gmp
 
 TERMINFO_OR_TERMCAP = USE_TERMINFO
-CONSOLE_LIB_OBJ = kbd_rtl.o con_inf.o kbd_inf.o trm_inf.o
-CONSOLE_LIB_SRC = kbd_rtl.c con_inf.c kbd_inf.c trm_inf.c
+CONSOLE_LIB_OBJ = kbd_rtl.o con_inf.o kbd_poll.o trm_inf.o
+CONSOLE_LIB_SRC = kbd_rtl.c con_inf.c kbd_poll.c trm_inf.c
 # TERMINFO_OR_TERMCAP = USE_TERMCAP
 # CONSOLE_LIB_OBJ = kbd_rtl.o con_inf.o kbd_inf.o trm_cap.o
 # CONSOLE_LIB_SRC = kbd_rtl.c con_inf.c kbd_inf.c trm_cap.c
@


1.8
log
@- second attempt to respect CC and CFLAGS

Feature safe:	yes
@
text
@d1 2
a2 2
--- makefile.orig	2011-11-01 12:55:40.000000000 +0100
+++ makefile	2011-11-23 10:05:28.000000000 +0100
d29 11
@


1.7
log
@- Update to 05_20111111
- Respect CC and CFLAGS [1]

PR:		162542 [1]
Submitted by:	Jan Beich <jbeich@@tormail.net>
Feature safe:	yes
@
text
@d8 1
a8 1
+CFLAGS += -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include
@


1.6
log
@- Update to 05_20110904
@
text
@d1 2
a2 2
--- makefile.orig	2011-08-03 10:23:21.000000000 +0200
+++ makefile	2011-08-03 10:23:56.000000000 +0200
d8 1
a8 1
+CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I%%LOCALBASE%%/include
d19 11
a29 2
 SYSTEM_LIBS = -lncurses -lm
@@@@ -109,6 +109,7 @@@@
@


1.5
log
@- Update to 05_20110203
  Many changes since the last update, see doc/chlog.txt for the details.

Feature safe:	yes
@
text
@d1 3
a3 3
--- makefile.orig	2011-02-04 10:52:21.000000000 +0000
+++ makefile	2011-02-04 10:53:10.000000000 +0000
@@@@ -12,12 +12,12 @@@@
d9 2
d19 4
a22 4
 # LIBS = /usr/Xlib/libX11.so -lncurses -lm
@@@@ -106,6 +106,7 @@@@
 	$(MAKE) ../prg/hi
 	../bin/hi level
d25 2
a26 1
 hi: ../bin/hi
a27 1
 ../prg/hi:
@


1.4
log
@- Update to 05_20101219
@
text
@d1 3
a3 5
--- makefile.orig	2010-12-13 23:22:07.000000000 +0000
+++ makefile	2010-12-24 10:11:19.000000000 +0000
@@@@ -9,12 +9,12 @@@@
 # 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
d5 2
d18 1
a18 1
@@@@ -102,6 +102,7 @@@@
@


1.3
log
@- Update to 05_20090705
@
text
@d1 2
a2 2
--- makefile.orig	2009-07-04 13:27:03.000000000 +0200
+++ makefile	2009-07-08 16:58:47.000000000 +0200
d5 1
a5 1
 # CFLAGS = -O2 -fomit-frame-pointer -Wall -Wextra -Wswitch-default -Wswitch-enum -Wcast-qual -Waggregate-return -Wwrite-strings -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -Wmissing-noreturn -Wno-multichar
d13 4
a16 4
-LFLAGS =
+LFLAGS = -L%%LOCALBASE%%/lib
 # LFLAGS = -pg
 # LFLAGS = -pg -lc_p
d18 8
@


1.2
log
@- Update to 05_20080803
- Partially remove makefile's patch (committed upstream)
@
text
@d1 3
a3 5
--- makefile.orig	2008-07-07 22:39:27.000000000 +0200
+++ makefile	2008-07-17 00:20:55.000000000 +0200
@@@@ -7,11 +7,11 @@@@
 # CFLAGS =
 # CFLAGS = -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
d5 2
d9 1
@


1.1
log
@- New port: seed7

  Seed7 is an extensible general purpose high-level programming language.
@
text
@a16 29
@@@@ -80,7 +80,6 @@@@
 
 hi: $(OBJ) $(COMPILER_LIB) $(COMP_DATA_LIB) $(SEED7_LIB)
 	$(CC) $(LFLAGS) $(OBJ) $(COMPILER_LIB) $(COMP_DATA_LIB) $(SEED7_LIB) $(LIBS) -o hi
-	$(MAKE) ../prg/hi
 	./hi level
 #	cp hi /usr/local/bin/hi
 
@@@@ -177,16 +176,16 @@@@
 	$(CC) $(CFLAGS) -c hi.c
 
 depend: a_depend b_depend c_depend version.h
-	$(CC) -M $(SRC) > depend
+	$(CC) -M ${CFLAGS} $(SRC) > depend
 
 a_depend: version.h
-	$(CC) -M $(SEED7_LIB_SRC) > a_depend
+	$(CC) -M ${CFLAGS} $(SEED7_LIB_SRC) > a_depend
 
 b_depend: version.h
-	$(CC) -M $(COMP_DATA_LIB_SRC) > b_depend
+	$(CC) -M ${CFLAGS} $(COMP_DATA_LIB_SRC) > b_depend
 
 c_depend: version.h
-	$(CC) -M $(COMPILER_LIB_SRC) > c_depend
+	$(CC) -M ${CFLAGS} $(COMPILER_LIB_SRC) > c_depend
 
 level.h:
 	hi level
@

