summaryrefslogtreecommitdiff
path: root/gobject-introspection/scannerlexer.l
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-03-10 16:18:52 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-03-10 16:18:52 +0000
commit1ce8744b32f60bb589b3d31c3de72bd84e253f69 (patch)
tree646f73d7ff8bb190a0dfd5b9d758827bf2232026 /gobject-introspection/scannerlexer.l
parente0dcda1d1d6721d7148dca49f196952dd91696b6 (diff)
downloadvala-1ce8744b32f60bb589b3d31c3de72bd84e253f69.tar.gz
update from gobject-introspection SVN r128
2008-03-10 Juerg Billeter <j@bitron.ch> * gobject-introspection/: update from gobject-introspection SVN r128 svn path=/trunk/; revision=1120
Diffstat (limited to 'gobject-introspection/scannerlexer.l')
-rw-r--r--gobject-introspection/scannerlexer.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/gobject-introspection/scannerlexer.l b/gobject-introspection/scannerlexer.l
index d5af511b4..593c058c2 100644
--- a/gobject-introspection/scannerlexer.l
+++ b/gobject-introspection/scannerlexer.l
@@ -33,6 +33,7 @@
#include "scanner.h"
#include "scannerparser.h"
+#include "grealpath.h"
int lineno;
@@ -216,7 +217,7 @@ static void parse_gtkdoc (GIGenerator *igenerator, int *c1, int *c2)
else /* parts == 1 */
{
name = parts[0];
- value = "1";
+ value = NULL;
}
directive = cdirective_new (name, value);
@@ -304,7 +305,8 @@ static void process_directive (GIGenerator *igenerator)
if (filename_builder->len > 0) {
char *filename = g_strcompress (filename_builder->str);
g_free (igenerator->current_filename);
- igenerator->current_filename = filename;
+ igenerator->current_filename = g_realpath(filename);
+ g_free(filename);
}
g_string_free (filename_builder, TRUE);