comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Complete IDL application in a single file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Complete IDL application in a single file? [message #5269] Tue, 21 November 1995 00:00
Adam Shane is currently offline  Adam Shane
Messages: 4
Registered: September 1995
Junior Member
"H.-M. v.Stockhausen" <stockh@pet.mpin-koeln.mpg.de> wrote:
>
> Hi,
>
> Is there a way to combine all the procedures and functions of a larger application into a single file ?
>
> All suggestions are much apreciated,
> Hans-Martin.

Yes, the application will be self-compiling if you make sure the procedures
and functions are in the file in the reverse order of which they are
called. For instance, the main procedure or function should be the
last in the file, any procedures/functions called from this level
should be before the main and so on.

Adam Shane
shane@arete.com
Re: Complete IDL application in a single file? [message #5273 is a reply to message #5269] Tue, 21 November 1995 00:00 Go to previous message
Adam Fedor is currently offline  Adam Fedor
Messages: 1
Registered: November 1995
Junior Member
There was a package written awhile ago called "idltags" by Andrew T. Shapiro at
the University of Colorado. Unfortunately, I don't know where I originally got
it from or where it might be available.

I also made some slight modifications to it and e-mailed the author about it,
but he never replied.

Basically it does several things, including indexing your pro files, and
creating a dependency list, and from there, creates an IDL script to compile
all the files into one module.

I've put the copy I have, in addition to a new copy with my changes at

ftp://www.ocs.colorado.edu/pub/idltags.tar.gz
ftp://www.ocs.colorado.edu/pub/idltags-A.tar.gz


---
Adam Fedor. CU, Boulder | If you're not living on the edge, you're
fedor@colorado.edu (MIME) | taking up too much space...
adam@rmnug.org (NeXTMail) |
Re: Complete IDL application in a single file? [message #5283 is a reply to message #5269] Mon, 20 November 1995 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
H.-M. v.Stockhausen wrote:
>
> Hi,
>
> Is there a way to combine all the procedures and functions of a larger application into a single file ?
>
> All suggestions are much apreciated,
> Hans-Martin.



cat


--
Andrew F. Loughe (afl@cdc.noaa.gov)
University of Colorado, CIRES * Campus Box 449 * Boulder, CO 80309
phone: (303) 492-0707 fax: (303) 497-7013
Re: Complete IDL application in a single file? [message #5286 is a reply to message #5283] Mon, 20 November 1995 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <30B01C24.158E@pet.mpin-koeln.mpg.de>, "H.-M. v.Stockhausen" <stockh@pet.mpin-koeln.mpg.de> writes:
> Hi,
>
> Is there a way to combine all the procedures and functions of a larger
> application into a single file ?
>

Yes, just put them into a single file.

The only trick is to get IDL to compile all the procedures in that file.
There are 2 approaches to this:

- If the package has a single "user-callable" procedure or function
(as opposed to "private" procedures), or at least a single procedure or
function which is always called first, then do the following:
(Assume that procedure or function is called MY_PROGRAM)
- Name the file MY_PROGRAM.PRO
- Put procedure or function MY_PROGRAM as the last one in the file.
If you do this then the first time MY_PROGRAM is called, IDL will find file
MY_PROGRAM.PRO and compile all procedures and functions in that file until it
finds the one called MY_PROGRAM.

- If the file has more than one "user-callable" entry point, then put the
following line in your IDL_STARTUP procedure:
- .RUN MY_PROGRAM

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Differential equations solver in IDL 4.0
Next Topic: Telnet Problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:31:37 PDT 2025

Total time taken to generate the page: 0.00823 seconds