Ainda faltam muitas mudancas
[pspdecompiler.git] / output.h
blobaa7acbde08e59d3b862de87eedd6e6e889730c70
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_PHIS 64
18 #define OUT_PRINT_CODE 128
19 #define OUT_PRINT_STRUCTURES 256
20 #define OUT_PRINT_EDGE_TYPES 512
22 #define OPTS_DEFERRED 1
23 #define OPTS_REVERSECOND 2
24 #define OPTS_DONTPRINTCONSTANTS 4
27 void ident_line (FILE *out, int size);
28 void get_base_name (char *filename, char *basename, size_t len);
29 void print_value (FILE *out, struct value *val, int options);
30 void print_operation (FILE *out, struct operation *op, int identsize, int options);
31 void print_subroutine_name (FILE *out, struct subroutine *sub);
32 void print_subroutine_declaration (FILE *out, struct subroutine *sub);
34 int print_code (struct code *c, char *filename);
35 int print_graph (struct code *c, char *prxname, int options);
37 #endif /* __OUTPUT_H */