[vala] Use basename of C file in line directive
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Use basename of C file in line directive
- Date: Wed, 8 Apr 2009 12:49:54 -0400 (EDT)
commit 5a0687f6dc8b224e54b72a2699bebca418582d7d
Author: Jürg Billeter <j bitron ch>
Date: Wed Apr 8 18:49:13 2009 +0200
Use basename of C file in line directive
---
ccode/valaccodewriter.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ccode/valaccodewriter.vala b/ccode/valaccodewriter.vala
index ff2ead6..26326fb 100644
--- a/ccode/valaccodewriter.vala
+++ b/ccode/valaccodewriter.vala
@@ -119,7 +119,7 @@ public class Vala.CCodeWriter {
using_line_directive = true;
} else if (using_line_directive) {
// no corresponding Vala line, emit line directive for C line
- write_string ("#line %d \"%s\"".printf (current_line_number + 1, filename));
+ write_string ("#line %d \"%s\"".printf (current_line_number + 1, Path.get_basename (filename)));
write_newline ();
using_line_directive = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]