-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.h
42 lines (32 loc) · 820 Bytes
/
preamble.h
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
#ifndef _PREAMBLE_H_
#define _PREAMBLE_H_
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <libgen.h>
#include <unistd.h>
#include "error.h"
#include "usefulFunctions.h"
#define FGETS_LINE_LENGTH 1024
typedef struct
{
bool containsStrikethroughs;
bool containsEnumerations;
bool containsImages;
bool containsLinks;
bool containsVerbatim;
char* title;
char* titleComments;
} Preamble;
void initPreamble();
void addStrikethroughsToPreamble();
void addEnumToPreamble();
void addImagesToPreamble();
void addLinksToPreamble();
void addVerbatimToPreamble();
void addLineToTitle(const char* newLine);
void addCommentToTitle(const char* newComment);
int insertPreamble(FILE* tmpBodyOutputFile, FILE* outputFile);
void freePreamble();
#endif //_PREAMBLE_H_