[vala: 2/8] small fixes for invocation with --internal-vapi
- From: Robert James Taylor <robtaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala: 2/8] small fixes for invocation with --internal-vapi
- Date: Wed, 8 Apr 2009 14:02:25 -0400 (EDT)
commit 9871130dff57b06f0b6ddc6c8d8d5ac41bcae7fb
Author: Rob Taylor <rob taylor codethink co uk>
Date: Tue Apr 7 16:56:33 2009 +0100
small fixes for invocation with --internal-vapi
---
compiler/valacompiler.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 50153e0..001fea2 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -76,7 +76,7 @@ class Vala.Compiler {
{ "ccode", 'C', 0, OptionArg.NONE, ref ccode_only, "Output C code", null },
{ "header", 'H', 0, OptionArg.FILENAME, ref header_filename, "Output C header file", "FILE" },
{ "internal-header", 'h', 0, OptionArg.FILENAME, ref internal_header_filename, "Output internal C header file", "FILE" },
- { "internal-vapi", 0, 0, OptionArg.FILENAME, ref target_glib, "Output vapi with internal api", "FILE" },
+ { "internal-vapi", 0, 0, OptionArg.FILENAME, ref internal_vapi_filename, "Output vapi with internal api", "FILE" },
{ "compile", 'c', 0, OptionArg.NONE, ref compile_only, "Compile but do not link", null },
{ "output", 'o', 0, OptionArg.FILENAME, ref output, "Place output in file FILE", "FILE" },
{ "debug", 'g', 0, OptionArg.NONE, ref debug, "Produce debug information", null },
@@ -340,7 +340,7 @@ class Vala.Compiler {
}
if (internal_vapi_filename != null) {
var interface_writer = new CodeWriter (false, true);
- string vapi_filename = "%s.vapi".printf (internal_vapi_filename);
+ string vapi_filename = internal_vapi_filename;
// put .vapi file in current directory unless -d has been explicitly specified
if (directory != null && !Path.is_absolute (vapi_filename)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]