Skip to content

Commit 8d8fac5

Browse files
committed
Merge branch 'release/v.10.7.1' into develop
2 parents e8ab6f9 + f8c894e commit 8d8fac5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+676
-410
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# and file LOCALIZATION for details
2525
#
2626

27-
VERSION = 10.7.0
28-
INT_VERSION = 10700
27+
VERSION = 10.7.1
28+
INT_VERSION = 10701
2929

3030
default: makefile_build
3131
make -f makefile_build

configure-alt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
PACKAGE=newlisp
4-
VERSION=10.7.0
4+
VERSION=10.7.1
55

66
rm -f config.h makefile_build makefile_install
77

doc/CHANGES

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7147,3 +7147,36 @@ Dec 6, 2009
71477147

71487148
10.7.0 version 10.6.5 released as stable release January 2016.
71497149

7150+
7151+
10.7.1
7152+
GMT - offset now includes a potential daylight savings bias, when
7153+
daylight savings time is active on Windows and Unix-like OSs.
7154+
7155+
Like on UNIX the last field in the 'now' function shows similar to UNIX
7156+
more info about usage of daylight savings time. In older Windows versions
7157+
the daylight savings bias was shown all year.
7158+
7159+
'set' with multiple args leaked memory under certain conditions.
7160+
7161+
New not yet documented (history) returnst list of call history
7162+
7163+
Thanks to Sergio Durigan Junior for contributing changes and makefiles
7164+
for kFreeBSD. Debian GNU/kFreeBSD is a general purpose operating system,
7165+
an official Debian GNU distribution using the kernel of FreeBSD instead
7166+
of the Linux kernel.
7167+
7168+
Fixed bug in 'search' and 'seek' with 'read-line' on some platforms.
7169+
Stream and raw handle file position went out of sink.
7170+
7171+
'mat' with a scalar second argument was broken on 64-bit when scalar
7172+
was not a float.
7173+
7174+
fixed a problem in -- ++ when passing a 'nil' not contents of a
7175+
symbol
7176+
7177+
symbol length extended from 255 to 1023 characters
7178+
(1022 when using the hash function). Creating symbols
7179+
using a hash functor will now throw an error message
7180+
when the symbol is too long. The 'contect' and 'sys'
7181+
functions already threw an error message.
7182+

doc/CodePatterns.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292

9393
<center>
9494
<h1 class="title">Code Patterns in newLISP<font size="-1">&#174;</font>
95-
</h1>Version 2015 July 11<sup>th</sup><br/>
96-
<a href="http://newlisp.org">newLISP</a> v.10.6.4
95+
</h1>Version 2015 July 11th<sup>rd</sup><br/>
96+
<a href="http://newlisp.org">newLISP</a> v.10.6.2
9797
</center>
9898

9999
<br/><br/><br/>
@@ -282,7 +282,7 @@ <h1 class="title">Code Patterns in newLISP<font size="-1">&#174;</font>
282282
<li>Simple versus extended FFI interface</li>
283283
<li>A shared library in C</li>
284284
<li>Compile on Unix</li>
285-
<li>Compile a DLL on MS Windows</li>
285+
<li>Compile a DLL on Win32</li>
286286
<li>Importing data structures</li>
287287
<li>Memory management</li>
288288
<li>Unevenly aligned structures</li>
@@ -2277,7 +2277,7 @@ <h3>Closed transaction</h3>
22772277
(net-send-udp "host.com" 1001 "Hello")
22782278
</pre>
22792279

2280-
<p>MS Windows and Unix's show different behavior when sending less or more bytes than specified on the receiving end.</p>
2280+
<p>Win32 and Unix's show different behavior when sending less or more bytes than specified on the receiving end.</p>
22812281

22822282
<h3>Multi-cast communications</h3>
22832283

@@ -2501,8 +2501,8 @@ <h2>17. Semaphores, shared memory</h2>
25012501
#
25022502
# usage of 'fork', 'wait-pid', 'semaphore' and 'share'
25032503

2504-
(when (= ostype "Windows")
2505-
(println "this will not run on Windows OS")
2504+
(when (= ostype "Win32")
2505+
(println "this will not run on Win32")
25062506
(exit))
25072507

25082508
(constant 'wait -1 'sig 1 'release 0)
@@ -3102,7 +3102,7 @@ <h3>Evaluating remotely</h3>
31023102
result: (7 11 15 19 23)
31033103
</pre>
31043104

3105-
<p>When running Unix and using an <tt>inetd</tt> or <tt>xinetd</tt> configured newLISP server, the servers and programs can be run on just one CPU, replacing all IP numbers with <tt>"localhost"</tt> or the same local IP number. The <tt>indetd</tt> or <tt>xinetd</tt> daemon will then start 5 independent newLISP processes. On MS Windows 5 state-full newLISP servers could be started on different port numbers to accomplish the same.</p>
3105+
<p>When running Unix and using an <tt>inetd</tt> or <tt>xinetd</tt> configured newLISP server, the servers and programs can be run on just one CPU, replacing all IP numbers with <tt>"localhost"</tt> or the same local IP number. The <tt>indetd</tt> or <tt>xinetd</tt> daemon will then start 5 independent newLISP processes. On Win32 5 state-full newLISP servers could be started on different port numbers to accomplish the same.</p>
31063106

31073107
<p>Instead of collecting all results at once on the return of <tt>net-eval</tt>, a callback function can be used to receive and process results as they become available:</p>
31083108

@@ -3133,7 +3133,7 @@ <h3>Evaluating remotely</h3>
31333133
("192.168.1.104" 4711 23)
31343134
</pre>
31353135

3136-
<p>For testing on just one CPU, replace addresses with <tt>"localhost"</tt>; the Unix <tt>inetd</tt> or <tt>xinetd</tt> daemon will start a separate process for each connection made and all listening on port <tt>4711</tt>. When using a state-full server on the same MS Windows CPU specify a different port number for each server.</p>
3136+
<p>For testing on just one CPU, replace addresses with <tt>"localhost"</tt>; the Unix <tt>inetd</tt> or <tt>xinetd</tt> daemon will start a separate process for each connection made and all listening on port <tt>4711</tt>. When using a state-full server on the same Win32 CPU specify a different port number for each server.</p>
31373137

31383138
<h3>Setting up the 'net-eval' parameter structure</h3>
31393139

@@ -3378,7 +3378,7 @@ <h3>Media types in HTTP modes</h3>
33783378
<a name="toc-23"></a>
33793379
<h2>23. Extending newLISP</h2>
33803380

3381-
<p>newLISP has an import function, which allows importing function from DLLs (Dynamic Link Libraries) on MS Windows or shared libraries on Linux/Unix (ending in .so, ending in .dylib on Mac OS X).</p>
3381+
<p>newLISP has an import function, which allows importing function from DLLs (Dynamic Link Libraries) on Win32 or shared libraries on Linux/Unix (ending in .so, ending in .dylib on Mac OS X).</p>
33823382

33833383
<h3>Simple versus extended FFI interface</h3>
33843384

@@ -3408,7 +3408,7 @@ <h3>Simple versus extended FFI interface</h3>
34083408

34093409
<h3>A shared library in C</h3>
34103410

3411-
<p>This chapter shows how to compile and use libraries on both, MS Windows and Linux/Unix
3411+
<p>This chapter shows how to compile and use libraries on both, Win32 and Linux/Unix
34123412
platforms. We will compile a DLL and a Linux/Unix shared library from the following 'C' program.</p>
34133413

34143414

@@ -3451,7 +3451,7 @@ <h3>Compile on Unix</h3>
34513451
gcc testlib.c -bundle -o testlib.dylib
34523452
</pre>
34533453

3454-
<p>The library <tt>testlib.so</tt> will be built with Linux/Unix default <tt>cdecl</tt> conventions. Importing the library is very similar on both Linux and MS Windows platforms, but on MS Windows the library can be found in the current directory. You may have to specify the full path or put the library in the library path of the os:</p>
3454+
<p>The library <tt>testlib.so</tt> will be built with Linux/Unix default <tt>cdecl</tt> conventions. Importing the library is very similar on both Linux and Win32 platforms, but on Win32 the library can be found in the current directory. You may have to specify the full path or put the library in the library path of the os:</p>
34553455

34563456
<pre>
34573457
&gt; (import "/home/newlisp/testlib.so" "foo1")
@@ -3476,9 +3476,9 @@ <h3>Compile on Unix</h3>
34763476

34773477
<p>Again, the number returned from <tt>foo2</tt> is the string address pointer and get-string can be used to access the string. When using get-string only character up to a zero byte are returned. When returning the addresses to binary buffers different techniques using unpack are used to access the information.</p>
34783478

3479-
<h3>Compile a DLL on MS Windows</h3>
3479+
<h3>Compile a DLL on Win32</h3>
34803480

3481-
<p>DLLs on MS Windows can be made using the MinGW, Borland or CYGWIN compilers. This example shows, how to do it using the MinGW compiler.</p>
3481+
<p>DLLs on Win32 can be made using the MinGW, Borland or CYGWIN compilers. This example shows, how to do it using the MinGW compiler.</p>
34823482

34833483
<p>Compile it:</p>
34843484

@@ -3501,7 +3501,7 @@ <h3>Compile a DLL on MS Windows</h3>
35013501
dllwrap testlib.o --def testlib.def -o testlib.dll -lws2_32
35023502
</pre>
35033503

3504-
<p>The library <tt>testlib.dll</tt> will be built with default MS Windows <tt>stdcall</tt> conventions. The following shows an interactive session, importing the library and using the functions:</p>
3504+
<p>The library <tt>testlib.dll</tt> will be built with default Win32 <tt>stdcall</tt> conventions. The following shows an interactive session, importing the library and using the functions:</p>
35053505

35063506
<pre>
35073507
&gt; (import "testlib.dll" "foo1")
@@ -3800,10 +3800,10 @@ <h3>Registering callbacks in external libraries</h3>
38003800
<a name="toc-24"></a>
38013801
<h2>24. newLISP as a shared library</h2>
38023802

3803-
<p>On all platforms, newLISP can be compiled as a shared library. On MS Windows, the library
3803+
<p>On all platforms, newLISP can be compiled as a shared library. On Win32, the library
38043804
is called <tt>newlisp.dll</tt>, on Mac OS X <tt>newlisp.dylib</tt> and on Linux and
38053805
BSDs, the library is called <tt>newlisp.so</tt>. Makefiles are included in the source
3806-
distribution for most platforms. Only on MS Windows, the installer comes with a precompiled
3806+
distribution for most platforms. Only on Win32, the installer comes with a precompiled
38073807
<tt>newlisp.dll</tt> and will install it in the <tt>Program Files/newlisp/</tt> directory.</p>
38083808

38093809
<h3>Evaluating code in the shared library</h3>
@@ -3896,14 +3896,14 @@ <h3>Registering callbacks</h3>
38963896
#!/usr/bin/newlisp
38973897

38983898
; path-name of the library depending on platform
3899-
(set 'LIBRARY (if (= ostype "Windows") "newlisp.dll" "newlisp.dylib"))
3899+
(set 'LIBRARY (if (= ostype "Win32") "newlisp.dll" "newlisp.dylib"))
39003900

39013901
; import functions from the newLISP shared library
39023902
(import LIBRARY "newlispEvalStr")
39033903
(import LIBRARY "newlispCallback")
39043904

39053905
; set calltype platform specific
3906-
(set 'CALLTYPE (if (= ostype "Windows") "stdcall" "cdecl"))
3906+
(set 'CALLTYPE (if (= ostype "Win32") "stdcall" "cdecl"))
39073907

39083908
; the callback function
39093909
(define (callme p1 p2 p3 result)
@@ -3933,7 +3933,7 @@ <h3>Registering callbacks</h3>
39333933
99999
39343934
</pre>
39353935

3936-
<p>Note that MS Windows and many Unix flavors will look for <tt>newlisp.dll</tt>
3936+
<p>Note that Win32 and many Unix flavors will look for <tt>newlisp.dll</tt>
39373937
in the system library path, but Mac OS X will look for <tt>newlisp.dylib</tt>
39383938
first in the current directory, if the full file path is not specified. The
39393939
program above can also be found as <tt>callback</tt> in the source distribution

doc/INSTALL

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ and
7070

7171
For a minumum install, only the executable file: newlisp (or newlisp.exe
7272
on Win32) needs to be moved to a directory in the executable path, i.e.
73-
/usr/bin/newlisp on Unix. No other files are required. This installation
73+
/usr/local/bin/newlisp on Unix. No other files are required. This installation
7474
is recommended for ISPs and other server installations. If modules are
7575
installed the environment NEWLISPDIR should be defined to point to
7676
the modules parent directory. If NEWLISPDIR is not defined, newLISP sets
77-
it to /usr/share/newlisp during startup.
77+
it to /usr/local/share/newlisp during startup.
7878

7979
To reduce an exisiting UNIX install to a minimum installation, remove all
80-
files in /usr/share/newlisp and /usr/share/doc/newlisp and the executable
81-
files /usr/bin/newlisp-edit and /usr/bin/newlispdoc.
80+
files in /usr/share/newlisp and /usr/local/share/doc/newlisp and the executable
81+
files /usr/local/bin/newlisp-edit and /usr/local/bin/newlispdoc.
8282

8383
On Mac OX X remove also the files under the Applications icon in the
8484
Applications folder. On Windows remove all file except newlisp.exe in
@@ -179,9 +179,7 @@ For questions and support for configure-alt, please contact:
179179
Ted Walther <ted@reactor-core.org>.
180180

181181
Note thet configure-alt uses a version-numbered directory for the
182-
installation. By default it also uses /usr/local instead of /usr
183-
as a prefix for the bin, man, share/newlisp and share/doc/newlisp
184-
directories.
182+
installation.
185183

186184
Avoid having installs from the standard 'configure' and alternate
187185
'configure-alt' script on the same machine!
@@ -277,10 +275,10 @@ or if installed with: make install_home
277275

278276
To manually uninstall on Win32 remove all files in c:\Program files\newlisp
279277

280-
On Mac OS X and other UNIX remove all files in /usr/share/newlisp and
281-
/usr/share/doc/newlisp and the executable files /usr/bin/newlisp,
282-
/usr/bin/newliso-edit and /usr/bin/newlispdoc. On Mac OX X also remove
283-
the newLISP icon in the Applications folder.
278+
On Mac OS X and other UNIX remove all files in /usr/local/share/newlisp and
279+
/usr/share/doc/newlisp and the executable files /usr/local/bin/newlisp,
280+
/usr/local/bin/newliso-edit and /usr/local/bin/newlispdoc. On Mac OX X also
281+
remove the newLISP icon in the Applications folder.
284282

285283

286284
(8) RUNNING newLISP IN A SHELL OR CONSOLE WINDOW
@@ -292,7 +290,7 @@ On all platforms simply execute:
292290

293291
On Win32 the execution path of newlisp.exe was added to the environment
294292
during installation. On all other platforms the newlisp binary is in
295-
/usr/bin/newlisp or when using the home install in $HOME/bin
293+
/usr/local/bin/newlisp or when using the home install in $HOME/bin
296294
where $HOME is the the home directory of the user taken from the environment
297295
variable HOME.
298296

@@ -318,9 +316,9 @@ Java for OS X 10.7 Lion from here: http://support.apple.com/kb/DL1421
318316

319317
By default the configure script uses the following install directories:
320318

321-
/usr/bin/
322-
/usr/share/newlisp
323-
/usr/share/doc/newlisp
319+
/usr/local/bin/
320+
/usr/local/share/newlisp
321+
/usr/local/share/doc/newlisp
324322

325323
As an alternative the configure-alt script can be used. Do a:
326324

doc/TRU64BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ C compiler for the Alpha CPU:
66

77
make
88

9-
Please contact Peter van Eerten (peter AT gtk-server DOT org) for any
9+
Please contact Peter van Eerten at peter@gtk-server.org for any
1010
remaining questions.

0 commit comments

Comments
 (0)