avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] use of GOTO statement


From: Russell Shaw
Subject: Re: [avr-gcc-list] use of GOTO statement
Date: Sun, 14 Aug 2005 14:05:38 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050802 Debian/1.7.10-1

Royce Pereira wrote:
Hi,

On Sun, 14 Aug 2005 06:18:20 +0530, Hugo González Monteverde <address@hidden> wrote:

Why exactly do you want to return to a different place? Looks like another, less complicated solution may be better. As Steve said, the standard way of having INT code affect non INT code is to set asynchronous flags (remember they should be volatile too) in the main() code...

In any case, I have never used goto myself and was wondering... I think it only allows jumping to a label in the same function... or is it a UNIXism of me?

That is correct. You cant jump(GOTO) out of a function.
--Royce.

But you can longjmp().




reply via email to

[Prev in Thread] Current Thread [Next in Thread]