summaryrefslogtreecommitdiff
path: root/gjs
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-05-31 23:24:22 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2019-06-08 23:01:56 -0700
commita759d514260a1c65f10c64af9bdef85acf49a2fa (patch)
tree9cc0a2deae6c5efad41cae049d24dec109902129 /gjs
parent494dc062456f1883e31a8703bdf597882a334cf8 (diff)
downloadgjs-a759d514260a1c65f10c64af9bdef85acf49a2fa.tar.gz
maint: Remove G_BEGIN_DECLS and G_END_DECLS from internal files
Any C++ header files that are internal to GJS that don't need to be introspected, don't have to use G_BEGIN_DECLS and G_END_DECLS. It doesn't matter whether their symbols are mangled or not.
Diffstat (limited to 'gjs')
-rw-r--r--gjs/byteArray.h4
-rw-r--r--gjs/global.h4
-rw-r--r--gjs/importer.h4
-rw-r--r--gjs/jsapi-class.h4
-rw-r--r--gjs/jsapi-util.h4
-rw-r--r--gjs/module.h4
-rw-r--r--gjs/native.h4
-rw-r--r--gjs/profiler-private.h4
8 files changed, 0 insertions, 32 deletions
diff --git a/gjs/byteArray.h b/gjs/byteArray.h
index 6d0ea2cc..714bc7bc 100644
--- a/gjs/byteArray.h
+++ b/gjs/byteArray.h
@@ -30,8 +30,6 @@
#include "gjs/jsapi-util.h"
#include "gjs/macros.h"
-G_BEGIN_DECLS
-
GJS_JSAPI_RETURN_CONVENTION
bool gjs_define_byte_array_stuff(JSContext *context,
JS::MutableHandleObject module);
@@ -49,6 +47,4 @@ GByteArray* gjs_byte_array_get_byte_array(JS::HandleObject obj);
GJS_USE
GBytes* gjs_byte_array_get_bytes(JS::HandleObject obj);
-G_END_DECLS
-
#endif // GJS_BYTEARRAY_H_
diff --git a/gjs/global.h b/gjs/global.h
index ef3be6c3..882f6bd4 100644
--- a/gjs/global.h
+++ b/gjs/global.h
@@ -29,8 +29,6 @@
#include "gjs/macros.h"
#include "jsapi-wrapper.h"
-G_BEGIN_DECLS
-
typedef enum {
GJS_GLOBAL_SLOT_IMPORTS,
GJS_GLOBAL_SLOT_PROTOTYPE_gtype,
@@ -68,8 +66,6 @@ void gjs_set_global_slot(JSContext *context,
GjsGlobalSlot slot,
JS::Value value);
-G_END_DECLS
-
JS::Value gjs_get_global_slot(JSContext* cx, GjsGlobalSlot slot);
#endif // GJS_GLOBAL_H_
diff --git a/gjs/importer.h b/gjs/importer.h
index 359c822a..4a8ec1d4 100644
--- a/gjs/importer.h
+++ b/gjs/importer.h
@@ -30,8 +30,6 @@
#include "gjs/jsapi-util.h"
#include "gjs/macros.h"
-G_BEGIN_DECLS
-
GJS_JSAPI_RETURN_CONVENTION
JSObject *gjs_create_root_importer(JSContext *cx,
const char * const *search_path);
@@ -41,6 +39,4 @@ bool gjs_import_native_module(JSContext *cx,
JS::HandleObject importer,
const char *name);
-G_END_DECLS
-
#endif // GJS_IMPORTER_H_
diff --git a/gjs/jsapi-class.h b/gjs/jsapi-class.h
index 90767731..3a628972 100644
--- a/gjs/jsapi-class.h
+++ b/gjs/jsapi-class.h
@@ -31,8 +31,6 @@
#include "jsapi-wrapper.h"
#include "util/log.h"
-G_BEGIN_DECLS
-
GJS_JSAPI_RETURN_CONVENTION
bool gjs_init_class_dynamic(
JSContext* cx, JS::HandleObject in_object, JS::HandleObject parent_proto,
@@ -321,8 +319,6 @@ GJS_DEFINE_PROTO_FUNCS_WITH_PARENT(cname, no_parent)
return false; \
}
-G_END_DECLS
-
GJS_USE
JS::Value gjs_dynamic_property_private_slot(JSObject *accessor_obj);
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index f0d9a3f0..8ee1874b 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -165,8 +165,6 @@ template <>
struct GCPolicy<GjsAutoParam> : public IgnoreGCPolicy<GjsAutoParam> {};
} // namespace JS
-G_BEGIN_DECLS
-
/* Flags that should be set on properties exported from native code modules.
* Basically set these on API, but do NOT set them on data.
*
@@ -292,8 +290,6 @@ bool gjs_unichar_from_string (JSContext *context,
void gjs_maybe_gc (JSContext *context);
void gjs_gc_if_needed(JSContext *cx);
-G_END_DECLS
-
GJS_USE
size_t gjs_unix_shebang_len(const std::u16string& script,
unsigned* start_line_number);
diff --git a/gjs/module.h b/gjs/module.h
index 06dd7dea..717685ca 100644
--- a/gjs/module.h
+++ b/gjs/module.h
@@ -29,8 +29,6 @@
#include "gjs/macros.h"
#include "jsapi-wrapper.h"
-G_BEGIN_DECLS
-
GJS_JSAPI_RETURN_CONVENTION
JSObject *
gjs_module_import(JSContext *cx,
@@ -39,6 +37,4 @@ gjs_module_import(JSContext *cx,
const char *name,
GFile *file);
-G_END_DECLS
-
#endif // GJS_MODULE_H_
diff --git a/gjs/native.h b/gjs/native.h
index 72b675f0..0d2f2b1a 100644
--- a/gjs/native.h
+++ b/gjs/native.h
@@ -30,8 +30,6 @@
#include "gjs/jsapi-util.h"
#include "gjs/macros.h"
-G_BEGIN_DECLS
-
typedef bool (* GjsDefineModuleFunc) (JSContext *context,
JS::MutableHandleObject module_out);
@@ -49,6 +47,4 @@ bool gjs_load_native_module(JSContext *cx,
const char *name,
JS::MutableHandleObject module_out);
-G_END_DECLS
-
#endif // GJS_NATIVE_H_
diff --git a/gjs/profiler-private.h b/gjs/profiler-private.h
index d2c1d424..e9a3b914 100644
--- a/gjs/profiler-private.h
+++ b/gjs/profiler-private.h
@@ -30,8 +30,6 @@
#include "gjs/macros.h"
#include "profiler.h"
-G_BEGIN_DECLS
-
GjsProfiler *_gjs_profiler_new(GjsContext *context);
void _gjs_profiler_free(GjsProfiler *self);
@@ -44,6 +42,4 @@ bool _gjs_profiler_is_running(GjsProfiler *self);
void _gjs_profiler_setup_signals(GjsProfiler *self, GjsContext *context);
-G_END_DECLS
-
#endif // GJS_PROFILER_PRIVATE_H_