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 support@ccsinfo.com

__attribute__ mechanism

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



Joined: 01 Aug 2007
Posts: 14

View user's profile Send private message

__attribute__ mechanism
PostPosted: Sat Jan 26, 2008 5:52 pm     Reply with quote

i translating a code from other platform to CCS, i have one problem, i can't compile __attribute__ syntax.

for example:

Code:

typedef struct
{
  uint8 abc;
  union
  {
    uint8 pay[ 100 ];
    TX64 tx64;
    TX16 tx16;
    TXStatus txStatus;
    RX64 rx64;
    RX16 rx16;
    ATCommand Command;
    ATCommandResponse Response;
    IO64 io64;
    IO16 io16;
  };
 
  uint8 crc;
  uint8 *dataPtr;
  int rxState;
  int length;
  int index;
} __attribute__((packed)) XPacket;
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jan 26, 2008 11:07 pm     Reply with quote

Quote:
I am translating a code from other platform to CCS

If you want help, you need to tell us what is the other platform (and
compiler).
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