Use the Unicode string functions from wine/unicode.h instead of the
[wine.git] / tools / wrc / utils.h
blob1bb9e44cf0bfa102888a8fb95d6c0397a474bcdc
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 pperror(const char *s, ...) __attribute__((format (printf, 1, 2)));
22 int ppwarning(const char *s, ...) __attribute__((format (printf, 1, 2)));
23 int yyerror(const char *s, ...) __attribute__((format (printf, 1, 2)));
24 int yywarning(const char *s, ...) __attribute__((format (printf, 1, 2)));
25 void internal_error(const char *file, int line, const char *s, ...) __attribute__((format (printf, 3, 4)));
26 void error(const char *s, ...) __attribute__((format (printf, 1, 2)));
27 void warning(const char *s, ...) __attribute__((format (printf, 1, 2)));
28 void chat(const char *s, ...) __attribute__((format (printf, 1, 2)));
30 char *dup_basename(const char *name, const char *ext);
31 int string_compare(const string_t *s1, const string_t *s2);
32 int wstrlen(const short *s);
33 short *wstrcpy(short *dst, const short *src);
34 int wstricmp(const short *s1, const short *s2);
35 char *dupwstr2cstr(const short *str);
36 short *dupcstr2wstr(const char *str);
37 int compare_name_id(name_id_t *n1, name_id_t *n2);
39 #endif