$OpenBSD: patch-include_Attribute_h,v 1.2 2005/08/10 09:59:13 espie Exp $ --- include/Attribute.h.orig Tue Dec 16 09:49:29 1997 +++ include/Attribute.h Wed Aug 10 11:43:30 2005 @@ -31,6 +31,27 @@ class AttributeSemantics; class AttributeContext; class Syntax; +class SP_API AttributeValue : public Resource { +public: + enum Type { + implied, + cdata, + tokenized + }; + AttributeValue(); + virtual ~AttributeValue(); + virtual AttributeSemantics *makeSemantics(const DeclaredValue *, + AttributeContext &, + const StringC &, + unsigned &, + unsigned &) const; + virtual Type info(const Text *&, const StringC *&) const = 0; + virtual const Text *text() const; + virtual Boolean recoverUnquoted(const StringC &, const Location &, + AttributeContext &, const StringC &); + static Boolean handleAsUnterminated(const Text &, AttributeContext &); +}; + class SP_API AttributeDefinitionDesc { public: AttributeDefinitionDesc() { } @@ -371,27 +392,6 @@ public: AttributeSemantics *copy() const; private: ConstPtr notation_; -}; - -class SP_API AttributeValue : public Resource { -public: - enum Type { - implied, - cdata, - tokenized - }; - AttributeValue(); - virtual ~AttributeValue(); - virtual AttributeSemantics *makeSemantics(const DeclaredValue *, - AttributeContext &, - const StringC &, - unsigned &, - unsigned &) const; - virtual Type info(const Text *&, const StringC *&) const = 0; - virtual const Text *text() const; - virtual Boolean recoverUnquoted(const StringC &, const Location &, - AttributeContext &, const StringC &); - static Boolean handleAsUnterminated(const Text &, AttributeContext &); }; class SP_API ImpliedAttributeValue : public AttributeValue {