Update of /cvsroot/easycalc/PPCport/compat
In directory vz-cvs-4.sog:/tmp/cvs-serv1809
Modified Files:
FloatManager.h PalmOS.h
Log Message:
1.25g
Index: FloatManager.h
===================================================================
RCS file: /cvsroot/easycalc/PPCport/compat/FloatManager.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FloatManager.h 5 Jul 2009 20:52:48 -0000 1.2
--- FloatManager.h 28 Feb 2011 22:05:45 -0000 1.3
***************
*** 6,18 ****
#include "PalmOS.h"
typedef struct {
- UInt32 sign : 1;
- Int32 exp : 11;
- UInt32 manH : 20;
UInt32 manL;
} FlpDoubleBits;
- // Inferring from definitions in Palm OS FloatMgr.h as, and the fact that Windows CE
- // supports only little endian, even on ARM platforms which are bi-endian.
typedef unsigned int SDWord;
typedef struct {
--- 6,18 ----
#include "PalmOS.h"
+ // Inferring from definitions in Palm OS FloatMgr.h as, and the fact that Windows CE
+ // supports only little endian, even on ARM platforms which are big-endian.
typedef struct {
UInt32 manL;
+ UInt32 manH : 20;
+ Int32 exp : 11;
+ UInt32 sign : 1;
} FlpDoubleBits;
typedef unsigned int SDWord;
typedef struct {
Index: PalmOS.h
===================================================================
RCS file: /cvsroot/easycalc/PPCport/compat/PalmOS.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PalmOS.h 15 Dec 2009 21:36:12 -0000 1.8
--- PalmOS.h 28 Feb 2011 22:05:45 -0000 1.9
***************
*** 70,73 ****
--- 70,82 ----
typedef RectangleType *RectanglePtr;
+ typedef struct RGBColorType {
+ UInt8 index;
+ UInt8 r;
+ UInt8 g;
+ UInt8 b;
+ } RGBColorType;
+
+ #define WinRGBToIndex(c) ((DWORD) (((BYTE) ((c)->r) | ((WORD) ((c)->g) << 8)) | (((DWORD) (BYTE) ((c)->b)) << 16)))
+
#include "DataManager.h"
#include "FloatManager.h"
***************
*** 75,79 ****
#include <stdlib.h>
! #define SysRandom(x) (srand(x), rand())
#define sysRandomMax RAND_MAX
extern unsigned long nan[];
--- 84,88 ----
#include <stdlib.h>
! #define SysRandom(x) ((x == 0) ? rand() : (srand(x), rand()))
#define sysRandomMax RAND_MAX
extern unsigned long nan[];
|