source: trunk/tools/wrc/utils.h@ 882

Last change on this file since 882 was 882, checked in by sandervl, 26 years ago

Created Wine port of wrc (using EMX/GCC)

File size: 873 bytes
Line 
1/*
2 * Utility routines' prototypes etc.
3 *
4 * Copyright 1998 Bertho A. Stultiens (BS)
5 *
6 */
7
8#ifndef __WRC_UTILS_H
9#define __WRC_UTILS_H
10
11#ifndef __WRC_WRCTYPES_H
12#include "wrctypes.h"
13#endif
14
15#include <stddef.h> /* size_t */
16
17void *xmalloc(size_t);
18void *xrealloc(void *, size_t);
19char *xstrdup(const char *str);
20
21int yyerror(const char *s, ...);
22int yywarning(const char *s, ...);
23void internal_error(const char *file, int line, const char *s, ...);
24void error(const char *s, ...);
25void warning(const char *s, ...);
26void chat(const char *s, ...);
27
28char *dup_basename(const char *name, const char *ext);
29int string_compare(const string_t *s1, const string_t *s2);
30int wstrlen(const short *s);
31short *wstrcpy(short *dst, const short *src);
32int wstricmp(const short *s1, const short *s2);
33char *dupwstr2cstr(const short *str);
34short *dupcstr2wstr(const char *str);
35
36#endif
Note: See TracBrowser for help on using the repository browser.