gnupic: gpasm `extern' vs `global' (new feature patch)
Subject:
Re: gpasm `extern' vs `global' (new feature patch)
From:
Tadashi G.Takaoka ####@####.####
Date:
20 Apr 2005 23:58:18 +0100
Message-Id: <20050421.075746.74753039.t2@method.jp>
Hi, gputils users.
On Wed, 20 Apr 2005 19:01:34 +0100, Ian Jackson <ian AT davenant.greenend.org.uk> wrote
>I found it inconvenient that when defining a global symbol (one with
>`external linkage' in C parlance, although there is of course no C
>here) in gpasm I have to say `global', but when I'm referring to it I
>have to say `extern'. That means I can't have one include file with
>a list of all of the global symbols.
I had same problem of 'extern' conflict with 'global'.
>So, I wrote the patch below which is supposed to allow the use of
>`extern' even for symbols defined in the same file, at least for
>labels. (You have to say `extern' before the label.) When the
>definition is encountered the symbol is converted from extern to
>global. This appears to work for me.
Yes, I like this style of include files.
>I'd be grateful if you'd let me know what you think of it, and I
>would be very happy if it were included in future gputils versions.
I would be happy, too!
--
TAKAOKA is gathering P*O*W*E*R. http://method.jp/tadashi/