vala r855 - in trunk: . vala



Author: juergbi
Date: Fri Jan 18 19:38:23 2008
New Revision: 855
URL: http://svn.gnome.org/viewvc/vala?rev=855&view=rev

Log:
2008-01-18  Juerg Billeter  <j bitron ch>

	* vala/valacodenode.vala, vala/valasemanticanalyzer.vala: don't output
	  full source file path in generated C code


Modified:
   trunk/ChangeLog
   trunk/vala/valacodenode.vala
   trunk/vala/valasemanticanalyzer.vala

Modified: trunk/vala/valacodenode.vala
==============================================================================
--- trunk/vala/valacodenode.vala	(original)
+++ trunk/vala/valacodenode.vala	Fri Jan 18 19:38:23 2008
@@ -1,6 +1,6 @@
 /* valacodenode.vala
  *
- * Copyright (C) 2006-2007  JÃrg Billeter
+ * Copyright (C) 2006-2008  JÃrg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -55,7 +55,7 @@
 		set {
 			if (source_reference != null) {
 				value.line = new CCodeLineDirective (
-					Path.build_filename (Environment.get_current_dir (), source_reference.file.filename),
+					Path.get_basename (source_reference.file.filename),
 					source_reference.first_line);
 			}
 

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Fri Jan 18 19:38:23 2008
@@ -1652,7 +1652,7 @@
 			var format_arg = prev_arg;
 			if (format_arg is LiteralExpression) {
 				var format_lit = (StringLiteral) ((LiteralExpression) format_arg).literal;
-				format_lit.value = "\"%s:%d: %s".printf (expr.source_reference.file.filename, expr.source_reference.first_line, format_lit.value.offset (1));
+				format_lit.value = "\"%s:%d: %s".printf (Path.get_basename (expr.source_reference.file.filename), expr.source_reference.first_line, format_lit.value.offset (1));
 			}
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]