Xref: utzoo comp.lang.fortran:3976 comp.unix.aix:2329 Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!gatech!rutgers!deejay!gear!am!alex From: alex@am.sublink.org (Alex Martelli) Newsgroups: comp.lang.fortran,comp.unix.aix Subject: Re: VAX/SGI -> IBM RISC/6000 source format problem with FORTRAN code Message-ID: <1990Oct21.091839.943@am.sublink.org> Date: 21 Oct 90 09:18:39 GMT References: <1990Oct18.140659.34573@eagle.wesleyan.edu> Organization: Premiata Famiglia Martelli & Figli Lines: 21 In <1990Oct18.140659.34573@eagle.wesleyan.edu> hoberoi@eagle.wesleyan.edu writes: ... >problem : the source is tab delimited and extends over 72 columns and will >therefore not be accepted by xlf. Replacing tabs with spaces will not work as, >the fixed format for xlf will ignore colums beyond 72. Free format source on I believe xlf has an option to set the linelength it will accept to something else than 72. Anyway it should be pretty easy to define a source-to-source transformation, say by piping the tab-expanded source into awk running something like (NOT tested): length($0)>72 { print substr($0,1,72); print " ." substr($0,73) } (if all length are no more than 138, with obvious extensions to more continuation-lines if needed). -- Alex Martelli - (home snailmail:) v. Barontini 27, 40138 Bologna, ITALIA Email: (work:) staff@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434;