2 * Utility routines' prototypes etc.
4 * Copyright 1998 Bertho A. Stultiens (BS)
11 #ifndef __WRC_WRCTYPES_H
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
);