> From: Reza [mailto:reza_agha@yahoo.com]
>
> Hi;
>
> the main part of a function prototype is count and
> type of arguments passed to function. so if no
> paramtters should be passed, use (void) instead of ().
>
> void overrun(void)
> {
> }
That's what I thought but I couldn't explain why some were flagged and some were
not. I have changed them all to "void foo( void )" and GCC is happy (about that
at least) now.
> 2nd;
> use:
>
> do{
> ...
> }while( result == 0 );
That's also what I thought but I hesitated to alter code from a vendor without
being sure I understood it.
Cheers,
Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844
http://www.whitetrout.net/ChuckMessage
RE: [AVR-Chat] Code Conversion
2005-04-08 by Chuck Hackett
Attachments
- No local attachments were found for this message.