Skip to content

Commit 6c88893

Browse files
committed
Add static declaration in C functions
1 parent d4d0ffb commit 6c88893

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/language_gdnative.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static void lps_instance_notification(godot_pluginscript_instance_data *data, in
272272
}
273273

274274
// In-editor callbacks
275-
godot_string lps_get_template_source_code(godot_pluginscript_language_data *data, const godot_string *class_name, const godot_string *base_class_name) {
275+
static godot_string lps_get_template_source_code(godot_pluginscript_language_data *data, const godot_string *class_name, const godot_string *base_class_name) {
276276
godot_string ret;
277277
hgdn_core_api->godot_string_new(&ret);
278278
LPS_PUSH_CALLBACK(lps_L, "get_template_source_code");
@@ -285,7 +285,7 @@ godot_string lps_get_template_source_code(godot_pluginscript_language_data *data
285285
return ret;
286286
}
287287

288-
godot_bool lps_validate(godot_pluginscript_language_data *data, const godot_string *script, int *line_error, int *col_error, godot_string *test_error, const godot_string *path, godot_pool_string_array *functions) {
288+
static godot_bool lps_validate(godot_pluginscript_language_data *data, const godot_string *script, int *line_error, int *col_error, godot_string *test_error, const godot_string *path, godot_pool_string_array *functions) {
289289
LPS_PUSH_CALLBACK(lps_L, "validate");
290290
lua_pushlightuserdata(lps_L, (void *) script);
291291
lua_pushlightuserdata(lps_L, (void *) line_error);
@@ -302,7 +302,7 @@ godot_bool lps_validate(godot_pluginscript_language_data *data, const godot_stri
302302
return success;
303303
}
304304

305-
godot_string lps_make_function(godot_pluginscript_language_data *data, const godot_string *class_name, const godot_string *name, const godot_pool_string_array *args) {
305+
static godot_string lps_make_function(godot_pluginscript_language_data *data, const godot_string *class_name, const godot_string *name, const godot_pool_string_array *args) {
306306
godot_string ret;
307307
hgdn_core_api->godot_string_new(&ret);
308308
LPS_PUSH_CALLBACK(lps_L, "make_function");
@@ -316,7 +316,7 @@ godot_string lps_make_function(godot_pluginscript_language_data *data, const god
316316
return ret;
317317
}
318318

319-
void lps_register_in_editor_callbacks(godot_pluginscript_language_desc *desc) {
319+
static void lps_register_in_editor_callbacks(godot_pluginscript_language_desc *desc) {
320320
desc->get_template_source_code = &lps_get_template_source_code;
321321
desc->validate = &lps_validate;
322322
desc->make_function = &lps_make_function;

0 commit comments

Comments
 (0)