Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: long long in Digital Unix
Date: 1997/08/24	[thread overview]
Message-ID: <5tojsu$n0a$1@news.iastate.edu> (raw)
In-Reply-To: danpop.872269363@news.cern.ch


Dan Pop <Dan.Pop@cern.ch> wrote:
}john@iastate.edu (John Hascall) writes:
}>Dirk Grunwald  <grunwald@foobar.cs.colorado.edu> wrote:
}>}I'm porting a program that makes extensive use of 'long long'
}>}under Solaris. They intend it to mean 64 bit longs.
}>}
}>}The Digital Unix 'printf' and and 'scanf' don't grok the '%lld'
}>}specification for a long long value. ANyone know of a way
}>}around thsi w/o #ifdef'ing all the instances?

}>      sed 's/%lld/%ld/g' < bogus.c > sane.c        ??

}You can go one step further and really sanitize the code:

}    sed 's/%lld/%ld/g' < bogus.c | sed 's/long long/long/g' > sane.c

   Watch for:

         long longvar;

   though :)

John
-- 
John Hascall, Software Engr.        Shut up, be happy.  The conveniences you
ISU Computation Center              demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html  <-- the usual crud



  parent reply	other threads:[~1997-08-24  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-17  4:00 long long in Digital Unix Dirk Grunwald
1997-08-17  4:00 ` Arun Sharma
1997-08-17  4:00 ` Peter L. Montgomery
1997-08-18  4:00 ` Dirk Grunwald
1997-08-20  4:00 ` John Hascall
     [not found]   ` <danpop.872269363@news.cern.ch>
1997-08-24  4:00     ` John Hascall [this message]
1997-08-21  4:00 ` Peter Quodling
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox