newLISP development release v.10.1.3

Started by Lutz, August 09, 2009, 08:17:07 AM

Previous topic - Next topic

Lutz

• Minor feature enhancements and bug-fixes.



For details see: http://www.newlisp.org/downloads/development/CHANGES-10.1.3.txt">http://www.newlisp.org/downloads/develo ... 10.1.3.txt">http://www.newlisp.org/downloads/development/CHANGES-10.1.3.txt



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

newdep

#1
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

#2
(now 1) also crashes on win!

(Tested on Vista)
Hans-Peter

Lutz

#3
(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/development/nl-filesys.c">http://www.newlisp.org/downloads/develo ... -filesys.c">http://www.newlisp.org/downloads/development/nl-filesys.c

newdep

#4
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

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



http://www.newlisp.org/downloads/development/nl-filesys.c">http://www.newlisp.org/downloads/develo ... -filesys.c">http://www.newlisp.org/downloads/development/nl-filesys.c



these functions where already disabled in primes.h anyway.

newdep

#6
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))