mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
PRBool values should be members of the set {0,1}. r=sfraser sr=jst. see bug 80722
This commit is contained in:
parent
5f38cf839e
commit
7c06335f78
@ -112,11 +112,11 @@ struct nsXPTCVariant : public nsXPTCMiniVariant
|
||||
void SetValIsArray() {flags |= VAL_IS_ARRAY;}
|
||||
void SetValIsDOMString() {flags |= VAL_IS_DOMSTR;}
|
||||
|
||||
PRBool IsPtrData() const {return (PRBool) (flags & PTR_IS_DATA);}
|
||||
PRBool IsValAllocated() const {return (PRBool) (flags & VAL_IS_ALLOCD);}
|
||||
PRBool IsValInterface() const {return (PRBool) (flags & VAL_IS_IFACE);}
|
||||
PRBool IsValArray() const {return (PRBool) (flags & VAL_IS_ARRAY);}
|
||||
PRBool IsValDOMString() const {return (PRBool) (flags & VAL_IS_DOMSTR);}
|
||||
PRBool IsPtrData() const {return 0 != (flags & PTR_IS_DATA);}
|
||||
PRBool IsValAllocated() const {return 0 != (flags & VAL_IS_ALLOCD);}
|
||||
PRBool IsValInterface() const {return 0 != (flags & VAL_IS_IFACE);}
|
||||
PRBool IsValArray() const {return 0 != (flags & VAL_IS_ARRAY);}
|
||||
PRBool IsValDOMString() const {return 0 != (flags & VAL_IS_DOMSTR);}
|
||||
|
||||
void Init(const nsXPTCMiniVariant& mv, const nsXPTType& t, PRUint8 f)
|
||||
{
|
||||
|
@ -174,11 +174,11 @@ public:
|
||||
{*(XPTParamDescriptor*)this = desc;}
|
||||
|
||||
|
||||
PRBool IsIn() const {return (PRBool) (XPT_PD_IS_IN(flags));}
|
||||
PRBool IsOut() const {return (PRBool) (XPT_PD_IS_OUT(flags));}
|
||||
PRBool IsRetval() const {return (PRBool) (XPT_PD_IS_RETVAL(flags));}
|
||||
PRBool IsShared() const {return (PRBool) (XPT_PD_IS_SHARED(flags));}
|
||||
PRBool IsDipper() const {return (PRBool) (XPT_PD_IS_DIPPER(flags));}
|
||||
PRBool IsIn() const {return 0 != (XPT_PD_IS_IN(flags));}
|
||||
PRBool IsOut() const {return 0 != (XPT_PD_IS_OUT(flags));}
|
||||
PRBool IsRetval() const {return 0 != (XPT_PD_IS_RETVAL(flags));}
|
||||
PRBool IsShared() const {return 0 != (XPT_PD_IS_SHARED(flags));}
|
||||
PRBool IsDipper() const {return 0 != (XPT_PD_IS_DIPPER(flags));}
|
||||
const nsXPTType GetType() const {return type.prefix;}
|
||||
|
||||
// NOTE: other activities on types are done via methods on nsIInterfaceInfo
|
||||
@ -195,11 +195,11 @@ public:
|
||||
nsXPTMethodInfo(const XPTMethodDescriptor& desc)
|
||||
{*(XPTMethodDescriptor*)this = desc;}
|
||||
|
||||
PRBool IsGetter() const {return (PRBool) (XPT_MD_IS_GETTER(flags) );}
|
||||
PRBool IsSetter() const {return (PRBool) (XPT_MD_IS_SETTER(flags) );}
|
||||
PRBool IsNotXPCOM() const {return (PRBool) (XPT_MD_IS_NOTXPCOM(flags));}
|
||||
PRBool IsConstructor() const {return (PRBool) (XPT_MD_IS_CTOR(flags) );}
|
||||
PRBool IsHidden() const {return (PRBool) (XPT_MD_IS_HIDDEN(flags) );}
|
||||
PRBool IsGetter() const {return 0 != (XPT_MD_IS_GETTER(flags) );}
|
||||
PRBool IsSetter() const {return 0 != (XPT_MD_IS_SETTER(flags) );}
|
||||
PRBool IsNotXPCOM() const {return 0 != (XPT_MD_IS_NOTXPCOM(flags));}
|
||||
PRBool IsConstructor() const {return 0 != (XPT_MD_IS_CTOR(flags) );}
|
||||
PRBool IsHidden() const {return 0 != (XPT_MD_IS_HIDDEN(flags) );}
|
||||
const char* GetName() const {return name;}
|
||||
uint8 GetParamCount() const {return num_args;}
|
||||
/* idx was index before I got _sick_ of the warnings on Unix, sorry jband */
|
||||
|
Loading…
x
Reference in New Issue
Block a user