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

Pointer to pointer to type

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







Pointer to pointer to type
PostPosted: Thu Jul 26, 2007 9:47 am     Reply with quote

Dear all

I've a problem with generic Ansi C compliant code, to be compiled with my PCWH compiler with version 4.024.

The compiler has a problem with following code:


UTIL_StatusType UTIL_AddToMessageQueue( UTIL_QueueType xQueueId,
UTIL_BufMsgType* psBuffer )
{

util_OneQueueEntry* psQEntry;
UTIL_BufMsgType** ppsVeryLast;


.....
}

It does not accept the declaration for ppsVeryLast.

Any idea how to work around?

Thx,
Urs
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 27, 2007 5:44 pm     Reply with quote

Post a test program which shows all varible declarations.

If possible, re-write the test program so that it uses much shorter
variable names. Make the test program be an easy to understand.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Jul 30, 2007 8:26 am     Reply with quote

You do realize that CCS makes no pretenses of being an ANSI C compliant compiler. The 1 bit short, the 8 bit int, and the automatic looping when passing a string to a char function are examples of things CCS does that are not ANSI C compliant, but are very useful for embedded work
_________________
The search for better is endless. Instead simply find very good and get the job done.
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