Skip to content

Commit 358c83b

Browse files
committed
v.10.6.4 - adds new functionality to existing functions and fixes bugs.
Now can retrieve 0-length document with 'get-url'. A fix for 'share' on Linux (bug introduced in development v.10.6.3) In 'get/put/post-url' the new string option "raw" inhibits 'Location' redirection. "raw" can also be combined with the "list" and "debug" options. When in "list" mode now the server status code is added as a third list member. Fixed a error date-value introduced in 10.6.3. Fixed potential error in my_vasprintf() only used on Windows, OS2, TRU64, Solaris and AIX. Avoid calling varargs function sendf() with empty argptr nl-web.c. Avoid allocating too much stack space in getPutPostDeleteUrl(). Response string from 'get/put/post-url' was not zero-terminated for HTTP error returns. When a HTTP server returns an error code and also returns content, the string "ERR: " with the HTTP server response line gets prepended when not in list mode. This is necessary for compatibility with previous versions, as delete/get/put/post -url always return a string and errors are marked by a beginning "ERR: " of the string. In list mode the second string in the list contains only the returned content. The third list member is the server HTTP response line. The fourth list member contains the status-code, which is 0 for an invalid HTTP response. date-value did not evaluate month, day parameters. Last element list optimization now always retained when using pop on the list. PCRE options PCRE_NOTBOL, PCRE_NOTEOL and PCRE_NOTEMPTY did not work. Expansion 'macro' definitions can be redefined with 'contanst' not 'define' as described in the manual. Installation prefix changed from /usr to /usr/local for OSX and other Unix. The 'save' function now saves symbols with strings longer 2047 chars appending multiple partial lines of "," delimited strings of up to 72 characters. This allows to \ escape non-displayable characters, which [text],[/text] delimited text not allows. New version 1.7 canvas.lsp fixes ellipse, petal, pie, polygon, shape: now first fill() then stroke() as in postscript.lsp. Loading an empty file should return nil. On Mac OS X guiserver expects newlisp in /usr/local/bin/newlisp on all other OS it is only is expected in the executable path, as in previous versions.
1 parent 4d06fbc commit 358c83b

Some content is hidden

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

73 files changed

+4346
-4065
lines changed

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# for 'make install' you have to login as 'root' else do 'make install_home'
1111
# note that 'make install_home' will not install guiserver files which
12-
# must be in /usr/share/newlisp in MacOX X and UNIX machines
12+
# must be in /usr/local/share/newlisp in MacOX X and UNIX machines
1313
#
1414
# to make the distribution archive: 'make dist'
1515
#
@@ -24,8 +24,8 @@
2424
# and file LOCALIZATION for details
2525
#
2626

27-
VERSION = 10.6.3
28-
INT_VERSION = 10603
27+
VERSION = 10.6.4
28+
INT_VERSION = 10604
2929

3030
default: makefile_build
3131
make -f makefile_build
@@ -39,8 +39,8 @@ help:
3939
@echo "\nDo one of the following:"
4040
@echo " make # auto-select one of the predefined makefiles and build newLISP"
4141
@echo " make help # display this help"
42-
@echo " make install # install on LINUX/UNIX in /usr/bin and /usr/share (need to be root)"
43-
@echo " make uninstall # uninstall on LINUX/UNIX from /usr/bin and /usr/share (need to be root)"
42+
@echo " make install # install on LINUX/UNIX in /usr/local/bin and /usr/local/share (need to be root)"
43+
@echo " make uninstall # uninstall on LINUX/UNIX from /usr/local/bin and /usr/local/share (need to be root)"
4444
@echo " make install_home # install on LINUX/UNIX in users home directory "
4545
@echo " make uninstall_home # uninstall on LINUX/UNIX from users home directory "
4646
@echo
@@ -175,6 +175,10 @@ clean:
175175
-rm -f makefile_build makefile_install config.h test-*
176176

177177
# run test scripts
178+
sharebug:
179+
./newlisp qa-dot
180+
181+
178182
check:
179183
./newlisp qa-dot
180184
./newlisp qa-specific-tests/qa-dictionary

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ MINIMUM INSTALL
100100
Note that for a minumum install only the executable newlisp or newlisp.exe
101101
in Win32 is necessary.
102102

103-
On Mac OS X or other UNIX copy newlisp to /usr/bin or to ~/bin and give
104-
it executable permissions.
103+
On Mac OS X or other UNIX copy newlisp to /usr/local/bin or /usr/bin or ~/bin
104+
and give it executable permissions.
105105

106106

107107
LICENSE

configure-alt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
PACKAGE=newlisp
4-
VERSION=10.6.3
4+
VERSION=10.6.4
55

66
rm -f config.h makefile_build makefile_install
77

@@ -70,8 +70,7 @@ case `uname` in
7070
SunOS) true ${os_type:=SUNOS} ;;
7171
AIX) true ${os_type:=AIX} ;;
7272
OSF1) true ${os_type:=TRU64} ;;
73-
MINGW32_*) true ${os_type:=WIN_32} ;;
74-
MINGW64_*) true ${os_type:=WIN_64} ;;
73+
MINGW*) true ${os_type:=WINDOWS} ;;
7574
OS/2) true ${os_type:=OS2} ;;
7675
*)
7776
echo Could not discover your OS platform use one of the following commands:
@@ -100,7 +99,7 @@ elif [ ${os_type} = TRU64 ] ; then
10099
DEFAULT_CC="${TRU64_CC}"
101100
DEFAULT_CFLAGS="${TRU64_CFLAGS}"
102101
DEFAULT_LDFLAGS="${TRU64_LDFLAGS}"
103-
elif [ ${os_type} = WIN_32 ] ; then
102+
elif [ ${os_type} = WINDOWS ] ; then
104103
DEFAULT_CC="${WIN32_CC}"
105104
DEFAULT_CFLAGS="${WIN32_CFLAGS}"
106105
DEFAULT_LDFLAGS="${WIN32_LDFLAGS}"

doc/CHANGES

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6972,7 +6972,7 @@ Dec 6, 2009
69726972

69736973
Many small additions and changes to newlisp_manual.html.
69746974

6975-
10.6.3
6975+
10.6.3 July 8th, 2015 Development release
69766976
Starting with this version only use the TDM-GCC-64 toolchain, it
69776977
uses mingw32 and can compile for both, 32-bit and 64-bit.
69786978

@@ -7061,3 +7061,59 @@ Dec 6, 2009
70617061

70627062
Fixed shape sign error in canvas.lsp for bezier curves in shapes.
70637063

7064+
10.6.4
7065+
Now can retrieve 0-length document with 'get-url'.
7066+
7067+
A fix for 'share' on Linux (bug introduced in development v.10.6.3)
7068+
7069+
In 'get/put/post-url' the new string option "raw" inhibits 'Location'
7070+
redirection. "raw" can also be combined with the "list" and "debug" options.
7071+
When in "list" mode now the server status code is added as a third list
7072+
member.
7073+
7074+
Fixed a error date-value introduced in 10.6.3.
7075+
7076+
Fixed potential error in my_vasprintf() only used on Windows, OS2, TRU64,
7077+
Solaris and AIX.
7078+
7079+
Avoid calling varargs function sendf() with empty argptr nl-web.c.
7080+
7081+
Avoid allocating too much stack space in getPutPostDeleteUrl().
7082+
7083+
Response string from 'get/put/post-url' was not zero-terminated for
7084+
HTTP error returns.
7085+
7086+
When a HTTP server returns an error code and also returns content,
7087+
the string "ERR: " with the HTTP server response line gets prepended when
7088+
not in list mode. This is necessary for compatibility with previous
7089+
versions, as delete/get/put/post -url always return a string and errors
7090+
are marked by a beginning "ERR: " of the string.
7091+
In list mode the second string in the list contains only the returned content.
7092+
The third list member is the server HTTP response line. The fourth list
7093+
member contains the status-code, which is 0 for an invalid HTTP response.
7094+
7095+
date-value did not evaluate month, day parameters.
7096+
7097+
Last element list optimization now always retained when using pop on the list.
7098+
7099+
PCRE options PCRE_NOTBOL, PCRE_NOTEOL and PCRE_NOTEMPTY did not work.
7100+
7101+
Expansion 'macro' definitions can be redefined with 'contanst' not 'define'
7102+
as described in the manual.
7103+
7104+
Installation prefix changed from /usr to /usr/local for OSX and other Unix.
7105+
7106+
The 'save' function now saves symbols with strings longer 2047 chars
7107+
appending multiple partial lines of "," delimited strings of up to 72
7108+
characters. This allows to \ escape non-displayable characters, which
7109+
[text],[/text] delimited text not allows.
7110+
7111+
New version 1.7 canvas.lsp fixes ellipse, petal, pie, polygon, shape:
7112+
now first fill() then stroke() as in postscript.lsp.
7113+
7114+
Loading an empty file should return nil.
7115+
7116+
On Mac OS X guiserver expects newlisp in /usr/local/bin/newlisp on all other
7117+
OS it is only is expected in the executable path, as in previous versions.
7118+
7119+

doc/CodePatterns.html

Lines changed: 3 additions & 4 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 April 6<sup>th</sup><br/>
96-
<a href="http://newlisp.org">newLISP</a> v.10.6.3
95+
</h1>Version 2015 July 11<sup>th</sup><br/>
96+
<a href="http://newlisp.org">newLISP</a> v.10.6.4
9797
</center>
9898

9999
<br/><br/><br/>
@@ -3804,8 +3804,7 @@ <h2>24. newLISP as a shared library</h2>
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
38063806
distribution for most platforms. Only on MS Windows, the installer comes with a precompiled
3807-
<tt>newlisp.dll</tt> and will install it in the <tt>WINDOWS\system32\</tt> directory
3808-
(since v.10.3.3) and in the <tt>Program Files/newlisp/</tt> directory.</p>
3807+
<tt>newlisp.dll</tt> and will install it in the <tt>Program Files/newlisp/</tt> directory.</p>
38093808

38103809
<h3>Evaluating code in the shared library</h3>
38113810

doc/newLISP-10.6.4-Release.html

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4+
<html>
5+
<head>
6+
<title>newLISP v.10.6.4 Release Notes </title>
7+
8+
<style type="text/css" media="screen">
9+
10+
h1 {
11+
font-family:Optima, Georgia, Times New Roman, Times, serif;
12+
font-size: 200%;
13+
font-weight: 500;
14+
color: #404040;
15+
}
16+
17+
h2, h3 {
18+
font-family: Lucida Sans, Helvetica, sans-serif;
19+
color: #404040;
20+
line-height: 120%;
21+
}
22+
23+
body, p {
24+
font-family: Lucida Sans, Helvetica, sans-serif;
25+
color: #404040;
26+
line-height: 120%;
27+
font-size: 110%;
28+
max-width: 900px;
29+
}
30+
31+
tt {
32+
font-family: Courier;
33+
color: #606060;
34+
line-height: 120%;
35+
}
36+
37+
em {
38+
font-family: Courier;
39+
color: #606060;
40+
}
41+
42+
li {
43+
margin-bottom: 15px;
44+
}
45+
46+
47+
</style>
48+
49+
</head>
50+
51+
<body>
52+
<h1>newLISP<font size=-1>&#174;</font> v.10.6.4 Development Release
53+
<font color="red" size="-1">2015-09-24</font></h1>
54+
55+
<p>This development release adds new functionality to existing
56+
functions and fixes bugs.</p>
57+
58+
59+
<h3>Additions and changes</h3>
60+
61+
<ul>
62+
<li>The installation location iprefix for OS X, Linux and other Unix like
63+
platforms has been changed from <tt>/usr/</tt> to <tt>/ust/local/</tt>.</li>
64+
65+
<li>Only on Mac OS X when starting guiserver.jar first, when it is not
66+
loaded by another newLISP program, guiserver.jar expects the newlisp
67+
executable in <tt>/usr/local/bin/newlisp</tt>.</li>
68+
69+
<li>In <tt>get/put/post-url</tt> the new string option <tt>"raw"</tt> inhibits
70+
'Location' redirection. <tt>"raw"</tt> can also be combined with the "list"
71+
and "debug" options.</li>
72+
73+
<li>In <tt>get/put/post-url</tt> list mode the second string in the list contains
74+
only the returned content. The third list member is the server HTTP response line.
75+
The fourth list member contains the status-code, which is 0 for an invalid HTTP
76+
response.</li>
77+
78+
<li>The <tt>save</tt> function now saves symbols with strings longer than 2027
79+
characters appending multiple partial lines delimited by quotes <tt>"..."</tt>.
80+
This way lines can contain escape characters which are not allowed when using
81+
<tt>[text]...[/text]</tt> tags as delimiters..</li>
82+
83+
</ul>
84+
85+
<h3>Bug fixes</h3>
86+
87+
<ul>
88+
<li>Response string from 'get/put/post-url' was not zero-terminated for
89+
HTTP error returns.</li>
90+
91+
<li><tt>date-value</tt> did not evaluate month, day parameters.</li>
92+
93+
<li>PCRE options PCRE_NOTBOL, PCRE_NOTEOL and PCRE_NOTEMPTY did not work.</li>
94+
95+
<li>Loading an empty file now returns <tt>nil</tt> instead of throwing an
96+
error.</li>
97+
98+
</ul>
99+
100+
101+
<h3>Compatibility with previous versions</h3>
102+
<p>This version is compatible with the previous development version.</p>
103+
<center>&part;</center>
104+
105+
</body>
106+
</html>
107+

0 commit comments

Comments
 (0)