From 0d9a9d8ba455bce7dc456f5c1b28d9f7d9000b5b Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Mon, 25 Oct 1999 03:42:10 +0000 Subject: [PATCH] Just added support for an NS_IMPL_ISUPPORTS 7 - 10. --- xpcom/base/nsISupportsUtils.h | 77 +++++++++++++++++++++++++++++++++++ xpcom/glue/nsISupportsUtils.h | 77 +++++++++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+) diff --git a/xpcom/base/nsISupportsUtils.h b/xpcom/base/nsISupportsUtils.h index 371752a23156..ec0de291a2b9 100644 --- a/xpcom/base/nsISupportsUtils.h +++ b/xpcom/base/nsISupportsUtils.h @@ -321,6 +321,60 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ NS_IMPL_QUERY_BODY(_i6) \ NS_IMPL_QUERY_TAIL(_i1) +#define NS_IMPL_QUERY_INTERFACE7(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_TAIL(_i1) + +#define NS_IMPL_QUERY_INTERFACE8(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_BODY(_i8) \ + NS_IMPL_QUERY_TAIL(_i1) + +#define NS_IMPL_QUERY_INTERFACE9(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8, _i9) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_BODY(_i8) \ + NS_IMPL_QUERY_BODY(_i9) \ + NS_IMPL_QUERY_TAIL(_i1) + +#define NS_IMPL_QUERY_INTERFACE10(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8, _i9, i10) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_BODY(_i8) \ + NS_IMPL_QUERY_BODY(_i9) \ + NS_IMPL_QUERY_BODY(_i10) \ + NS_IMPL_QUERY_TAIL(_i1) + /* The following macro is deprecated. We need to switch all instances to |NS_IMPL_QUERY_INTERFACE1|, or |NS_IMPL_QUERY_INTERFACE0| depending @@ -398,6 +452,29 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ NS_IMPL_RELEASE(_class) \ NS_IMPL_QUERY_INTERFACE6(_class, _i1, _i2, _i3, _i4, _i5, _i6) +#define NS_IMPL_ISUPPORTS7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) + +#define NS_IMPL_ISUPPORTS8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) + +#define NS_IMPL_ISUPPORTS9(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8, \ + _i9) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE9(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8, _i9) + +#define NS_IMPL_ISUPPORTS10(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8, _i9, _i10) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE10(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8, \ + _i9, _i10) + //////////////////////////////////////////////////////////////////////////////// /** diff --git a/xpcom/glue/nsISupportsUtils.h b/xpcom/glue/nsISupportsUtils.h index 371752a23156..ec0de291a2b9 100644 --- a/xpcom/glue/nsISupportsUtils.h +++ b/xpcom/glue/nsISupportsUtils.h @@ -321,6 +321,60 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ NS_IMPL_QUERY_BODY(_i6) \ NS_IMPL_QUERY_TAIL(_i1) +#define NS_IMPL_QUERY_INTERFACE7(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_TAIL(_i1) + +#define NS_IMPL_QUERY_INTERFACE8(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_BODY(_i8) \ + NS_IMPL_QUERY_TAIL(_i1) + +#define NS_IMPL_QUERY_INTERFACE9(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8, _i9) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_BODY(_i8) \ + NS_IMPL_QUERY_BODY(_i9) \ + NS_IMPL_QUERY_TAIL(_i1) + +#define NS_IMPL_QUERY_INTERFACE10(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8, _i9, i10) \ + NS_IMPL_QUERY_HEAD(_class) \ + NS_IMPL_QUERY_BODY(_i1) \ + NS_IMPL_QUERY_BODY(_i2) \ + NS_IMPL_QUERY_BODY(_i3) \ + NS_IMPL_QUERY_BODY(_i4) \ + NS_IMPL_QUERY_BODY(_i5) \ + NS_IMPL_QUERY_BODY(_i6) \ + NS_IMPL_QUERY_BODY(_i7) \ + NS_IMPL_QUERY_BODY(_i8) \ + NS_IMPL_QUERY_BODY(_i9) \ + NS_IMPL_QUERY_BODY(_i10) \ + NS_IMPL_QUERY_TAIL(_i1) + /* The following macro is deprecated. We need to switch all instances to |NS_IMPL_QUERY_INTERFACE1|, or |NS_IMPL_QUERY_INTERFACE0| depending @@ -398,6 +452,29 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ NS_IMPL_RELEASE(_class) \ NS_IMPL_QUERY_INTERFACE6(_class, _i1, _i2, _i3, _i4, _i5, _i6) +#define NS_IMPL_ISUPPORTS7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE7(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7) + +#define NS_IMPL_ISUPPORTS8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE8(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8) + +#define NS_IMPL_ISUPPORTS9(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8, \ + _i9) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE9(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8, _i9) + +#define NS_IMPL_ISUPPORTS10(_class, _i1, _i2, _i3, _i4, _i5, _i6, \ + _i7, _i8, _i9, _i10) \ + NS_IMPL_ADDREF(_class) \ + NS_IMPL_RELEASE(_class) \ + NS_IMPL_QUERY_INTERFACE10(_class, _i1, _i2, _i3, _i4, _i5, _i6, _i7, _i8, \ + _i9, _i10) + //////////////////////////////////////////////////////////////////////////////// /**