vala r1121 - in trunk: . gobject-introspection



Author: juergbi
Date: Mon Mar 10 23:50:48 2008
New Revision: 1121
URL: http://svn.gnome.org/viewvc/vala?rev=1121&view=rev

Log:
2008-03-11  Juerg Billeter  <j bitron ch>

	* gobject-introspection/grealpath.h: add missing file


Added:
   trunk/gobject-introspection/grealpath.h
Modified:
   trunk/ChangeLog

Added: trunk/gobject-introspection/grealpath.h
==============================================================================
--- (empty file)
+++ trunk/gobject-introspection/grealpath.h	Mon Mar 10 23:50:48 2008
@@ -0,0 +1,20 @@
+#ifndef __G_REALPATH_H__
+#define __G_REALPATH_H__
+
+/**
+ * g_realpath:
+ *
+ * this should be a) filled in for win32 and b) put in glib...
+ */
+	
+static inline gchar*
+g_realpath (const char *path)
+{
+	char buffer [PATH_MAX];
+	if (realpath(path, buffer))
+		return g_strdup(buffer);
+	else
+		return NULL;
+}
+
+#endif



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