libsmbclient for Samba4: initial design issues
Andrew Bartlett
abartlet at samba.org
Sat Aug 13 09:03:22 GMT 2005
On Sat, 2005-08-13 at 08:16 +0200, Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> tridge at samba.org schrieb:
> > Derrell,
> >
> > yes, I understand what you're trying to achieve, you want all symbols
> > in any Samba supplied libs to hide behind a single part of the
> > namespace. My objection is that it adds another level of prefix to
> > every single function, which I think makes the code less readable.
> >
> > Perhaps we could look at a different technical solution? I believe
> > that gcc and the GNU binutils has a way of marking functions as being
> > public when the code is in a library, thus allowing C code to specify
> > a 3 level scoping of "public", "internal" and "file", instead of the
> > usual 2 level scoping of "public" and "file" given by
> > static/non-static.
>
> yes, that's also the idea I had,
> on some platforms it's also possible to tell the linker which symbols it should
> make public, I don't know all details.
I strongly agree: Using linker macros or other foo is a much better way
to achieve this, and avoids driving us all batty in the process.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc. http://suse.de
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050813/538fae4e/attachment.bin
More information about the samba-technical
mailing list