Re: Don't cvs update now, if ...

On Mon, 07 Oct 2002, Hans Breuer wrote:
IMO the best solution would be a dia-types.h file only
to define the common typedef's something like

#ifndef DIA_TYPES_H
#define DIA_TYPES_H
typedef struct _Layer Layer;
typedef struct _DiagramData DiagramData;
typedef struct _DiaRenderer DiaRenderer;

This would allow to pass partly known 'class' pointers without
exposing any details of the concrete class definitions.

Looking more at it, I totally agree with this approach, consider it
something that should have been done a while ago, and have added it to CVS
(diatypes.h and relevant changes in the other .h's).  All the 'original' .h
files include that one, so the outside should be happy.  Now to see what
else breaks.


Lars Clausen (| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]