diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2022-07-26 00:13:56 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2022-08-07 16:42:03 -0700 |
commit | 60f0798ec3b5e194ce5495f5089731dd4c35ffaa (patch) | |
tree | 92a0d4564f7334d8c64df646fa6665ab7fe91024 | |
parent | 853d32d367e395b9c18b9c067a966192cdbe10ce (diff) | |
download | gjs-60f0798ec3b5e194ce5495f5089731dd4c35ffaa.tar.gz |
js: Update IWYU comments for jsapi.h
Since more functions will move out of jsapi.h in the future, it'll be
useful to know why exactly we are including it.
-rw-r--r-- | gi/arg-cache.cpp | 2 | ||||
-rw-r--r-- | gi/cwrapper.h | 4 | ||||
-rw-r--r-- | gi/fundamental.cpp | 2 | ||||
-rw-r--r-- | gjs/engine.cpp | 2 | ||||
-rw-r--r-- | gjs/global.cpp | 2 | ||||
-rw-r--r-- | modules/cairo-path.cpp | 2 | ||||
-rw-r--r-- | modules/console.cpp | 2 | ||||
-rw-r--r-- | modules/print.cpp | 2 | ||||
-rw-r--r-- | test/gjs-tests.cpp | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp index 7c269468..ce814d6b 100644 --- a/gi/arg-cache.cpp +++ b/gi/arg-cache.cpp @@ -26,7 +26,7 @@ #include <js/Utility.h> // for UniqueChars #include <js/Value.h> #include <js/experimental/TypedData.h> -#include <jsapi.h> // for JS_TypeOfValue +#include <jsapi.h> // for InformalValueTypeName, JS_TypeOfValue #include <jsfriendapi.h> // for JS_GetObjectFunction #include <jspubtd.h> // for JSTYPE_FUNCTION diff --git a/gi/cwrapper.h b/gi/cwrapper.h index cc13d6d6..71198df0 100644 --- a/gi/cwrapper.h +++ b/gi/cwrapper.h @@ -23,8 +23,8 @@ #include <js/RootingAPI.h> #include <js/TypeDecls.h> #include <js/Value.h> -#include <jsapi.h> -#include <jspubtd.h> +#include <jsapi.h> // for JSFUN_CONSTRUCTOR, JS_NewPlainObject, JS_GetFuncti... +#include <jspubtd.h> // for JSProto_Object, JSProtoKey, JSProto_TypeError #include "gjs/jsapi-util.h" #include "gjs/macros.h" diff --git a/gi/fundamental.cpp b/gi/fundamental.cpp index 9705ca9c..d2f591e3 100644 --- a/gi/fundamental.cpp +++ b/gi/fundamental.cpp @@ -17,7 +17,7 @@ #include <js/RootingAPI.h> #include <js/TypeDecls.h> #include <js/Utility.h> // for UniqueChars -#include <jsapi.h> // for InformalValueTypeName +#include <jsapi.h> // for InformalValueTypeName, JS_NewObjectWithGivenP... #include <mozilla/HashTable.h> #include "gi/arg-inl.h" diff --git a/gjs/engine.cpp b/gjs/engine.cpp index e7a53fb6..d0f05e7d 100644 --- a/gjs/engine.cpp +++ b/gjs/engine.cpp @@ -25,7 +25,7 @@ #include <js/TypeDecls.h> #include <js/Warnings.h> #include <js/experimental/SourceHook.h> -#include <jsapi.h> // for InitSelfHostedCode, JS_Destr... +#include <jsapi.h> // for JS_SetGlobalJitCompilerOption #include <mozilla/UniquePtr.h> #include "gjs/context-private.h" diff --git a/gjs/global.cpp b/gjs/global.cpp index 848b4156..84addc1b 100644 --- a/gjs/global.cpp +++ b/gjs/global.cpp @@ -30,7 +30,7 @@ #include <js/SourceText.h> #include <js/TypeDecls.h> #include <js/Utility.h> // for UniqueChars -#include <jsapi.h> // for AutoSaveExceptionState, ... +#include <jsapi.h> // for JS_IdToValue, JS_InitReflectParse #include "gjs/atoms.h" #include "gjs/context-private.h" diff --git a/modules/cairo-path.cpp b/modules/cairo-path.cpp index b2762f5f..b6b0726c 100644 --- a/modules/cairo-path.cpp +++ b/modules/cairo-path.cpp @@ -11,7 +11,7 @@ #include <js/PropertySpec.h> #include <js/RootingAPI.h> #include <js/TypeDecls.h> -#include <jsapi.h> +#include <jsapi.h> // for JS_NewObjectWithGivenProto #include "modules/cairo-private.h" diff --git a/modules/console.cpp b/modules/console.cpp index 2f4e1961..228ee413 100644 --- a/modules/console.cpp +++ b/modules/console.cpp @@ -42,7 +42,7 @@ #include <js/Value.h> #include <js/ValueArray.h> #include <js/Warnings.h> -#include <jsapi.h> // for JS_IsExceptionPending, Exce... +#include <jsapi.h> // for JS_NewPlainObject #include "gjs/atoms.h" #include "gjs/context-private.h" diff --git a/modules/print.cpp b/modules/print.cpp index c861da49..7e0504f8 100644 --- a/modules/print.cpp +++ b/modules/print.cpp @@ -19,7 +19,7 @@ #include <js/TypeDecls.h> #include <js/Utility.h> // for UniqueChars #include <js/Value.h> -#include <jsapi.h> +#include <jsapi.h> // for JS_NewPlainObject #include "gjs/global.h" #include "gjs/jsapi-util.h" diff --git a/test/gjs-tests.cpp b/test/gjs-tests.cpp index 852ee11d..49011bba 100644 --- a/test/gjs-tests.cpp +++ b/test/gjs-tests.cpp @@ -27,7 +27,7 @@ #include <js/TypeDecls.h> #include <js/Utility.h> // for UniqueChars #include <js/Value.h> -#include <jsapi.h> +#include <jsapi.h> // for JS_GetClassObject #include <jspubtd.h> // for JSProto_Number #include <mozilla/Span.h> // for MakeStringSpan |