+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib.def: g_thread_create renamed to g_thread_create_full.
+
+ * gthread.c: memcpy is not necessary here. We can simply use
+ struct assignment.
+
+ * gmessages.c: Fix compilation error on win32. Added
+ GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
2001-05-21 Andrew Lanoix <alanoix@umich.edu>
*giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
g_strsplit
g_strtod
g_strup
- g_thread_create
+ g_thread_create_full
g_thread_error_quark
g_thread_functions_for_glib_use
g_thread_join
g_strsplit
g_strtod
g_strup
- g_thread_create
+ g_thread_create_full
g_thread_error_quark
g_thread_functions_for_glib_use
g_thread_join
#include <locale.h>
#include <errno.h>
+#ifdef G_OS_WIN32
+typedef FILE* GFileDescriptor;
+#else
+typedef gint GFileDescriptor;
+#endif
/* --- structures --- */
typedef struct _GLogDomain GLogDomain;
/* Just use stdio. If we're out of memory, we're hosed anyway. */
#undef write
static inline int
-dowrite (FILE *fd,
+dowrite (GFileDescriptor fd,
const void *buf,
unsigned int len)
{
#endif
static void
-write_unsigned (gint fd,
+write_unsigned (GFileDescriptor fd,
gulong num,
guint radix)
{
}
static void
-write_string (gint fd,
+write_string (GFileDescriptor fd,
gchar *string)
{
write (fd, string, strlen (string));
}
static void
-g_log_write_prefix (gint fd,
+g_log_write_prefix (GFileDescriptor fd,
GLogLevelFlags mask)
{
static GLogLevelFlags g_log_msg_prefix = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_DEBUG;
const gchar *message,
gpointer unused_data)
{
-#ifdef G_OS_WIN32
- FILE *fd;
-#else
- gint fd;
-#endif
+ GFileDescriptor fd;
gboolean in_recursion;
gboolean is_fatal;
GErrorFunc local_glib_error_func;
g_return_if_fail (mutex);
- memcpy (mutex, &init_mutex, sizeof (GStaticMutex));
+ *mutex = init_mutex;
}
GMutex *
g_return_if_fail (mutex);
- memcpy (mutex, &init_mutex, sizeof (GStaticRecMutex));
+ *mutex = init_mutex;
}
void
g_return_if_fail (lock);
- memcpy (lock, &init_lock, sizeof (GStaticRWLock));
+ *lock = init_lock;
}
static void inline
#include <locale.h>
#include <errno.h>
+#ifdef G_OS_WIN32
+typedef FILE* GFileDescriptor;
+#else
+typedef gint GFileDescriptor;
+#endif
/* --- structures --- */
typedef struct _GLogDomain GLogDomain;
/* Just use stdio. If we're out of memory, we're hosed anyway. */
#undef write
static inline int
-dowrite (FILE *fd,
+dowrite (GFileDescriptor fd,
const void *buf,
unsigned int len)
{
#endif
static void
-write_unsigned (gint fd,
+write_unsigned (GFileDescriptor fd,
gulong num,
guint radix)
{
}
static void
-write_string (gint fd,
+write_string (GFileDescriptor fd,
gchar *string)
{
write (fd, string, strlen (string));
}
static void
-g_log_write_prefix (gint fd,
+g_log_write_prefix (GFileDescriptor fd,
GLogLevelFlags mask)
{
static GLogLevelFlags g_log_msg_prefix = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_DEBUG;
const gchar *message,
gpointer unused_data)
{
-#ifdef G_OS_WIN32
- FILE *fd;
-#else
- gint fd;
-#endif
+ GFileDescriptor fd;
gboolean in_recursion;
gboolean is_fatal;
GErrorFunc local_glib_error_func;
g_return_if_fail (mutex);
- memcpy (mutex, &init_mutex, sizeof (GStaticMutex));
+ *mutex = init_mutex;
}
GMutex *
g_return_if_fail (mutex);
- memcpy (mutex, &init_mutex, sizeof (GStaticRecMutex));
+ *mutex = init_mutex;
}
void
g_return_if_fail (lock);
- memcpy (lock, &init_lock, sizeof (GStaticRWLock));
+ *lock = init_lock;
}
static void inline