Debian Codegraph @

include/decoder/formatter.h

raw
1 #ifndef FORMATTER_H
2 #define FORMATTER_H
3
4 #include "lexical/parser.h"
5 #include <stdio.h>
6
7 #define DEFAULT_LABEL "L%04d"
8
9 typedef void (*print_fn) (obj_t *obj);
10
11 typedef struct
12 {
13 print_fn handler;
14 char *color;
15 } obj_print_t;
16
17 extern void extern_obj_printer (FILE *output_fp, obj_t *obj);
18
19 extern void print_as_comment (FILE *output_fp, const char *comment_fmt, ...)
20 __attribute__ ((format (printf, 2, 3)));
21
22 extern void print_statement (FILE *output_fp, statement_t *statement);
23
24 #endif