summaryrefslogtreecommitdiff
path: root/gi/value.cpp
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-11-23 23:07:21 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2020-01-19 15:40:14 -0800
commitd783d40c8162ed94254bdb3762592cdbece6e5ba (patch)
tree053d64e7536380059c66169705f1a4cb01a86408 /gi/value.cpp
parenta3c8f4caa973f967d6f74c2ab5e94ab840d015a2 (diff)
downloadgjs-d783d40c8162ed94254bdb3762592cdbece6e5ba.tar.gz
js: Remove jsapi-wrapper.h
With SpiderMonkey 68, it's no longer necessary to mark SpiderMonkey header files as system headers, and it's also no longer necessary to include <js-config.h> before any other header files, as SpiderMonkey has sorted that out internally. We remove jsapi-wrapper.h and define DEBUG directly in config.h instead of indirectly in jsapi-wrapper.h via HAVE_SPIDERMONKEY_DEBUG. This should reduce compile time, on average, because in most .h files we now only need to include <js/TypeDecls.h>.
Diffstat (limited to 'gi/value.cpp')
-rw-r--r--gi/value.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/gi/value.cpp b/gi/value.cpp
index e680d36a..8059d0b6 100644
--- a/gi/value.cpp
+++ b/gi/value.cpp
@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
+#include <config.h>
+
#include <limits.h> // for SCHAR_MAX, SCHAR_MIN, UCHAR_MAX
#include <stdint.h>
#include <string.h> // for memset
@@ -29,8 +31,15 @@
#include <glib-object.h>
#include <glib.h>
-#include "gjs/jsapi-wrapper.h"
-#include "mozilla/Unused.h"
+#include <js/CharacterEncoding.h>
+#include <js/Conversions.h>
+#include <js/GCVector.h> // for RootedVector
+#include <js/RootingAPI.h>
+#include <js/TypeDecls.h>
+#include <js/Utility.h> // for UniqueChars
+#include <js/Value.h>
+#include <jsapi.h> // for InformalValueTypeName, JS_ClearPendingException
+#include <mozilla/Unused.h>
#include "gi/arg.h"
#include "gi/boxed.h"