[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: doesn't this look incorrect?
From: |
Christopher Plewright |
Subject: |
RE: doesn't this look incorrect? |
Date: |
Mon, 28 Nov 2022 05:34:31 +0000 |
Ahh, thanks, I missed that. So, static means it's remembered out of its
declared scope, and so its only initialized first time.
-----Original Message-----
From: Óscar Fuentes <ofv@wanadoo.es>
Sent: Monday, November 28, 2022 4:26 PM
To: Christopher Plewright <chris@createng.com>
Cc: emacs-devel@gnu.org
Subject: Re: doesn't this look incorrect?
Christopher Plewright <chris@createng.com> writes:
> See Lines 9733 to 9735: in emacs: src/w32fns.c
>
> static int isdead = 0;
>
> if (isdead == 2)
>
> This is apparently a mistake.
I don't think so. See what `static' means for a variable declaration inside a
function.