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

Cant Figure Out Odd Problem
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Alex
Guest







PostPosted: Thu Sep 23, 2004 8:18 am     Reply with quote

Regardless I have changed the UBYTE crc(UBYTE *data, UBYTE len)

to UBYTE crc(UBYTE data[], UBYTE len)
Alex
Guest







PostPosted: Thu Sep 23, 2004 9:02 am     Reply with quote

The solution is:
"DATA" is a key word
use different one
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Sep 23, 2004 12:08 pm     Reply with quote

Quote:
"DATA" is a key word


'data' is not a keyword in the C language or in the CCS compiler.
See this MSDN article for a list of keywords.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_clang_C_Keywords.asp
Alex
Guest







PostPosted: Fri Sep 24, 2004 3:08 am     Reply with quote

may be.
but once I have changed the 'data' to a different name, it worked
Trampas



Joined: 04 Sep 2004
Posts: 89
Location: NC

View user's profile Send private message MSN Messenger

PostPosted: Fri Sep 24, 2004 5:53 am     Reply with quote

What version of the compiler are you using?

The reason I ask is CCS has been known to have problems with pointers. Actually this was the problem with ISO9001 orginal code, he used pointers on a version of compiler which had pointer bugs. I am guessing this is your problem as well as that the function defintion you changed to should compile to same code as the orginal one.

Trampas
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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