Cleaned up some warnings.

This commit is contained in:
Clifford T. Matthews 2009-06-18 14:22:12 -06:00
parent 8141c0662b
commit 11aa2b4a84
4 changed files with 8 additions and 9 deletions

View File

@ -57,7 +57,6 @@ char ROMlib_rcsid_x[] = "$Id: x.c 89 2005-05-25 04:15:34Z ctm $";
#include "rsys/cquick.h"
#include "rsys/prefs.h"
#include "rsys/mman.h"
#include "rsys/fatal.h"
#include "rsys/refresh.h"
#include "rsys/vdriver.h"
#include <syn68k_public.h>

View File

@ -15,14 +15,14 @@
#define CLV(rhs) (rhs)
#define Cx(rhs) (rhs)
#if 0
/*
* Do not use these blindly on big-endian machines. There's no longer a
* guarantee that we can get low-memory on all big-endian machines. It doesn't
* work, for example, on Mac OS X PPC.
*
* #define MR(rhs) (rhs) /* Mac to ROMlib */
* #define RM(rhs) (rhs) /* ROMlib to Mac */
#endif
* #define MR(rhs) (rhs) / * Mac to ROMlib * /
* #define RM(rhs) (rhs) / * ROMlib to Mac * /
*/
#define MR(n) ((typeof (n))({ typeof (n) _t = n; _t ? ((((unsigned long) (_t))) + ROMlib_offset) : 0;}))
#define RM(n) ((typeof (n))({ typeof (n) _t = n; _t ? ((((unsigned long) (_t)- ROMlib_offset)) ) : 0;}))

View File

@ -121,7 +121,7 @@ typedef struct PACKED menu_list
char data;
} menu_list;
typedef menu_list menu_list_ptr;
typedef menu_list *menu_list_ptr;
typedef struct { menu_list_ptr p PACKED_P; } HIDDEN_menu_list_ptr;
typedef HIDDEN_menu_list_ptr *menu_list_handle;

View File

@ -161,7 +161,7 @@ dump_image (BitMap *bogo_bitmap, Rect *rect)
base_addr = alloca (map_row_bytes * height);
new_pixmap.rowBytes = CW (map_row_bytes);
new_pixmap.baseAddr = RM (base_addr);
new_pixmap.baseAddr = RM ((Ptr) base_addr);
new_pixmap.pixelSize = CWC (8);
new_pixmap.cmpCount = CWC (1);
@ -182,7 +182,7 @@ dump_image (BitMap *bogo_bitmap, Rect *rect)
{
map_row_bytes = CW ((unsigned short) pixmap->rowBytes
& ~ROWBYTES_FLAG_BITS_X);
base_addr = MR (pixmap->baseAddr);
base_addr = MR ((char *) pixmap->baseAddr);
}
row_bytes = width;
@ -208,7 +208,7 @@ dump_rgn_as_image (RgnHandle rh)
row_bytes = ((RECT_WIDTH (&bm.bounds) + 31) / 32) * 4;
bm.rowBytes = CW (row_bytes);
baseaddr = alloca (row_bytes * RECT_HEIGHT (&bm.bounds));
bm.baseAddr = RM (baseaddr);
bm.baseAddr = RM ((Ptr) baseaddr);
memset (baseaddr, '\377', row_bytes * RECT_HEIGHT (&bm.bounds));
CopyBits (&bm, &bm,