projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bad,Unknown are no cfopcdes
[libfirm]
/
ir
/
obstack
/
obstack_printf.c
diff --git
a/ir/obstack/obstack_printf.c
b/ir/obstack/obstack_printf.c
index
c1d754f
..
7ade5ef
100644
(file)
--- a/
ir/obstack/obstack_printf.c
+++ b/
ir/obstack/obstack_printf.c
@@
-6,7
+6,7
@@
#ifdef _WIN32
/* win32/C89 has no va_copy function... so we have to use the stupid fixed-length version */
#ifdef _WIN32
/* win32/C89 has no va_copy function... so we have to use the stupid fixed-length version */
-int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
+int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
FIRM_NOTHROW
{
char buf[16384];
int len = _vsnprintf(buf, sizeof(buf), fmt, ap);
{
char buf[16384];
int len = _vsnprintf(buf, sizeof(buf), fmt, ap);
@@
-14,7
+14,7
@@
int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
return len;
}
#else
return len;
}
#else
-int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
+int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
FIRM_NOTHROW
{
char buf[128];
char *buffer = buf;
{
char buf[128];
char *buffer = buf;
@@
-43,7
+43,7
@@
int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
} else {
break;
}
} else {
break;
}
- buffer = malloc(size);
+ buffer =
(char*)
malloc(size);
}
obstack_grow(obst, buffer, len);
}
obstack_grow(obst, buffer, len);
@@
-54,7
+54,7
@@
int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap)
}
#endif
}
#endif
-int obstack_printf(struct obstack *obst, const char *fmt, ...)
+int obstack_printf(struct obstack *obst, const char *fmt, ...)
FIRM_NOTHROW
{
va_list ap;
int res;
{
va_list ap;
int res;