Make public. (#155589, Tim-Philipp Müller)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Oct 2004 06:46:16 +0000 (06:46 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 17 Oct 2004 06:46:16 +0000 (06:46 +0000)
2004-10-17  Matthias Clasen  <mclasen@redhat.com>

* glib/gutils.h (G_IS_DIR_SEPARATOR):
* glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/glib/glib-sections.txt
docs/reference/glib/tmpl/macros.sgml
glib/gutils.c
glib/gutils.h

index 0187bb2..00de45d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.h (G_IS_DIR_SEPARATOR): 
+       * glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller) 
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gmain.c (g_child_watch_add_full): 
index 0187bb2..00de45d 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.h (G_IS_DIR_SEPARATOR): 
+       * glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller) 
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gmain.c (g_child_watch_add_full): 
index 0187bb2..00de45d 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.h (G_IS_DIR_SEPARATOR): 
+       * glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller) 
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gmain.c (g_child_watch_add_full): 
index 0187bb2..00de45d 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.h (G_IS_DIR_SEPARATOR): 
+       * glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller) 
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gmain.c (g_child_watch_add_full): 
index 0187bb2..00de45d 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.h (G_IS_DIR_SEPARATOR): 
+       * glib/gutils.c: Make public.  (#155589, Tim-Philipp Müller) 
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gmain.c (g_child_watch_add_full): 
index 9528fdb..21ba1db 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/tmpl/macros.sgml: 
+       * glib/glib-sections.txt: Document G_IS_DIR_SEPARATOR. 
+
 2004-10-05  Matthias Clasen  <mclasen@redhat.com>
 
        * gobject/tmpl/objects.sgml: Improve the docs for
index c3e5926..59ab696 100644 (file)
@@ -122,6 +122,7 @@ G_OS_UNIX
 <SUBSECTION>
 G_DIR_SEPARATOR
 G_DIR_SEPARATOR_S
+G_IS_DIR_SEPARATOR
 G_SEARCHPATH_SEPARATOR
 G_SEARCHPATH_SEPARATOR_S
 
index 2c498ed..131bc02 100644 (file)
@@ -54,6 +54,17 @@ This is "/" on UNIX machines and "\" under Windows.
 
 
 
+<!-- ##### MACRO G_IS_DIR_SEPARATOR ##### -->
+<para>
+Checks whether a character is a directory 
+separator. It returns %TRUE for '/' on UNIX
+machines and for '\' or '/' under Windows.
+</para>
+
+@c: a character
+@Since: 2.6
+
+
 <!-- ##### MACRO G_SEARCHPATH_SEPARATOR ##### -->
 <para>
 The search path separator character.
index 83a753c..6a1fea6 100644 (file)
 #include <libintl.h>
 #endif
 
-/* G_IS_DIR_SEPARATOR probably should be made public in GLib 2.4 */
-#ifdef G_OS_WIN32
-#define G_IS_DIR_SEPARATOR(c) (c == G_DIR_SEPARATOR || c == '/')
-#else
-#define G_IS_DIR_SEPARATOR(c) (c == G_DIR_SEPARATOR)
-#endif
-
 const guint glib_major_version = GLIB_MAJOR_VERSION;
 const guint glib_minor_version = GLIB_MINOR_VERSION;
 const guint glib_micro_version = GLIB_MICRO_VERSION;
index c8ba172..03eaa17 100644 (file)
@@ -39,6 +39,7 @@ G_BEGIN_DECLS
  */
 #define G_DIR_SEPARATOR '\\'
 #define G_DIR_SEPARATOR_S "\\"
+#define G_IS_DIR_SEPARATOR(c) ((c) == G_DIR_SEPARATOR || (c) == '/')
 #define G_SEARCHPATH_SEPARATOR ';'
 #define G_SEARCHPATH_SEPARATOR_S ";"
 
@@ -48,6 +49,7 @@ G_BEGIN_DECLS
 
 #define G_DIR_SEPARATOR '/'
 #define G_DIR_SEPARATOR_S "/"
+#define G_IS_DIR_SEPARATOR(c) ((c) == G_DIR_SEPARATOR)
 #define G_SEARCHPATH_SEPARATOR ':'
 #define G_SEARCHPATH_SEPARATOR_S ":"