Bugfix: GetFullPathName sets lpFilePart only when the last element
[wine/multimedia.git] / tools / wrc / utils.h
blobe16613ac52c097eac4327efff6c2659cc6f1fe13
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 #ifndef HAVE_STRICMP
37 int stricmp(const char *s1, const char *s2);
38 #endif
40 #endif