Xref: utzoo comp.lang.fortran:308 comp.unix.questions:4820 Path: utzoo!mnetor!uunet!husc6!ut-sally!utastro!anita From: anita@utastro.UUCP (Anita Cochran) Newsgroups: comp.lang.fortran,comp.unix.questions Subject: Want to expand includes for listing... Message-ID: <2317@utastro.UUCP> Date: 15 Dec 87 20:17:57 GMT Organization: U. Texas, Astronomy, Austin, TX Lines: 22 Keywords: fortran include I have a fortran code in which I use includes to include my common blocks in various routines. This gives the advantage that I can change the common in only one file and it will upgrade all of the dependent files (especially with a makefile). But it is sometimes handy to have a listing of the code. Normally, I would just use lpr to print a listing but then the listing would have things like include 'file.com' instead of actually listing the common. Does anyone know of a utility or have a program or script to substitute the contents of an included file into the appropriate place of a source so that it can be listed (I have 4.2BSD UNIX)? Surely, this is such a useful utility that someone must have invented it before. I have already tried calling the files src.F and running f77 with the -F flag to run them through the preprocessor but this leaves the source unchanged with the includes still in it. Thanks in advance. -- Anita Cochran uucp: {noao, ut-sally, ut-ngp}!utastro!anita arpa: anita@astro.as.utexas.edu snail: Astronomy Dept., The Univ. of Texas, Austin, TX, 78712 at&t: (512) 471-1471