Bugfix: Declare CALL32_CBClient[Ex] without WINAPI.
[wine/wine64.git] / tools / wrc / utils.h
blob6ddd10c035b8e2794faeaaaf8f0484016e9a8f47
1 /*
2 * Utility routines' prototypes etc.
4 * Copyright 1998 Bertho A. Stultiens (BS)
6 */
8 #ifndef __WRC_UTILS_H
9 #define __WRC_UTILS_H
11 #ifndef __WRC_WRCTYPES_H
12 #include "wrctypes.h"
13 #endif
15 #include <stddef.h> /* size_t */
17 void *xmalloc(size_t);
18 void *xrealloc(void *, size_t);
19 char *xstrdup(const char *str);
21 int yyerror(const char *s, ...);
22 int yywarning(const char *s, ...);
23 void internal_error(const char *file, int line, const char *s, ...);
24 void error(const char *s, ...);
25 void warning(const char *s, ...);
26 void chat(const char *s, ...);
28 char *dup_basename(const char *name, const char *ext);
29 int string_compare(const string_t *s1, const string_t *s2);
30 int wstrlen(const short *s);
31 short *wstrcpy(short *dst, const short *src);
32 int wstricmp(const short *s1, const short *s2);
33 char *dupwstr2cstr(const short *str);
34 short *dupcstr2wstr(const char *str);
36 #endif