From mint-bounce@lists.fishpool.fi  Tue Dec 15 10:24:31 2009
From: Andreas Schwab <schwab@linux-m68k.org>
To: Vincent =?utf-8?Q?Rivi=C3=A8re?= <vincent.riviere@freesbee.fr>
Cc: "\[MiNT\] Mailing-List" <mint@fishpool.com>
Subject: Re: [MiNT] Programming style
References: <BAB23262A0FA40C2BC2EF7F5A2D614D4@mercatus.local>
	<4B279534.9050904@freesbee.fr>
X-Yow: This is PLEASANT!
Date: Tue, 15 Dec 2009 15:16:33 +0100
In-Reply-To: <4B279534.9050904@freesbee.fr> ("Vincent =?utf-8?Q?Rivi=C3=A8?=
 =?utf-8?Q?re=22's?= message of
	"Tue, 15 Dec 2009 14:55:00 +0100")
Message-ID: <m36388gw5a.fsf@hase.home>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: schwab@linux-m68k.org
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id nBFFOVxQ030218

Vincent Rivière <vincent.riviere@freesbee.fr> writes:

> Static variables defined inside functions have an additional, less
> known feature. They are initialized on the first function call. So at
> the start of any function containing initialized static variables,
> there is a hidden code like this:

Static variables at block scope work exactly like static variables at
file scope except for visibility.  There is no such hidden code.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


