[Python-Dev] Please give this patch for building bsddb a try

Guido van Rossum guido@python.org
Tue, 11 Jun 2002 16:28:30 -0400


> > I know. Once I thought about sed/awk magic to generate two different
> > modules from one template.
> 
> What about symlinks, like:
> 
> bsd18module.c -> bsd30module.c
>                  bsd30module.c
> 
> and using a few #ifdefs in the C sources?

Instead of symlinks, how about one .h file containing most of the code
and two or three .c files that set a few #defines and then #include
the .h file?  Similar to what we do for Python/threads.c

--Guido van Rossum (home page: http://www.python.org/~guido/)