Re: Indexing Scheme and C identifiers separately

2011-05-20 Thread Neil Jerram
David Pirotte writes: > Looking at 'Procedure Index', for example not really knowing what your > looking for > but presumably starting with letter 's', as a 'pure' scheme programmer, > reaching > scm-xxx, you'll have to hit more or less 33 times page down [depending on your > display and browse

Re: Guile with win32 cross compiling

2011-05-20 Thread Volker Grabsch
Jan Nieuwenhuizen schrieb: > https://github.com/janneke/gub/blob/guile-2.0/gub/specs/guile.py > https://github.com/janneke/gub/tree/guile-2.0/patches Thanks for pointing me to this project. This looks really promising and I would be glad for learning from that. 1) The pthread issue As fa

Re: [PATCH 1/5] [mingw]: Add implementation of canonicalize_file_name.

2011-05-20 Thread Andy Wingo
Hello Jan, On Fri 20 May 2011 15:56, Jan Nieuwenhuizen writes: > Andy Wingo writes: > >> I read the thread and it looked like this patch was close to being >> accepted > > Yes, it looks like that. Heh ;) > My first simplistic patch to just make guile canonicalize_file_name work > on mingw took

Re: [PATCH 4/5] [mingw]: Delete existing target file before attempting rename.

2011-05-20 Thread Jan Nieuwenhuizen
Andy Wingo writes: > This patch has the obvious race condition. Yes. > Why does the `rename' library routine not work on Win32? Good question. > The man page says > > CONFORMING TO >4.3BSD, C89, C99, POSIX.1-2001. > > so I am surprised about this behavior. Yes, that's interest

Re: [PATCH 5/5] [mingw]: Use $LOCALAPPDATA as a possible root for cachedir.

2011-05-20 Thread Jan Nieuwenhuizen
Andy Wingo writes: >> * libguile/load.c (scm_init_load_path) [MINGW32]: Use $LOCALAPPDATA >> to avoid having a NULL cachedir, while still allowing override by >> using $XDG_CACHE_HOME. > > What sets LOCALAPPDATA? If it is the right thing on Windows then I am > OK with applying this

Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.

2011-05-20 Thread Andy Wingo
Hi Jan, On Fri 20 May 2011 15:47, Jan Nieuwenhuizen writes: >> Is anyone interested in implementing a path library? > > What's the status/estimate on this -- of course I agree this would be > nicer, otoh, a patch to these three files is available that makes guile > run on mingw right now. Uncle

Re: [PATCH 3/5] [mingw]: Do not export opendir, readdir etc., as dirents differ.

2011-05-20 Thread Jan Nieuwenhuizen
Andy Wingo writes: > If mingw defines variants of these routines, why are we not using them > directly? Good question. That may well be a better approach. Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.nl

Re: [PATCH 1/5] [mingw]: Add implementation of canonicalize_file_name.

2011-05-20 Thread Jan Nieuwenhuizen
Andy Wingo writes: > I read the thread and it looked like this patch was close to being > accepted Yes, it looks like that. My first simplistic patch to just make guile canonicalize_file_name work on mingw took my an hour to write and test. I spent four full working days arguing with gnulib of

Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.

2011-05-20 Thread Jan Nieuwenhuizen
Andy Wingo writes: > I don't much like this approach. Besides mixing in a heuristic on all > machines that is win32-specific, it makes c:/foo.scm collide with > d:/foo.scm in the cache, and fails to also modify load.c which also does > autocompilation in other contexts. Yes, a newer version of t

Re: Guile with win32 cross compiling

2011-05-20 Thread Andy Wingo
On Fri 20 May 2011 14:48, Jan Nieuwenhuizen writes: > Volker Grabsch writes: > >> 1) My first attempt is to enable threads via: > > Just to remind you that we have an automated working mingw cross build > setup here > > https://github.com/janneke/gub Cool :-) Just to remind *you* that I hav

Re: Guile with win32 cross compiling

2011-05-20 Thread Jan Nieuwenhuizen
Volker Grabsch writes: > 1) My first attempt is to enable threads via: Just to remind you that we have an automated working mingw cross build setup here https://github.com/janneke/gub with guile-specific recipe and patches up at https://github.com/janneke/gub/blob/guile-2.0/gub/specs/g

Re: Guile with win32 cross compiling

2011-05-20 Thread Volker Grabsch
Hello Andy, thanks for the quick reply and for accepting and cleaning up my patches so far. Andy Wingo schrieb: > > CC net_db.lo > > net_db.c:460:1: error: 'AI_ALL' undeclared here (not in a function) > > net_db.c:460:1: error: expression in static assertion is not an integer > > net_db.c:4

Re: Guile with win32 cross compiling

2011-05-20 Thread Andy Wingo
Hi Volker, Thanks for the report. On Tue 17 May 2011 01:01, Volker Grabsch writes: > "fix-include-error-in-gen-scmconfig.patch" > The patch re-introduces a change which I already proposed > in my last patch: You can't use $(AM_CPPFLAGS) for the native > build, because it adds "-