mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +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 SetValIsArray() {flags |= VAL_IS_ARRAY;}
|
||||||
void SetValIsDOMString() {flags |= VAL_IS_DOMSTR;}
|
void SetValIsDOMString() {flags |= VAL_IS_DOMSTR;}
|
||||||
|
|
||||||
PRBool IsPtrData() const {return (PRBool) (flags & PTR_IS_DATA);}
|
PRBool IsPtrData() const {return 0 != (flags & PTR_IS_DATA);}
|
||||||
PRBool IsValAllocated() const {return (PRBool) (flags & VAL_IS_ALLOCD);}
|
PRBool IsValAllocated() const {return 0 != (flags & VAL_IS_ALLOCD);}
|
||||||
PRBool IsValInterface() const {return (PRBool) (flags & VAL_IS_IFACE);}
|
PRBool IsValInterface() const {return 0 != (flags & VAL_IS_IFACE);}
|
||||||
PRBool IsValArray() const {return (PRBool) (flags & VAL_IS_ARRAY);}
|
PRBool IsValArray() const {return 0 != (flags & VAL_IS_ARRAY);}
|
||||||
PRBool IsValDOMString() const {return (PRBool) (flags & VAL_IS_DOMSTR);}
|
PRBool IsValDOMString() const {return 0 != (flags & VAL_IS_DOMSTR);}
|
||||||
|
|
||||||
void Init(const nsXPTCMiniVariant& mv, const nsXPTType& t, PRUint8 f)
|
void Init(const nsXPTCMiniVariant& mv, const nsXPTType& t, PRUint8 f)
|
||||||
{
|
{
|
||||||
|
@ -174,11 +174,11 @@ public:
|
|||||||
{*(XPTParamDescriptor*)this = desc;}
|
{*(XPTParamDescriptor*)this = desc;}
|
||||||
|
|
||||||
|
|
||||||
PRBool IsIn() const {return (PRBool) (XPT_PD_IS_IN(flags));}
|
PRBool IsIn() const {return 0 != (XPT_PD_IS_IN(flags));}
|
||||||
PRBool IsOut() const {return (PRBool) (XPT_PD_IS_OUT(flags));}
|
PRBool IsOut() const {return 0 != (XPT_PD_IS_OUT(flags));}
|
||||||
PRBool IsRetval() const {return (PRBool) (XPT_PD_IS_RETVAL(flags));}
|
PRBool IsRetval() const {return 0 != (XPT_PD_IS_RETVAL(flags));}
|
||||||
PRBool IsShared() const {return (PRBool) (XPT_PD_IS_SHARED(flags));}
|
PRBool IsShared() const {return 0 != (XPT_PD_IS_SHARED(flags));}
|
||||||
PRBool IsDipper() const {return (PRBool) (XPT_PD_IS_DIPPER(flags));}
|
PRBool IsDipper() const {return 0 != (XPT_PD_IS_DIPPER(flags));}
|
||||||
const nsXPTType GetType() const {return type.prefix;}
|
const nsXPTType GetType() const {return type.prefix;}
|
||||||
|
|
||||||
// NOTE: other activities on types are done via methods on nsIInterfaceInfo
|
// NOTE: other activities on types are done via methods on nsIInterfaceInfo
|
||||||
@ -195,11 +195,11 @@ public:
|
|||||||
nsXPTMethodInfo(const XPTMethodDescriptor& desc)
|
nsXPTMethodInfo(const XPTMethodDescriptor& desc)
|
||||||
{*(XPTMethodDescriptor*)this = desc;}
|
{*(XPTMethodDescriptor*)this = desc;}
|
||||||
|
|
||||||
PRBool IsGetter() const {return (PRBool) (XPT_MD_IS_GETTER(flags) );}
|
PRBool IsGetter() const {return 0 != (XPT_MD_IS_GETTER(flags) );}
|
||||||
PRBool IsSetter() const {return (PRBool) (XPT_MD_IS_SETTER(flags) );}
|
PRBool IsSetter() const {return 0 != (XPT_MD_IS_SETTER(flags) );}
|
||||||
PRBool IsNotXPCOM() const {return (PRBool) (XPT_MD_IS_NOTXPCOM(flags));}
|
PRBool IsNotXPCOM() const {return 0 != (XPT_MD_IS_NOTXPCOM(flags));}
|
||||||
PRBool IsConstructor() const {return (PRBool) (XPT_MD_IS_CTOR(flags) );}
|
PRBool IsConstructor() const {return 0 != (XPT_MD_IS_CTOR(flags) );}
|
||||||
PRBool IsHidden() const {return (PRBool) (XPT_MD_IS_HIDDEN(flags) );}
|
PRBool IsHidden() const {return 0 != (XPT_MD_IS_HIDDEN(flags) );}
|
||||||
const char* GetName() const {return name;}
|
const char* GetName() const {return name;}
|
||||||
uint8 GetParamCount() const {return num_args;}
|
uint8 GetParamCount() const {return num_args;}
|
||||||
/* idx was index before I got _sick_ of the warnings on Unix, sorry jband */
|
/* idx was index before I got _sick_ of the warnings on Unix, sorry jband */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user