29 |
|
|
30 |
/* item_id_t needs to be signed as osm2go uses negative ids for items */ |
/* item_id_t needs to be signed as osm2go uses negative ids for items */ |
31 |
/* not yet registered with the main osm database */ |
/* not yet registered with the main osm database */ |
32 |
typedef glong item_id_t; |
#if 1 |
33 |
#define G_TYPE_ITEM_ID_T G_TYPE_LONG |
/* currently 31 bit is still sufficient since there are less than */ |
34 |
|
/* 2 billion nodes or changesets */ |
35 |
|
typedef gint32 item_id_t; |
36 |
|
#define G_TYPE_ITEM_ID_T G_TYPE_INT |
37 |
|
#define ITEM_ID_FORMAT "%" G_GINT32_FORMAT |
38 |
|
#else |
39 |
|
/* the future may require us to switch to 64 bits */ |
40 |
|
typedef gint64 item_id_t; |
41 |
|
#define G_TYPE_ITEM_ID_T G_TYPE_INT64 |
42 |
|
#define ITEM_ID_FORMAT "%" G_GINT64_FORMAT |
43 |
|
#endif |
44 |
|
|
45 |
#define ID_ILLEGAL ((item_id_t)0) |
#define ID_ILLEGAL ((item_id_t)0) |
46 |
|
|