[vala] Rename _main to _vala_main to avoid conflicts
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Rename _main to _vala_main to avoid conflicts
- Date: Sun, 21 Mar 2010 22:13:48 +0000 (UTC)
commit 45600dbbc6bba9e252dbae27320c3b6942c30420
Author: Luca Bruno <lethalman88 gmail com>
Date: Mon Mar 1 09:27:01 2010 +0100
Rename _main to _vala_main to avoid conflicts
Fixes bug 582540.
vala/valamethod.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index 17775ab..979dcad 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -367,7 +367,7 @@ public class Vala.Method : Member {
public virtual string get_default_cname () {
if (name == "main" && parent_symbol.name == null) {
// avoid conflict with generated main function
- return "_main";
+ return "_vala_main";
} else if (name.has_prefix ("_")) {
return "_%s%s".printf (parent_symbol.get_lower_case_cprefix (), name.offset (1));
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]