From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- xpcom/base/nsrootidl.idl | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'xpcom/base/nsrootidl.idl') diff --git a/xpcom/base/nsrootidl.idl b/xpcom/base/nsrootidl.idl index 28e643e312..292ea54890 100644 --- a/xpcom/base/nsrootidl.idl +++ b/xpcom/base/nsrootidl.idl @@ -35,18 +35,21 @@ class Promise; #if 0 %} -typedef boolean bool ; -typedef octet uint8_t ; -typedef unsigned short uint16_t ; -typedef unsigned short char16_t; -typedef unsigned long uint32_t ; -typedef unsigned long long uint64_t ; -typedef long long PRTime ; -typedef short int16_t ; -typedef long int32_t ; -typedef long long int64_t ; - -typedef unsigned long nsresult ; +// [substitute] typedefs emit the underlying builtin type directly, and +// avoid polluting bindings for other languages with C++ stdint types. + +[substitute] typedef boolean bool ; +[substitute] typedef octet uint8_t ; +[substitute] typedef unsigned short uint16_t ; +[substitute] typedef unsigned long uint32_t ; +[substitute] typedef unsigned long long uint64_t ; +[substitute] typedef short int16_t ; +[substitute] typedef long int32_t ; +[substitute] typedef long long int64_t ; + + typedef unsigned short char16_t ; + typedef unsigned long nsresult ; + typedef long long PRTime ; // If we ever want to use `size_t` in scriptable interfaces, this will need to // be built into the xpidl compiler, as the size varies based on platform. -- cgit v1.2.3