Passo intermediario, ainda falta um longo caminho
[pspdecompiler.git] / utils.h
blobd3cd9803347aa42fe5a4305e33611fa0c8f79d28
1 #ifndef __UTILS_H
2 #define __UTILS_H
4 #include <stddef.h>
5 #include <stdarg.h>
7 void report (const char *fmt, ...);
9 void error (const char *fmt, ...);
10 void xerror (const char *fmt, ...);
12 void fatal (const char *fmt, ...);
13 void xfatal (const char *fmt, ...);
15 void *xmalloc (size_t size);
16 void *xrealloc (void *ptr, size_t size);
18 void *read_file (const char *path, size_t *size);
20 #endif /* __UTILS_H */