diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /xpcom/base/nsrootidl.idl | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xpcom/base/nsrootidl.idl')
-rw-r--r-- | xpcom/base/nsrootidl.idl | 27 |
1 files changed, 15 insertions, 12 deletions
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. |