[vala] Make C code modules and declaration space public
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Make C code modules and declaration space public
- Date: Fri, 16 Apr 2010 08:36:29 +0000 (UTC)
commit 39dfb29b2ae1b8b4a0623f25bd0c0c935c17e9f2
Author: Luca Bruno <lethalman88 gmail com>
Date: Tue Apr 13 23:06:11 2010 +0200
Make C code modules and declaration space public
Fixes bug 615775.
codegen/valaccodearraymodule.vala | 2 +-
codegen/valaccodeassignmentmodule.vala | 2 +-
codegen/valaccodebasemodule.vala | 2 +-
codegen/valaccodecontrolflowmodule.vala | 2 +-
codegen/valaccodedeclarationspace.vala | 2 +-
codegen/valaccodedelegatemodule.vala | 2 +-
codegen/valaccodememberaccessmodule.vala | 2 +-
codegen/valaccodemethodcallmodule.vala | 2 +-
codegen/valaccodemethodmodule.vala | 2 +-
codegen/valaccodestructmodule.vala | 2 +-
codegen/valadbusclientmodule.vala | 2 +-
codegen/valadbusmodule.vala | 6 +++---
codegen/valadbusservermodule.vala | 6 +++---
codegen/valagasyncmodule.vala | 2 +-
codegen/valagerrormodule.vala | 2 +-
codegen/valagobjectmodule.vala | 2 +-
codegen/valagsignalmodule.vala | 2 +-
codegen/valagtypemodule.vala | 2 +-
18 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index e8e125f..f2ad1ed 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -23,7 +23,7 @@
*/
-internal class Vala.CCodeArrayModule : CCodeMethodCallModule {
+public class Vala.CCodeArrayModule : CCodeMethodCallModule {
int next_array_dup_id = 0;
int next_array_add_id = 0;
diff --git a/codegen/valaccodeassignmentmodule.vala b/codegen/valaccodeassignmentmodule.vala
index c4bb12c..a4054de 100644
--- a/codegen/valaccodeassignmentmodule.vala
+++ b/codegen/valaccodeassignmentmodule.vala
@@ -27,7 +27,7 @@ using GLib;
/**
* The link between an assignment and generated code.
*/
-internal class Vala.CCodeAssignmentModule : CCodeMemberAccessModule {
+public class Vala.CCodeAssignmentModule : CCodeMemberAccessModule {
public CCodeAssignmentModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index d76aefc..f5c8381 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -26,7 +26,7 @@
/**
* Code visitor generating C Code.
*/
-internal class Vala.CCodeBaseModule : CCodeModule {
+public class Vala.CCodeBaseModule : CCodeModule {
public CodeContext context { get; set; }
public Symbol root_symbol;
diff --git a/codegen/valaccodecontrolflowmodule.vala b/codegen/valaccodecontrolflowmodule.vala
index b8346e2..ee4a577 100644
--- a/codegen/valaccodecontrolflowmodule.vala
+++ b/codegen/valaccodecontrolflowmodule.vala
@@ -24,7 +24,7 @@
using GLib;
-internal class Vala.CCodeControlFlowModule : CCodeMethodModule {
+public class Vala.CCodeControlFlowModule : CCodeMethodModule {
public CCodeControlFlowModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valaccodedeclarationspace.vala b/codegen/valaccodedeclarationspace.vala
index e563ed2..4ff7640 100644
--- a/codegen/valaccodedeclarationspace.vala
+++ b/codegen/valaccodedeclarationspace.vala
@@ -21,7 +21,7 @@
*/
-class Vala.CCodeDeclarationSpace {
+public class Vala.CCodeDeclarationSpace {
public bool is_header { get; set; }
Set<string> declarations = new HashSet<string> (str_hash, str_equal);
diff --git a/codegen/valaccodedelegatemodule.vala b/codegen/valaccodedelegatemodule.vala
index bcb62a2..9a0c544 100644
--- a/codegen/valaccodedelegatemodule.vala
+++ b/codegen/valaccodedelegatemodule.vala
@@ -26,7 +26,7 @@
/**
* The link between an assignment and generated code.
*/
-internal class Vala.CCodeDelegateModule : CCodeArrayModule {
+public class Vala.CCodeDelegateModule : CCodeArrayModule {
public CCodeDelegateModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index 386d4d2..f21113e 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -24,7 +24,7 @@
using GLib;
-internal class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
+public class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
public CCodeMemberAccessModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 7b91e79..752a136 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -24,7 +24,7 @@
using GLib;
-internal class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
+public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
public CCodeMethodCallModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 605ce8e..553c25c 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -26,7 +26,7 @@ using GLib;
/**
* The link between a method and generated code.
*/
-internal class Vala.CCodeMethodModule : CCodeStructModule {
+public class Vala.CCodeMethodModule : CCodeStructModule {
public CCodeMethodModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valaccodestructmodule.vala b/codegen/valaccodestructmodule.vala
index 6c2dabf..7aceec0 100644
--- a/codegen/valaccodestructmodule.vala
+++ b/codegen/valaccodestructmodule.vala
@@ -24,7 +24,7 @@
using GLib;
-internal class Vala.CCodeStructModule : CCodeBaseModule {
+public class Vala.CCodeStructModule : CCodeBaseModule {
public CCodeStructModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valadbusclientmodule.vala b/codegen/valadbusclientmodule.vala
index e59d421..63bed09 100644
--- a/codegen/valadbusclientmodule.vala
+++ b/codegen/valadbusclientmodule.vala
@@ -27,7 +27,7 @@ using GLib;
/**
* The link between a dynamic method and generated code.
*/
-internal class Vala.DBusClientModule : DBusModule {
+public class Vala.DBusClientModule : DBusModule {
int dynamic_property_id;
public DBusClientModule (CCodeGenerator codegen, CCodeModule? next) {
diff --git a/codegen/valadbusmodule.vala b/codegen/valadbusmodule.vala
index 0a3a10c..f7b8d1f 100644
--- a/codegen/valadbusmodule.vala
+++ b/codegen/valadbusmodule.vala
@@ -20,7 +20,7 @@
* Jürg Billeter <j bitron ch>
*/
-internal class Vala.DBusModule : GAsyncModule {
+public class Vala.DBusModule : GAsyncModule {
struct BasicTypeInfo {
public weak string signature;
public weak string type_name;
@@ -70,7 +70,7 @@ internal class Vala.DBusModule : GAsyncModule {
return dbus_value;
}
- public string? get_dbus_name (TypeSymbol symbol) {
+ public static string? get_dbus_name (TypeSymbol symbol) {
var dbus = symbol.get_attribute ("DBus");
if (dbus == null) {
return null;
@@ -79,7 +79,7 @@ internal class Vala.DBusModule : GAsyncModule {
return dbus.get_string ("name");
}
- public string get_dbus_name_for_member (Symbol symbol) {
+ public static string get_dbus_name_for_member (Symbol symbol) {
var dbus = symbol.get_attribute ("DBus");
if (dbus != null && dbus.has_argument ("name")) {
return dbus.get_string ("name");
diff --git a/codegen/valadbusservermodule.vala b/codegen/valadbusservermodule.vala
index 1b7a28e..9f565b7 100644
--- a/codegen/valadbusservermodule.vala
+++ b/codegen/valadbusservermodule.vala
@@ -27,12 +27,12 @@ using GLib;
/**
* The link between a dynamic method and generated code.
*/
-internal class Vala.DBusServerModule : DBusClientModule {
+public class Vala.DBusServerModule : DBusClientModule {
public DBusServerModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
- bool is_dbus_visible (CodeNode node) {
+ public static bool is_dbus_visible (CodeNode node) {
var dbus_attribute = node.get_attribute ("DBus");
if (dbus_attribute != null
&& dbus_attribute.has_argument ("visible")
@@ -43,7 +43,7 @@ internal class Vala.DBusServerModule : DBusClientModule {
return true;
}
- string dbus_result_name (Method m) {
+ public static string dbus_result_name (Method m) {
var dbus_attribute = m.get_attribute ("DBus");
if (dbus_attribute != null
&& dbus_attribute.has_argument ("result")) {
diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala
index ae3c105..58ca887 100644
--- a/codegen/valagasyncmodule.vala
+++ b/codegen/valagasyncmodule.vala
@@ -22,7 +22,7 @@
using GLib;
-internal class Vala.GAsyncModule : GSignalModule {
+public class Vala.GAsyncModule : GSignalModule {
public GAsyncModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valagerrormodule.vala b/codegen/valagerrormodule.vala
index 1dc47fc..36c63ec 100644
--- a/codegen/valagerrormodule.vala
+++ b/codegen/valagerrormodule.vala
@@ -23,7 +23,7 @@
using GLib;
-internal class Vala.GErrorModule : CCodeDelegateModule {
+public class Vala.GErrorModule : CCodeDelegateModule {
private int current_try_id = 0;
private int next_try_id = 0;
private bool is_in_catch = false;
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala
index e1c6213..bd527fd 100644
--- a/codegen/valagobjectmodule.vala
+++ b/codegen/valagobjectmodule.vala
@@ -23,7 +23,7 @@
*/
-internal class Vala.GObjectModule : GTypeModule {
+public class Vala.GObjectModule : GTypeModule {
int dynamic_property_id;
int signal_wrapper_id;
diff --git a/codegen/valagsignalmodule.vala b/codegen/valagsignalmodule.vala
index a6d0bb2..4b17a81 100644
--- a/codegen/valagsignalmodule.vala
+++ b/codegen/valagsignalmodule.vala
@@ -23,7 +23,7 @@
*/
-internal class Vala.GSignalModule : GObjectModule {
+public class Vala.GSignalModule : GObjectModule {
public GSignalModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 45ff602..d1c0be0 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -23,7 +23,7 @@
*/
-internal class Vala.GTypeModule : GErrorModule {
+public class Vala.GTypeModule : GErrorModule {
public GTypeModule (CCodeGenerator codegen, CCodeModule? next) {
base (codegen, next);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]