View previous topic :: View next topic |
Author |
Message |
Twain Guest
|
Pointer to pointer to type |
Posted: Thu Jul 26, 2007 9:47 am |
|
|
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
|
|
Posted: Fri Jul 27, 2007 5:44 pm |
|
|
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
|
|
Posted: Mon Jul 30, 2007 8:26 am |
|
|
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. |
|
|
|