Gonzalo Tornaria on Wed, 14 Jan 2004 01:03:34 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Patch: default(sopath), default(outputsp[aces])

On Wed, Jan 14, 2004 at 12:15:37AM +0100, Bill Allombert wrote:
> > 1) default(outputsp):
> > 
> > flag that determines if output routines show spaces. Pretty trivial,
> > just adds a one-line function sd_outputsp() and adds it to
> > gp_default_list[].
> Is it possible to make outputsp a default(output) mode ?
> (i.e. \o4 for example) instead of a whole new default ?

Maybe; but they are somewhat orthogonal, in the sense that outputsp
determines if spaces are output or not when in raw mode. For instance,
if one sets outputsp=0, and output=2, one still gets prettyprint output
by default (with spaces and all), but print() and write() output raw
objects with no spaces, which is what I wanted. I don't care about the
default output, but spaces make data files innecesarily big.

Maybe there should be no default(outputsp), and raw output should be
without spaces, period.

> > +#ifdef HAS_DLOPEN
> > +  {"sopath",(void*)sd_sopath},
> > +#endif
> The list of available default should not depend of the compiler options.
> default should be the same in all version, even if some default are
> noopt, for GP script compatibility.

It's completely safe to remove all the #ifdef HAS_DLOPEN blocks. Indeed,
I added those #ifdef's only to submit the patch! :-)

GM/CS/S d? a-- C++(+++)  UL+++(++++)  P++>+++  L+++>++++ E---
W-(+) N+(++) w--- O M-(--) V-(--) PGP(--) b++(+++) G++ e>++++

... A mathematician is a machine for converting coffee into theorems.