CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

TYPEDEF / STRUCT problem Solved

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jameszum



Joined: 31 Jan 2012
Posts: 14

View user's profile Send private message

TYPEDEF / STRUCT problem Solved
PostPosted: Wed May 07, 2014 1:10 pm     Reply with quote

typedef unsigned char RD_BYTE;
typedef unsigned short RD_ID;
typedef unsigned short RD_UWORD;

57 typedef struct _RD_POSITION
58 {
59 RD_UWORD x;
60 RD_UWORD y;
61 } RD_POSITION;
62
63 static inline RD_POSITION Rd_Position(RD_UWORD x, RD_UWORD y)
64 {
65 RD_POSITION ret;
66 ret.x = x;
67 ret.y = y;
68 return ret;
69 }

is changed to

typedef unsigned char RD_BYTE;
typedef unsigned int8 RD_ID;
typedef unsigned int RD_UWORD;

56 #CASE
57 typedef struct _RD_POSITION
58 {
59 RD_UWORD x;
60 RD_UWORD y;
61 } RD_POSITION;
62
63 #inline
64 static RD_POSITION Rd_Position(RD_UWORD x, RD_UWORD y)
65 {
66 RD_POSITION ret;
67 ret.x = x;
68 ret.y = y;
69 return ret;
70 }
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Thu May 08, 2014 1:29 am     Reply with quote

Why not add this to the original thread?. Much nicer and easier for anyone in the future to see...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group