Hi Raphael,
first thanks for your reply,

2007/11/3, Raphael Neider <[EMAIL PROTECTED]>:
> Hi Alan,
>
> this is not a bug: You simply cannot declare constant types (does not
> make too much sense either...). Try
>
> typedef struct _rom_desc_tsk
> {
>         // remainder
> } rom_desc_tsk;
>
> and define (constant) variables via
>
> const rom_desc_tsk foobar;
>

The problem is not the "const" as the error message suggest, the
problem is the "rom" before it.

This code works fine:

typedef const struct _rom_desc_tsk
{
       unsigned char prioinit;
       ...
} rom_desc_tsk;

I agree with you the best way is just "typedefining" the struct and
using const when declaring the variable, anyway this code is not mine,
I want just compile it using SDCC :-D

How can I define the "rom" word using SDCC ?

> Above code is untested but should work fine.
>
> Good luck,
> Raphael
>

Thank you,

Alan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to