|
Thanks Terry,
actually it turned out that it was a multiplication
right next to a regular pointer indirection (ie x * *p(blahblah)).
<rant>
The code was writen in 1990 and released by the US
National Geophysical Data Center and it's as ugly as sin. I don't know whether
it is typical of procedural code written in C from that period (or from govt
centers), but I suspect it breaks whatever rules for structure and design that
they had even then! For example, apart from things like gotos
and incredibly short meaningless variable names, it has routines that
do two completely different tasks depending on a flag that you pass into it (ie
two routines in one - just pass a flag to get it to do something else), and
stuff like the following:
for (m=0,D3=1,D4=(n+m+D3)/D3; D4>0;
D4--,m+=D3)
etc
where the m is not used in the loop and should have
just been initialised outside it! There's more, but you get the
idea.
</rant>
It also doesn't help that I'm translating code that
carries out calculations that are well above my comprehension (calculates the
2000 Epoch World Magnetic Model for a given Lat, Long, Altitude, and Year using
spherical-harmonic Gauss coefficients - whatever they are).
Cheers,
Phil.
|
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
