* removed stuff from the idl file that caused warnings

* fixed a typo that caused a warning (nsIsupports)
* fixed values of constants that caused warnings
* use a macro instead of assinging a long long value directly

r=jband
This commit is contained in:
cbegle%netscape.com 1999-10-13 00:11:21 +00:00
parent 9bb07e9080
commit ff236233af
4 changed files with 4 additions and 55 deletions

View File

@ -51,56 +51,5 @@ interface nsIXPCTestConst : nsISupports {
const short shortConst = 254;
const long longConst = 1234567890;
const long long longLongConst= 12345678901234567890;
const unsigned short unsignedShortConst = 255;
const unsigned long unsignedLongConst = 123456789;
const unsigned long long unsignedLongLongConst = 123456789;
const long longExpressionConst = 500*500;
const PRUint8 prUint8Const = 255;
const PRUint16 prUint16Const = 65535;
const PRUint32 prUint32Const = 4294967295;
const PRUint64 prUint64Const = 18446744073709552000;
/*
// built-in types
const boolean booleanConstTrue = "TRUE";
const boolean booleanConstFalse = "FALSE";
//const octet octetConst = 255;
const float floatConst = 0.123456789;
const double doubleConst = -0.123456789;
const char charConst = 'Z';
const wchar wcharConst = 'B';
const string stringConst = "XPConnect const string";
const wstring wstringConst= "XPConnect const wstring";
*/
/*
// PRTypes
const PRBool prBoolConst = TRUE;
const PRUnichar prUnicharConst = 'X';
const PRInt16 prInt16Const = 255;
const PRInt32 prInt32Const = 65535;
const PRInt64 prInt64Const = 4294967295;
const PRTime prTimeConst = 18446744073709552000;
const nsrefcnt nsrefcntConst = 4294967295;
const nsresult nsresultConst = 4294967295;
*/
// natives
/*
[noscript] const native voidStar voidStarConst=
[noscript] const native voidRef voidRefConst =
[noscript] const native nsIDRef nsIDRefConst =
[noscript] const native nsIIDRef nsIIDRefConst=
[noscript] const native nsCIDRef nsCIDRefConst=
[noscript] const native nsIDPtr nsIDPtrConst =
[noscript] const native nsIIDPtr nsIIDPtrConst=
[noscript] const native nsCIDPtr nsCIDPtrConst=
[noscript] const native nsQIResult nsQIResultConst=
*/
};

View File

@ -59,7 +59,7 @@ interface nsIXPCTestChild3 : nsIXPCTestParentOne {
};
[scriptable, uuid(a6d22202-622b-11d3-82ef-0060b0eb596f)]
interface nsIXPCTestChild4 : nsIsupports {
interface nsIXPCTestChild4 : nsISupports {
attribute string ChildAttribute;
string ChildMethod();
};

View File

@ -64,7 +64,7 @@ xpcTestObjectReadOnly :: xpcTestObjectReadOnly() {
boolProperty = true;
shortProperty = 32767;
longProperty = 9223372036854776000;
longProperty = 2147483647;
charProperty = 'X';
const char _id[] = "a68cc6a6-6552-11d3-82ef-0060b0eb596f";
@ -165,7 +165,7 @@ xpcTestObjectReadWrite :: xpcTestObjectReadWrite() {
boolProperty = true;
shortProperty = 32767;
longProperty = 9223372036854776;
longProperty = 2147483647;
charProperty = 'X';
const char s[] = "XPConnect Read-Writable String";

View File

@ -125,7 +125,7 @@ NS_IMETHODIMP xpcTestOut :: GetLongLong(PRInt64 ll){
return NS_OK;
};
NS_IMETHODIMP xpcTestOut :: SetLongLong(PRInt64 ll){
longProperty = ll;
JSLL_L2I(longProperty, ll);
return NS_OK;
};
NS_IMETHODIMP xpcTestOut :: GetUnsignedShort(PRUint16 *us){