tbsaunde pointed me to https://bugzilla.mozilla.org/show_bug.cgi?id=780203, where he's proposing we add stdint types to xpidl. I'd be happy to deprecate PRUintX in favor of stdint types. :)
On Fri, Aug 3, 2012 at 11:35 AM, Justin Lebar <[email protected]> wrote: > Do we have a preference between using explicitly-sized arguments (e.g. > PRInt32) and implicitly-sized arguments (e.g. long) in XPIDL? > > It seems to me that |long| is a particularly bad typename, because it > means "32-bit integer" in IDL and means "64-bit integer" in C on many > platforms. "long" also means 64-bit integer in Java, for what little > it's worth. > > Is there any reason for us not to use PRInt32 instead of |long| in new > code? Should reviewers r- patches which use PRInt32 and friends? If > so, can we simply disallow PRInt32 and company, so there's no > temptation? > > (I know WebIDL uses |long|, which is a damn shame. But XPIDL is > already so different from WebIDL, I'm not sure that consistency with > WebIDL is a prime concern here.) > > -Justin _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

