diff options
author | Philip Chimento <philip@endlessm.com> | 2016-09-01 18:41:38 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2016-09-27 19:29:00 -0700 |
commit | e26191a137fc671b5e8fc8c18d5d6103edaa8b35 (patch) | |
tree | 71da4541f7d571cafdcfd58f4dc21833de48508b /modules/system.h | |
parent | b136107eef97db27b12fafe74e86fe29f8ebd772 (diff) | |
download | gjs-e26191a137fc671b5e8fc8c18d5d6103edaa8b35.tar.gz |
js: Discontinue usage of JSBool
In mozjs31, JSBool and its values JS_TRUE and JS_FALSE are discontinued
in favor of regular C++ bool, true, and false. In order to ease porting
to mozjs31, we switch to C++ booleans everywhere.
Almost everywhere, that is. In some cases bool *, or function pointers
with bool return types, will not automatically be cast. We therefore leave
a few instances of JSBool in the code. These will be removed when the
actual port to mozjs31 happens.
Fixes a few formatting glitches in lines of code that were touched
anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=742249
Diffstat (limited to 'modules/system.h')
-rw-r--r-- | modules/system.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system.h b/modules/system.h index 608de0e5..f6984ab9 100644 --- a/modules/system.h +++ b/modules/system.h @@ -31,8 +31,8 @@ G_BEGIN_DECLS -JSBool gjs_js_define_system_stuff (JSContext *context, - JSObject **module_out); +bool gjs_js_define_system_stuff (JSContext *context, + JSObject **module_out); G_END_DECLS |