Re: specifying include directories

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> 
> Matt Lewis wrote:
> > 
> > ChrisBurch2 wrote:
> > > 
> > > Hi
> > > 
> > > Does this mean that the include location information will be available to
> > > your program? Much like getenv, perhaps a getconf function, without
> > > actually
> > > having to use the search list to hunt for the conf file?
> > 
> > That's not currently in there, but I suppose it could be.  You can get the 
> > information in the option switches that were passed on the command line.
> > 
> > Matt
> 
> I do not think that's entirely true. The parameters that are used by the
> interpreter
> are consumed by it, from what I can tell in code and example. For instance:
> 
> myprog.ex
> ---------
> }}}
<eucode>
> include misc.e
> pretty_print(1, command_line(), {2})
> </eucode>
{{{

> 
> $ exu -I /opt/eu40/include -D debug -D shareware hello.e John Doe
> {
>   "/opt/euphoria-4.0/source/exu",
>   "/home/jeremy/hello.e",
>   "John",
>   "Doe"
> }
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

That's the behavior that I would expect.

Maybe euinc.conf and command-line switches should set EUINC and EUDIR during the
duration of the program (which the program can then read) and then set it back
when finished?

That seems like the simplest solution.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu