POV-Ray : Newsgroups : povray.binaries.programming : Finding all #include files in a POV-Ray scene file Server Time
3 Dec 2024 12:47:39 EST (-0500)
  Finding all #include files in a POV-Ray scene file (Message 1 to 1 of 1)  
From: Thorsten Froehlich
Subject: Finding all #include files in a POV-Ray scene file
Date: 19 Oct 2001 15:21:57
Message: <3bd07d55@news.povray.org>
The attached code is useful for finding #include files in a POV-Ray scene 
file.  With proper use it can work recursively.  There are two restrictions
which affect only a very small number of scene files:
1. The parser does not allow the "#" and the "include" to be separated by
spaces or tabs like the POV-Ray parser currently does.
2. Include file names assembled by string functions are not supported.

    Thorsten

NOTE: While this example code is provided under a very liberal license,
older or newer versions of this source code that may be found in the POV-Ray
source code are still governed by povlegal.doc!

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message


Attachments:
Download 'qpovpars.zip' (6 KB) Download 'us-ascii' (0 KB)

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