Root/
Source at commit d2daaf83d1b7e3465cb35260543a6450295f465f created 11 years 5 months ago. By Xiangfu, debian: cleanup on control file | |
---|---|
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 | |
34 | struct order { |
35 | struct vec *vec; |
36 | struct obj *obj; |
37 | }; |
38 | |
39 | |
40 | const char *print_label(struct vec *vec); |
41 | char *print_vec(const struct vec *vec); |
42 | char *print_obj(const struct obj *obj, const struct vec *prev); |
43 | char *print_meas(const struct obj *obj); |
44 | |
45 | struct order *order_frame(const struct frame *frame); |
46 | |
47 | int dump(FILE *file, const char *one); |
48 | |
49 | #endif /* !DUMP_H */ |
50 |
Branches:
master