typedef struct bb_map_struct bb_map_t;
-/* This can be handy elsewhere. */
-extern int bigendian;
-
-
/* Function declarations. These functions are of fairly general use;
they would apply to any Blorb file. */
static bb_err_t bb_initialize_map(bb_map_t *map);
static bb_err_t bb_initialize(void);
static int sortsplot(const void *p1, const void *p2);
-
-int bigendian;
+static int bigendian;
static uint16 bb_native2(uint16 v)
{
}
-extern int bigendian;
-
-static void swapbytes(void *object, size_t size)
-{
- unsigned char *start, *end;
- unsigned char swap;
-
- if(!bigendian) {
- for (start = (unsigned char *)object, end = start + size - 1; start < end; ++start, --end ) {
- swap = *start;
- *start = *end;
- *end = swap;
- }
- }
-}
-
-
bool unix_init_pictures (void)
{
int maxlegalpic = 0;
} /* JFIF */
} /* JPEG */
}
- if (bigendian) {
- swapbytes(&pict_info[i].orig_width, 4);
- swapbytes(&pict_info[i].orig_height, 4);
- }
pict_info[i].height = round_div(pict_info[i].orig_height *
h_screen_rows, y_scale);
pict_info[i].width = round_div(pict_info[i].orig_width *