Bill Allombert on Wed, 14 Jan 2004 00:17:29 +0100


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

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


On Tue, Jan 13, 2004 at 01:37:14PM -0600, Gonzalo Tornaria wrote:
> This is a patch to add two new default's to gp:
> 
> 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 ?

> 2) default(sopath):
> 
> similar to default(path), but for dynamic libraries loaded with
> install(). The bulk of it is a function sd_sopath() [almost copied from
> sd_path()], and gp_dlopen(), a wrapper for dlopen(). Note that if
> default(sopath) is not set, gp_dlopen() defaults to the old dlopen().

> +#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.

Anyway thanks for your patch!
Bill.