Commit 4293525f authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Make public. (#155589, Tim-Philipp Müller)

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)
parent 9fd74d63
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):
......
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):
......
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):
......
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):
......
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):
......
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
......
......@@ -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
......
......@@ -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.
......
......@@ -88,13 +88,6 @@
#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;
......
......@@ -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 ":"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment