Bug in var->Def
[pspdecompiler.git] / output.h
blob53f6f878477bde9a544ad37fa7a9a28833e8cde8
1 /**
2 * Author: Humberto Naves (hsnaves@gmail.com)
3 */
5 #ifndef __OUTPUT_H
6 #define __OUTPUT_H
8 #include <stddef.h>
9 #include "code.h"
11 #define OUT_PRINT_DFS 1
12 #define OUT_PRINT_RDFS 2
13 #define OUT_PRINT_DOMINATOR 4
14 #define OUT_PRINT_RDOMINATOR 8
15 #define OUT_PRINT_FRONTIER 16
16 #define OUT_PRINT_RFRONTIER 32
17 #define OUT_PRINT_CODE 64
18 #define OUT_PRINT_STRUCTURES 128
19 #define OUT_PRINT_EDGE_TYPES 256
21 #define OPTS_NORESULT 1
22 #define OPTS_REVERSECOND 2
23 #define OPTS_RESULT 4
24 #define OPTS_SECONDRESULT 8
26 extern int g_verbosity;
27 extern int g_printoptions;
30 void ident_line (FILE *out, int size);
31 void get_base_name (char *filename, char *basename, size_t len);
32 void print_value (FILE *out, struct value *val, int options);
33 void print_operation (FILE *out, struct operation *op, int identsize, int options);
34 void print_subroutine_name (FILE *out, struct subroutine *sub);
35 void print_subroutine_declaration (FILE *out, struct subroutine *sub);
37 int print_code (struct code *c, char *filename);
38 int print_graph (struct code *c, char *prxname);
40 #endif /* __OUTPUT_H */