Added initial support for native SGI compilers.

This commit is contained in:
curt
1999-02-26 22:07:53 +00:00
parent 739588f9c3
commit d136ad3e57
9 changed files with 72 additions and 21 deletions
+7 -4
View File
@@ -72,11 +72,11 @@ void fgBucketParseIndex(long int index, fgBUCKET *p) {
// Build a path name from an tile index
void fgBucketGenBasePath( const fgBUCKET *p, char *path) {
long int index;
// long int index;
int top_lon, top_lat, main_lon, main_lat;
char hem, pole;
index = fgBucketGenIndex(p);
// index = fgBucketGenIndex(p);
path[0] = '\0';
@@ -206,7 +206,7 @@ void fgBucketFind(double lon, double lat, fgBUCKET *p) {
// Given a lat/lon, fill in the local tile index array
void fgBucketGenIdxArray(fgBUCKET *p1, fgBUCKET *tiles, int width, int height) {
fgBUCKET *p2;
// fgBUCKET *p2;
int dw, dh, i, j;
dh = height / 2;
@@ -214,7 +214,7 @@ void fgBucketGenIdxArray(fgBUCKET *p1, fgBUCKET *tiles, int width, int height) {
for ( j = 0; j < height; j++ ) {
for ( i = 0; i < width; i++ ) {
fgBucketOffset(p1, &tiles[(j*width)+i], i - dw, j - dh);
p2 = &tiles[(j*width)+i];
// p2 = &tiles[(j*width)+i];
/* printf( " bucket = %d %d %d %d index = %ld\n",
p2->lon, p2->lat, p2->x, p2->y,
fgBucketGenIndex(&tiles[(j*width)+i])); */
@@ -265,6 +265,9 @@ int main() {
// $Log$
// Revision 1.2 1999/02/26 22:07:53 curt
// Added initial support for native SGI compilers.
//
// Revision 1.1 1999/02/17 20:52:05 curt
// Renamed bucketutils.c -> bucketutils.cxx
//
+6 -2
View File
@@ -34,12 +34,12 @@
// Build the path name for this bucket
string FGBucket::gen_base_path() {
long int index;
// long int index;
int top_lon, top_lat, main_lon, main_lat;
char hem, pole;
char path[256];
index = gen_index();
// index = gen_index();
path[0] = '\0';
@@ -146,6 +146,9 @@ void fgBucketDiff( const FGBucket& b1, const FGBucket& b2, int *dx, int *dy ) {
// $Log$
// Revision 1.3 1999/02/26 22:07:54 curt
// Added initial support for native SGI compilers.
//
// Revision 1.2 1999/02/11 01:09:33 curt
// Added a routine to calculate the offset in bucket units between two buckets.
//
@@ -154,3 +157,4 @@ void fgBucketDiff( const FGBucket& b1, const FGBucket& b2, int *dx, int *dy ) {
// fgBUCKET struct and C routines. This FGBucket class adjusts the tile
// width towards the poles to ensure the tiles are at least 8 miles wide.
//
+4 -1
View File
@@ -29,7 +29,7 @@
#include <Include/compiler.h>
#include <string>
#include STL_STRING
FG_USING_STD(string);
FG_USING_NAMESPACE(std);
@@ -290,6 +290,9 @@ fgBucketGenIndex( const fgBUCKET& p )
// $Log$
// Revision 1.3 1999/02/26 22:07:55 curt
// Added initial support for native SGI compilers.
//
// Revision 1.2 1999/02/11 01:09:34 curt
// Added a routine to calculate the offset in bucket units between two buckets.
//