From f2dca8f98a490c65d8b548a4b231458f43df6045 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 14 Jun 2007 00:00:30 -0500 Subject: [PATCH] _moo_intern_string(), _moo_win32_mmap(), _moo_win32_munmap() --- moo/mooutils/mooutils-misc.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/moo/mooutils/mooutils-misc.h b/moo/mooutils/mooutils-misc.h index c30107d1..f44ec942 100644 --- a/moo/mooutils/mooutils-misc.h +++ b/moo/mooutils/mooutils-misc.h @@ -121,6 +121,8 @@ _moo_str_equal_inline (const char *s1, const char *_moo_get_pid_string (void); +const char *_moo_intern_string (const char *string); + guint _moo_idle_add_full (gint priority, GSourceFunc function, gpointer data, @@ -176,7 +178,6 @@ G_BEGIN_DECLS #define fnmatch _moo_win32_fnmatch #define gettimeofday _moo_win32_gettimeofday -#define getc_unlocked getc char *moo_win32_get_app_dir (void); char *moo_win32_get_dll_dir (const char *dll); @@ -196,6 +197,19 @@ int _moo_win32_fnmatch (const char *pattern, int _moo_win32_gettimeofday (struct timeval *tp, gpointer tzp); +void *_moo_win32_mmap (gpointer start, + guint64 length, + int prot, + int flags, + int fd, + guint64 offset); +int _moo_win32_munmap (gpointer start, + gsize length); + +#define PROT_READ 1 +#define MAP_SHARED 1 +#define MAP_FAILED ((gpointer) -1) + G_END_DECLS