Oi... windows. Looks like mmap is the biggest problem, but the code  
has fallbacks for when mmap fails, so "#ifdef HAVE_MMAP" in the right  
places is enough. Other than that I think it is just large files  
(lseek, off_t), is there a portable way to do that? (other than POSIX  
of course, which is what this code already uses). Worst case, some  
more preprocessor stuff.

Anyway... for someone with a few hours and a windows box and compiler  
this should be easy enough to make work on both windows and POSIX.  
Whether it is worth the trouble is another question entirely...


On Jan 1, 2009, at 5:28 PM, Istvan Albert wrote:

>
>
>
> On Jan 1, 3:02 pm, James Taylor <ja...@jamestaylor.org> wrote:
>
>> The python module should work fine on windows -- it doesn't require
>> the original code
>
> I agree that it should, alas it won't due to the fact that it was not
> written in portable C. The code that python-cdb includes is a
> simplified version of the original code that depends on many Unix
> libraries:
>
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <sys/mman.h>
> #include <unistd.h>
>
> Istvan
>
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to pygr-dev@googlegroups.com
To unsubscribe from this group, send email to 
pygr-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to