newLISP development release v.10.1.3

Notices and updates
Locked
Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

newLISP development release v.10.1.3

Post by Lutz »

• Minor feature enhancements and bug-fixes.

For details see: http://www.newlisp.org/downloads/develo ... 10.1.3.txt

Files: http://www.newlisp.org/downloads/development/

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

On linux slackware ->

(MAIN)-> (now 1)
Segmentation fault

On OS2

nl-filesys.c error: structure has no name member named 'tm_gmtoff'

On OS2 10.1.1 (now x) always returned -60 1
-- (define? (Cornflakes))

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

(now 1) also crashes on win!
(Tested on Vista)
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

(now offset) crashes everywhere. The 2nd to last parameter should return "minutes west of GMT". E.g. 300 in Florida EDT and 480 in California PDT. The the last parameter should return "minutes daylight savings time" in Windows, and a a number fro 0 t 6 on all other OSs.

I don't know if they go around the globe with positive values, or if they use negative values for east of GMT. Can somebody find out using Windows? May be this is where -60, 1 came from on OS2? In which time zone was this?

I uploaded a new nl-filesys.c for Norman in the development directory to try on OS2, it also fixes the crash for (now offset) and should return 0,0 for the last two parameters on OS2.

http://www.newlisp.org/downloads/develo ... -filesys.c

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Hi Lutz,

Thanks for the nl-filesys.c and the result is a little different but
still cant compile.

I did some investigation and gmtoff is BSD not ANSI.

Also the gmtoff isnt supported inside the libc of OS2 yet,
they left ot out of the code.

So personaly you may return 0 0 for OS2. As Im fully depending on
the LIBC progress by others.

The -60 1 I dont know where it comes from but my TZ returns TZ=CET-1
(im not in that timezone ;-) but it was set that way..)

PS: I have to comment the SPAWN part fully out of nl-filesys.c to
get OS2 eat the compilation, yes due to mmap function. Could you add
a #ifndef OS2 ... #endif at the spawn part ..
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Here is a new nl-filesys.c with out-defined: spawn, sync, abort, send, receive for OS2:

http://www.newlisp.org/downloads/develo ... -filesys.c

these functions where already disabled in primes.h anyway.

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

the 'now function seems to pass but the
spawn gives me an error during compilation.
(I had the #ifndef OS2 on line 1212 in newlisp-10.1.1)

Now something about a 'word' it cant find in newlisp-10.1.3
. odd... The only word I see in there is inside the spawn part and its
undefinded..

Ill crack that perhpas tomorrow..

Thanks...
-- (define? (Cornflakes))

Locked