-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmovie.h
More file actions
49 lines (39 loc) · 753 Bytes
/
movie.h
File metadata and controls
49 lines (39 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef MOVIE_H
#define MOVIE_H
#include <stdbool.h>
#include "expand.h"
#include "instr.h"
struct movie
{
char *symbol;
bool defined;
int aut;
int year;
char *name;
struct movie *next;
};
struct movie * movie_find_or_create(struct movie **first, char *symbol, int len);
struct element
{
enum type { INVALID, TEXT, INSTR_XS(AS_1_OF_1_COMMA) } type;
struct element *next;
union
{
char *text;
struct movie *movie;
struct heading
{
int level;
char *text;
} heading;
};
};
struct movies
{
struct movie *mov_first;
struct element *elements;
struct element **last;
char *title;
};
void movies_free(struct movies *em);
#endif