mirror of
https://github.com/ctm/executor.git
synced 2025-02-19 18:31:27 +00:00
Cleaned up some warnings.
This commit is contained in:
parent
8141c0662b
commit
11aa2b4a84
@ -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/cquick.h"
|
||||||
#include "rsys/prefs.h"
|
#include "rsys/prefs.h"
|
||||||
#include "rsys/mman.h"
|
#include "rsys/mman.h"
|
||||||
#include "rsys/fatal.h"
|
|
||||||
#include "rsys/refresh.h"
|
#include "rsys/refresh.h"
|
||||||
#include "rsys/vdriver.h"
|
#include "rsys/vdriver.h"
|
||||||
#include <syn68k_public.h>
|
#include <syn68k_public.h>
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
#define CLV(rhs) (rhs)
|
#define CLV(rhs) (rhs)
|
||||||
#define Cx(rhs) (rhs)
|
#define Cx(rhs) (rhs)
|
||||||
|
|
||||||
#if 0
|
/*
|
||||||
* Do not use these blindly on big-endian machines. There's no longer a
|
* 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
|
* guarantee that we can get low-memory on all big-endian machines. It doesn't
|
||||||
* work, for example, on Mac OS X PPC.
|
* work, for example, on Mac OS X PPC.
|
||||||
*
|
*
|
||||||
* #define MR(rhs) (rhs) /* Mac to ROMlib */
|
* #define MR(rhs) (rhs) / * Mac to ROMlib * /
|
||||||
* #define RM(rhs) (rhs) /* ROMlib to Mac */
|
* #define RM(rhs) (rhs) / * ROMlib to Mac * /
|
||||||
#endif
|
*/
|
||||||
|
|
||||||
#define MR(n) ((typeof (n))({ typeof (n) _t = n; _t ? ((((unsigned long) (_t))) + ROMlib_offset) : 0;}))
|
#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;}))
|
#define RM(n) ((typeof (n))({ typeof (n) _t = n; _t ? ((((unsigned long) (_t)- ROMlib_offset)) ) : 0;}))
|
||||||
|
@ -121,7 +121,7 @@ typedef struct PACKED menu_list
|
|||||||
char data;
|
char data;
|
||||||
} menu_list;
|
} 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 struct { menu_list_ptr p PACKED_P; } HIDDEN_menu_list_ptr;
|
||||||
typedef HIDDEN_menu_list_ptr *menu_list_handle;
|
typedef HIDDEN_menu_list_ptr *menu_list_handle;
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ dump_image (BitMap *bogo_bitmap, Rect *rect)
|
|||||||
base_addr = alloca (map_row_bytes * height);
|
base_addr = alloca (map_row_bytes * height);
|
||||||
|
|
||||||
new_pixmap.rowBytes = CW (map_row_bytes);
|
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.pixelSize = CWC (8);
|
||||||
new_pixmap.cmpCount = CWC (1);
|
new_pixmap.cmpCount = CWC (1);
|
||||||
@ -182,7 +182,7 @@ dump_image (BitMap *bogo_bitmap, Rect *rect)
|
|||||||
{
|
{
|
||||||
map_row_bytes = CW ((unsigned short) pixmap->rowBytes
|
map_row_bytes = CW ((unsigned short) pixmap->rowBytes
|
||||||
& ~ROWBYTES_FLAG_BITS_X);
|
& ~ROWBYTES_FLAG_BITS_X);
|
||||||
base_addr = MR (pixmap->baseAddr);
|
base_addr = MR ((char *) pixmap->baseAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
row_bytes = width;
|
row_bytes = width;
|
||||||
@ -208,7 +208,7 @@ dump_rgn_as_image (RgnHandle rh)
|
|||||||
row_bytes = ((RECT_WIDTH (&bm.bounds) + 31) / 32) * 4;
|
row_bytes = ((RECT_WIDTH (&bm.bounds) + 31) / 32) * 4;
|
||||||
bm.rowBytes = CW (row_bytes);
|
bm.rowBytes = CW (row_bytes);
|
||||||
baseaddr = alloca (row_bytes * RECT_HEIGHT (&bm.bounds));
|
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));
|
memset (baseaddr, '\377', row_bytes * RECT_HEIGHT (&bm.bounds));
|
||||||
|
|
||||||
CopyBits (&bm, &bm,
|
CopyBits (&bm, &bm,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user