XenevaOS
Loading...
Searching...
No Matches
deh_str.h
Go to the documentation of this file.
1//
2// Copyright(C) 2005-2014 Simon Howard
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License
6// as published by the Free Software Foundation; either version 2
7// of the License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14//
15// Dehacked string replacements
16//
17
18#ifndef DEH_STR_H
19#define DEH_STR_H
20
21#include <stdio.h>
22
23#include "doomfeatures.h"
24
25// Used to do dehacked text substitutions throughout the program
26
27#ifdef FEATURE_DEHACKED
28
29char *DEH_String(char *s);
30void DEH_printf(char *fmt, ...);
31void DEH_fprintf(FILE *fstream, char *fmt, ...);
32void DEH_snprintf(char *buffer, size_t len, char *fmt, ...);
33void DEH_AddStringReplacement(char *from_text, char *to_text);
34
35
36#else
37
38#define DEH_String(x) (x)
39#define DEH_printf printf
40#define DEH_fprintf fprintf
41#define DEH_snprintf snprintf
42#define DEH_AddStringReplacement(x, y)
43
44#endif
45
46#endif /* #ifndef DEH_STR_H */
47
#define DEH_fprintf
Definition deh_str.h:40
#define DEH_printf
Definition deh_str.h:39
#define DEH_snprintf
Definition deh_str.h:41
#define DEH_AddStringReplacement(x, y)
Definition deh_str.h:42
#define DEH_String(x)
Definition deh_str.h:38
const char * fmt
Definition drm_file.h:466
size_t len
Definition initial.c:23
Definition stdio.h:41