Root/dump.h

Source at commit 1d7eccb06b61f239b9671617488f33910286f0f1 created 5 years 7 months ago.
By Werner Almesberger, dump.c: add dumping of %iprint
1/*
2 * dump.h - Dump objects in the native FPD format
3 *
4 * Written 2009-2011 by Werner Almesberger
5 * Copyright 2009-2011 by Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef DUMP_H
15#define DUMP_H
16
17#include <stdio.h>
18
19#include "obj.h"
20
21
22#define MACHINE_GENERATED "/* MACHINE-GENERATED ! */\n"
23
24
25/*
26 * vec obj
27 * --------------------------------------------------------------
28 * NULL NULL end of list
29 * non-NULL NULL vector
30 * NULL non-NULL object, no previous vector
31 * non-NULL non-NULL object, with previous vector
32 */
33
34struct order {
35    struct vec *vec;
36    struct obj *obj;
37};
38
39
40const char *print_label(struct vec *vec);
41char *print_vec(const struct vec *vec);
42char *print_obj(const struct obj *obj, const struct vec *prev);
43char *print_meas(const struct obj *obj);
44
45struct order *order_frame(const struct frame *frame);
46
47int dump(FILE *file, const char *one);
48
49#endif /* !DUMP_H */
50

Archive Download this file

Branches:
master



interactive