git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@112
ffa7fe5e-494d-0410-b361-
a75ebd5db220
};
struct block_index_item {
- unsigned long blocknum;
- unsigned long blocks;
+ u32 blocknum;
+ u32 blocks;
};
struct block_index {
- unsigned long blocks;
- unsigned long size;
- unsigned long next;
+ u32 blocks;
+ u32 size;
+ u32 next;
struct block_index_item list[0];
};
#include "transform.h"
struct block {
- unsigned long blocks;
- unsigned long size;
- unsigned long next;
+ u32 blocks;
+ u32 size;
+ u32 next;
struct coord c[2];
int count;
};
#ifndef COORD_H
#define COORD_H
+#include "types.h"
+
/*! A integer mercator coordinate */
struct coord {
- long x; /*!< X-Value */
- long y; /*!< Y-Value */
+ s32 x; /*!< X-Value */
+ s32 y; /*!< Y-Value */
};
//! A double mercator coordinate
(*p)++;
poly_hdr->order=*(*p)++;
poly_hdr->type=*(*p)++;
- poly_hdr->polys=*(unsigned long *)(*p); (*p)+=sizeof(unsigned long);
- poly_hdr->count=(unsigned long *)(*p); (*p)+=poly_hdr->polys*sizeof(unsigned long);
- poly_hdr->count_sum=*(unsigned long *)(*p); (*p)+=sizeof(unsigned long);
+ poly_hdr->polys=*(u32 *)(*p); (*p)+=sizeof(u32);
+ poly_hdr->count=(u32 *)(*p); (*p)+=poly_hdr->polys*sizeof(u32);
+ poly_hdr->count_sum=*(u32 *)(*p); (*p)+=sizeof(u32);
return 0;
}
char *name;
unsigned char order;
unsigned char type;
- unsigned long polys;
- unsigned long *count;
- unsigned long count_sum;
+ u32 polys;
+ u32 *count;
+ u32 count_sum;
};
void poly_draw_block(struct block_info *blk_inf, unsigned char *p, unsigned char *end, void *data);