RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/rpmio/ rpmnss.c

From: Anders F Björklund <afb@rpm5.org>
Date: Wed 05 Dec 2007 - 11:22:23 CET
Message-Id: <a6950d89194dd980cccd6a5f99326c07@rpm5.org>
Ralf S. Engelschall wrote:

> On Wed, Dec 05, 2007, Anders F. Björklund wrote:
>
>>     don't include rpmnss.h twice
>
> Ah, even better. Sorry, I totally overlooked the
> already existing <rpmnss.h>. Thanks!

The main difference is that you used the "public"
version of the header, while it needs the "private"...

Difference being the "#define _RPMNSS_INTERNAL" macro,
before including the header. (allowing private access)

This is an alternate approach to splitting the header
up into different files, e.g. foo.h and foo_internal.h

--anders
Received on Wed Dec 5 11:22:26 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.