POV-Ray : Newsgroups : povray.general : Another includes idea Server Time
1 Nov 2024 02:17:54 EDT (-0400)
  Another includes idea (Message 1 to 3 of 3)  
From: Disnel
Subject: Another includes idea
Date: 6 Oct 2000 05:29:06
Message: <39DD9C50.3E476BBD@hlavacek-partner.cz>
One more includes idea (from C like includes):

#include "some_include.inc" searches for include in
actual directory (directory from which was parent file
readed, NOT directory where main scene file is located)

and #include <some_include.inc> searches in paths
given with +l switch in commandline.

Disnel


Post a reply to this message

From: Warp
Subject: Re: Another includes idea
Date: 6 Oct 2000 06:47:55
Message: <39ddadda@news.povray.org>
Disnel <dis### [at] hlavacek-partnercz> wrote:
: #include "some_include.inc" searches for include in
: actual directory (directory from which was parent file
: readed, NOT directory where main scene file is located)

: and #include <some_include.inc> searches in paths
: given with +l switch in commandline.

  Doesn't the current #include do both? Why do we need separate include
commands?
  It's usually not a good idea to make an include file with the same name
with a standard include file.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Disnel
Subject: Re: Another includes idea
Date: 6 Oct 2000 10:01:37
Message: <39DDDC36.C2F57507@hlavacek-partner.cz>
Warp wrote:
> 
> Disnel <dis### [at] hlavacek-partnercz> wrote:
> : #include "some_include.inc" searches for include in
> : actual directory (directory from which was parent file
> : readed, NOT directory where main scene file is located)
> 
> : and #include <some_include.inc> searches in paths
> : given with +l switch in commandline.
> 
>   Doesn't the current #include do both? Why do we need separate include
> commands?
>   It's usually not a good idea to make an include file with the same name
> with a standard include file.


Sure, but for example I want to have one system wide directory for
includes (/usr/local/POV/include). In this directory I want to have
some "packages", for example in /usr/local/POV/include/arch should
be architecture.inc, ar_furniture.inc, ar_beams.inc, ....
at_<something> is automatically included from architecture.inc, thus
in scene I want to write only "include <arch/architecture.inc>" without
the need to add /usr/local/POV/include/architecture to +l path.
This don't work.

... sorry for sending it directly to you, mouse-like control is not
every time the best ...

> 
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.