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)
This commit is contained in:
Matthias Clasen 2004-10-17 06:46:16 +00:00 committed by Matthias Clasen
parent 9fd74d6319
commit 4293525fc8
10 changed files with 44 additions and 7 deletions

View 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):

View 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):

View 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):

View 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):

View 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):

View 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

View 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

View 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.

View File

@ -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;

View 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 ":"