1 /* ProQCC v1.60 FINAL
2  * Copyright (C) 1997-2000 Lee Smith
3  *
4  * Based on qcc by John Carmack, id Software
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20 
21 #ifndef _DECOMP_H
22 #define _DECOMP_H
23 
24 void DecompileReadData(char *srcfile);
25 int DecompileGetFunctionIdxByName(char *name);
26 int DecompileAlreadySeen(char *fname);
27 void DecompileCalcProfiles(void);
28 char *DecompileGlobal(gofs_t ofs, def_t * req_t);
29 gofs_t DecompileScaleIndex(dfunction_t * df, gofs_t ofs);
30 char *DecompileImmediate(dfunction_t * df, gofs_t ofs, int fun, char *knew);
31 char *DecompileGet(dfunction_t * df, gofs_t ofs, def_t * req_t);
32 void DecompileIndent(int c);
33 void DecompileDecompileStatement(dfunction_t * df, dstatement_t * s, int *indent);
34 void DecompileDecompileFunction(dfunction_t * df);
35 char *DecompileString(char *string);
36 char *DecompileValueString(etype_t type, void *val);
37 char *DecompilePrintParameter(ddef_t * def);
38 ddef_t *GetField(char *name);
39 ddef_t *DecompileGetParameter(gofs_t ofs);
40 void DecompileFunction(char *name);
41 void DecompileDecompileFunctions(void);
42 void DecompileProgsDat(char *name);
43 char *DecompileGlobalStringNoContents(gofs_t ofs);
44 char *DecompileGlobalString(gofs_t ofs);
45 void DecompilePrintStatement(dstatement_t * s);
46 void DecompilePrintFunction(char *name);
47 
48 
49 
50 
51 
52 #endif
53