[vala/0.50] codegen: Mark entry point method implementation "_vala_main" as static
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.50] codegen: Mark entry point method implementation "_vala_main" as static
- Date: Wed, 19 May 2021 07:18:41 +0000 (UTC)
commit 99843890aee9f8e1b8c038ca064f167781a17fab
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun May 9 21:28:25 2021 +0200
codegen: Mark entry point method implementation "_vala_main" as static
Thanks to Al Thomas
codegen/valaccodemethodmodule.vala | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 3dbc02b52..1a197e11a 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -177,6 +177,10 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
function.modifiers |= CCodeModifiers.INTERNAL;
}
+ if (m.entry_point) {
+ function.modifiers |= CCodeModifiers.STATIC;
+ }
+
if (m.version.deprecated) {
if (context.profile == Profile.GOBJECT) {
decl_space.add_include ("glib.h");
@@ -423,6 +427,10 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
function.modifiers |= CCodeModifiers.INLINE;
}
+ if (m.entry_point) {
+ function.modifiers |= CCodeModifiers.STATIC;
+ }
+
var cparam_map = new HashMap<int,CCodeParameter> (direct_hash, direct_equal);
generate_cparameters (m, cfile, cparam_map, function);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]