Commit e3aa47c3 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winetest: Annotate xmalloc() and xrealloc() with allocation size attribute.

parent d5936f42
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
void fatal (const char* msg); void fatal (const char* msg);
void warning (const char* msg); void warning (const char* msg);
void *xmalloc (size_t len);
void *xrealloc (void *op, size_t len);
char *xstrdup( const char *str );
void xprintf (const char *fmt, ...); void xprintf (const char *fmt, ...);
char *vstrmake (size_t *lenp, va_list ap); char *vstrmake (size_t *lenp, va_list ap);
char *strmake (size_t *lenp, ...); char *strmake (size_t *lenp, ...);
...@@ -45,6 +42,13 @@ extern HANDLE logfile; ...@@ -45,6 +42,13 @@ extern HANDLE logfile;
#include <windows.h> #include <windows.h>
#ifndef __WINE_ALLOC_SIZE
#define __WINE_ALLOC_SIZE(x)
#endif
void *xmalloc (size_t len) __WINE_ALLOC_SIZE(1);
void *xrealloc (void *op, size_t len) __WINE_ALLOC_SIZE(2);
char *xstrdup( const char *str );
enum report_type { enum report_type {
R_STATUS = 0, R_STATUS = 0,
R_PROGRESS, R_PROGRESS,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment