#include "config.h"
-#include "galias.h"
#include "glib.h"
+#include "galias.h"
static GError*
-g_error_new_valist(GQuark domain,
- gint code,
- const gchar *format,
- va_list args)
+g_error_new_valist (GQuark domain,
+ gint code,
+ const gchar *format,
+ va_list args)
{
GError *error;
- error = g_new (GError, 1);
+ error = g_slice_new (GError);
error->domain = domain;
error->code = code;
g_return_val_if_fail (message != NULL, NULL);
g_return_val_if_fail (domain != 0, NULL);
- err = g_new (GError, 1);
+ err = g_slice_new (GError);
err->domain = domain;
err->code = code;
g_free (error->message);
- g_free (error);
+ g_slice_free (GError, error);
}
/**
g_return_val_if_fail (error != NULL, NULL);
- copy = g_new (GError, 1);
+ copy = g_slice_new (GError);
*copy = *error;
*err = NULL;
}
}
+
+#define __G_ERROR_C__
+#include "galiasdef.c"