[PATCH] Do not use 'namespace' as parameter in header

Marko Anastasov <[email protected]>
Newsgroups gmane.comp.gnome.vfs.general
Message-ID <1194911062.6869.45.camel@darkstar>
Hi,
I'm sending a patch that renames a parameter in
g_file_attribute_matcher_enumerate_namespace
to avoid clash with the C++ keyword.

	Marko

_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
gio-standalone_avoid_namespace_kw_clash.patch (text/x-patch, 2.1 KB)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 736)
+++ ChangeLog	(working copy)
@@ -1,5 +1,11 @@
 2007-11-13  Marko Anastasov  <[email protected]>
 
+	* gio/gio/gfileinfo.[ch]: Use a different parameter name instead of
+	'namespace' for in g_file_attribute_matcher_enumerate_namespace()
+	to avoid clash with the C++ keyword.
+
+2007-11-13  Marko Anastasov  <[email protected]>
+
 	* gio/glocalfileinfo.c: Build fix, added missing semicolon
 	to an ifdef'ed call to getpwuid() in lookup_uid_data().
 
Index: gio/gfileinfo.c
===================================================================
--- gio/gfileinfo.c	(revision 735)
+++ gio/gfileinfo.c	(working copy)
@@ -1838,25 +1838,25 @@
 /**
  * g_file_attribute_matcher_enumerate_namespace:
  * @matcher: a #GFileAttributeMatcher.
- * @namespace:
+ * @ns:
  * 
  * Returns: %TRUE, %FALSE.
  **/
 gboolean
 g_file_attribute_matcher_enumerate_namespace (GFileAttributeMatcher *matcher,
-					      const char            *namespace)
+					      const char            *ns)
 {
   SubMatcher *sub_matchers;
   int ns_id;
   int i;
   
   g_return_val_if_fail (matcher != NULL, FALSE);
-  g_return_val_if_fail (namespace != NULL && *namespace != '\0', FALSE);
+  g_return_val_if_fail (ns != NULL && *ns != '\0', FALSE);
   
   if (matcher->all)
     return TRUE;
 
-  ns_id = lookup_namespace (namespace) << NS_POS;
+  ns_id = lookup_namespace (ns) << NS_POS;
 
   for (i = 0; i < ON_STACK_MATCHERS; i++)
     {
Index: gio/gfileinfo.h
===================================================================
--- gio/gfileinfo.h	(revision 735)
+++ gio/gfileinfo.h	(working copy)
@@ -270,7 +270,7 @@
 gboolean               g_file_attribute_matcher_matches_only   (GFileAttributeMatcher *matcher,
 								const char            *attribute);
 gboolean               g_file_attribute_matcher_enumerate_namespace (GFileAttributeMatcher *matcher,
-								     const char            *namespace);
+								     const char            *ns);
 const char *           g_file_attribute_matcher_enumerate_next (GFileAttributeMatcher *matcher);
 
 G_END_DECLS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.