projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enabled g_mem_set_vtable through the configure option --with-overridable-allocators...
[mono.git]
/
eglib
/
src
/
gerror.c
diff --git
a/eglib/src/gerror.c
b/eglib/src/gerror.c
index 2ec089c9956c1053c96bd0b8ea441d2881d54800..43fef97cc434c1a67daa1df2c8e5a8b98f97b439 100644
(file)
--- a/
eglib/src/gerror.c
+++ b/
eglib/src/gerror.c
@@
-28,10
+28,8
@@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
+#include <config.h>
#include <glib.h>
#include <glib.h>
-
-#include "vasprintf.h"
-
GError *
g_error_new (gpointer domain, gint code, const char *format, ...)
{
GError *
g_error_new (gpointer domain, gint code, const char *format, ...)
{
@@
-42,7
+40,7
@@
g_error_new (gpointer domain, gint code, const char *format, ...)
err->code = code;
va_start (args, format);
err->code = code;
va_start (args, format);
- if (vasprintf (&err->message, format, args) == -1)
+ if (
g_
vasprintf (&err->message, format, args) == -1)
err->message = g_strdup_printf ("internal: invalid format string %s", format);
va_end (args);
err->message = g_strdup_printf ("internal: invalid format string %s", format);
va_end (args);
@@
-57,7
+55,7
@@
g_error_vnew (gpointer domain, gint code, const char *format, va_list ap)
err->domain = domain;
err->code = code;
err->domain = domain;
err->code = code;
- if (vasprintf (&err->message, format, ap) == -1)
+ if (
g_
vasprintf (&err->message, format, ap) == -1)
err->message = g_strdup_printf ("internal: invalid format string %s", format);
return err;
err->message = g_strdup_printf ("internal: invalid format string %s", format);
return err;
@@
-77,7
+75,7
@@
g_error_free (GError *error)
{
g_return_if_fail (error != NULL);
{
g_return_if_fail (error != NULL);
- free (error->message);
+
g_
free (error->message);
g_free (error);
}
g_free (error);
}