Added pow() forward.
[wine.git] / tools / wmc / utils.h
blob156e5c420aac7119736a8a4548075b4556d690c8
1 /*
2 * Utility routines' prototypes etc.
4 * Copyright 1998,2000 Bertho A. Stultiens (BS)
6 */
8 #ifndef __WMC_UTILS_H
9 #define __WMC_UTILS_H
11 #ifndef __WMC_WMCTYPES_H
12 #include "wmctypes.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, ...) __attribute__((format (printf, 1, 2)));
22 int xyyerror(const char *s, ...) __attribute__((format (printf, 1, 2)));
23 int yywarning(const char *s, ...) __attribute__((format (printf, 1, 2)));
24 void internal_error(const char *file, int line, const char *s, ...) __attribute__((format (printf, 3, 4)));
25 void error(const char *s, ...) __attribute__((format (printf, 1, 2)));
26 void warning(const char *s, ...) __attribute__((format (printf, 1, 2)));
28 char *dup_basename(const char *name, const char *ext);
30 WCHAR *xunistrdup(const WCHAR * str);
31 WCHAR *unistrcpy(WCHAR *dst, const WCHAR *src);
32 int unistrlen(const WCHAR *s);
33 int unistricmp(const WCHAR *s1, const WCHAR *s2);
34 int unistrcmp(const WCHAR *s1, const WCHAR *s2);
36 #endif