When building the list of valid filenames for the scanner, resolve symlinks in
the filenames; the lexer does this when including files, so otherwise we'll get
filename mismatches if the path to the files being scanned includes a symlink.
Signed-off-by: Colin Walters <walters@verbum.org>
# include "config.h"
#endif
#include "sourcescanner.h"
+#include "grealpath.h"
#include <Python.h>
#ifdef _WIN32
return NULL;
self->scanner->filenames = g_list_append (self->scanner->filenames,
- g_strdup (filename));
+ g_realpath (filename));
Py_INCREF (Py_None);
return Py_None;