Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] Code Conversion

Re: [AVR-Chat] Code Conversion

2005-04-08 by Reza

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)
{
}

2nd;
use:

do{
...
}while( result == 0 );




		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

RE: [AVR-Chat] Code Conversion

2005-04-08 by Chuck Hackett

> 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/Chuck

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.