On Aug 3, 2009, at 8:48 PM, Richard Gray wrote:
>> This is driving me nuts, I have been searching in all the
>> obvious places for information on this but still can not
>> find what is wrong :
>>
>> utilities.h:15: error 7: Old style C declaration. IGNORED 'Delay'
>> utilities.h:15: error 141: two or more data types in declaration for
>> 'Delay'
>>
>> In the header file I have this :
>>
>> void Delay(uint16_t);
>>
> <snip>
>
> Your function prototype should have a variable name in the call
> parameter, not
> just a type...
>
> e.g.
>
> void Delay(uint16_t T);
Umm...no, just the type is fine. I've seen it done this way
sometimes, but rarely, and I *never* do it myself.
> I think what you have might have worked with K&R C back in the
> 80's, but it's
> so long ago I cannot remember now ;-)
In K&R (pre-ANSI) C, the declaration would be:
int (<-- no "void" type)
Delay(t)
uint16_t t;
{
...
}
>
--
Dave McGuire
Port Charlotte, FL
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user