gnupic: Re: [gnupic] gpasm `extern' vs `global' (new feature patch)
Subject:
Re: [gnupic] gpasm `extern' vs `global' (new feature patch)
From:
"Gabor Kiss [Bitman]" ####@####.####
Date:
21 Apr 2005 07:48:12 +0100
Message-Id: <Pine.LNX.4.58.0504210845380.18939@nelson.cdata.hu>
> 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.
>
> 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.
It sounds good.
(Now I have to use some tricky macros that import or export
a symbol depending on which source file used in.)
Gabor