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

CCS and (ANSI) C99

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



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

CCS and (ANSI) C99
PostPosted: Sun Nov 01, 2015 12:59 am     Reply with quote

Quote:
CCS PCM C Compiler, Version 5.025, 5967

I know CCS does not completely cover the ANSI 99.
Just want to show another trait.

Code:
MY_TYPE a = { .flag = true, .value = 123, .stuff = 0.456 };


^^This^^ type of structure initialization is not allowed in CCS 5.025. Not sure for later versions.
_________________
A person who never made a mistake never tried anything new.
Ttelmah



Joined: 11 Mar 2010
Posts: 19563

View user's profile Send private message

PostPosted: Sun Nov 01, 2015 4:53 am     Reply with quote

CCS does not attempt to get even close to C99. C90, yes. C99, no.

"Designated initializers" only appeared in C99, so it is not surprising that they don't work. I must admit I'm surprised that they haven't come along in CCS in the recent versions, since they can help ensure that values go where you want them (however 'beware' that every other value in the structure will also be initialised to the default when you initialise any value, so an explicit initialisation of all values is safer).
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