Commit 8a7e098c authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix global constants add NoArrayLength attribute to Process functions

2007-02-04  Jürg Billeter  <j@bitron.ch>

	* vala/valaconstant.vala: fix global constants
	* vapi/glib-2.0.vala: add NoArrayLength attribute to Process functions

svn path=/trunk/; revision=187
parent 79b6f82e
2007-02-04 Jürg Billeter <j@bitron.ch>
* vala/valaconstant.vala: fix global constants
* vapi/glib-2.0.vala: add NoArrayLength attribute to Process functions
2007-02-04 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: use correct type cname in array creation
......
......@@ -93,7 +93,12 @@ public class Vala.Constant : Member, Lockable {
cname = "%s_%s".printf (t.get_upper_case_cname (null), name);
} else {
var ns = (Namespace) symbol.parent_symbol.node;
cname = "%s%s".printf (ns.get_cprefix ().up (), name);
if (ns == null) {
// global constant
cname = name;
} else {
cname = "%s%s".printf (ns.get_cprefix ().up (), name);
}
}
}
return cname;
......
......@@ -778,8 +778,11 @@ namespace GLib {
[CCode (cprefix = "g_")]
public struct Process {
[NoArrayLength ()]
public static bool spawn_async_with_pipes (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, Pid child_pid, ref int standard_input, ref int standard_output, ref int standard_error, out Error error);
[NoArrayLength ()]
public static bool spawn_async (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, Pid child_pid, out Error error);
[NoArrayLength ()]
public static bool spawn_sync (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, out string standard_output, out string standard_error, ref int exit_status, out Error error);
public static bool spawn_command_line_async (string! command_line, out Error error);
public static bool spawn_command_line_sync (string! command_line, out string standard_output, out string standard_error, ref int exit_status, out Error error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment