|
Last change
on this file since 3212 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 |
|
|---|
| 17 | void *xmalloc(size_t);
|
|---|
| 18 | void *xrealloc(void *, size_t);
|
|---|
| 19 | char *xstrdup(const char *str);
|
|---|
| 20 |
|
|---|
| 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, ...);
|
|---|
| 27 |
|
|---|
| 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);
|
|---|
| 35 |
|
|---|
| 36 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.