Standardize header guards
It was pointed out by https://lgtm.com that these were non-standard.
Jonas Jensen
5 years ago
0 | |
#ifndef _ARRAY_H
|
|
0 |
#ifndef MAGICRESCUE_ARRAY_H
|
|
1 |
#define MAGICRESCUE_ARRAY_H
|
1 | 2 |
|
2 | 3 |
#include <stdlib.h>
|
3 | 4 |
|
|
19 | 20 |
(array)->elements*(array)->el_len; \
|
20 | 21 |
(el) = (void *)((char *)(el) + (array)->el_len))
|
21 | 22 |
|
22 | |
#define _ARRAY_H
|
23 | |
#endif /* _ARRAY_H */
|
|
23 |
#endif /* MAGICRESCUE_ARRAY_H */
|
0 | |
#ifndef _MAGICRESCUE_H
|
|
0 |
#ifndef MAGICRESCUE_MAGICRESCUE_H
|
|
1 |
#define MAGICRESCUE_MAGICRESCUE_H
|
1 | 2 |
|
2 | 3 |
#include "util.h"
|
3 | 4 |
|
|
24 | 25 |
char *origname);
|
25 | 26 |
off_t extract(int fd, struct recipe *r, off_t offset);
|
26 | 27 |
|
27 | |
# define _MAGICRESCUE_H
|
28 | |
#endif /* _MAGICRESCUE_H */
|
|
28 |
#endif /* MAGICRESCUE_MAGICRESCUE_H */
|
0 | |
#ifndef _RECIPE_H
|
|
0 |
#ifndef MAGICRESCUE_RECIPE_H
|
|
1 |
#define MAGICRESCUE_RECIPE_H
|
1 | 2 |
|
2 | 3 |
#include "array.h"
|
3 | 4 |
|
|
36 | 37 |
void recipe_destroy(struct recipe *r);
|
37 | 38 |
|
38 | 39 |
|
39 | |
#define _RECIPE_H
|
40 | |
#endif /* _RECIPE_H */
|
|
40 |
#endif /* MAGICRESCUE_RECIPE_H */
|
0 | |
#ifndef _RECUR_H
|
|
0 |
#ifndef MAGICRESCUE_RECUR_H
|
|
1 |
#define MAGICRESCUE_RECUR_H
|
1 | 2 |
|
2 | 3 |
#include <sys/stat.h>
|
3 | 4 |
|
|
12 | 13 |
void recur_close(struct recur *recur);
|
13 | 14 |
int recur_next(struct recur *recur, char *name, struct stat *st_arg);
|
14 | 15 |
|
15 | |
# define _RECUR_H
|
16 | |
#endif
|
|
16 |
#endif /* MAGICRESCUE_RECUR_H */
|
0 | |
#ifndef _SCANNER_H
|
|
0 |
#ifndef MAGICRESCUE_SCANNER_H
|
|
1 |
#define MAGICRESCUE_SCANNER_H
|
1 | 2 |
|
2 | 3 |
#include <stdlib.h>
|
3 | 4 |
|
|
38 | 39 |
int scanner_compare(const struct scanner *a, const struct scanner *b);
|
39 | 40 |
void scanner_destroy(struct scanner *scanner);
|
40 | 41 |
|
41 | |
#define _SCANNER_H
|
42 | |
#endif /* _SCANNER_H */
|
|
42 |
#endif /* MAGICRESCUE_SCANNER_H */
|
0 | |
#ifndef _UTIL_H
|
|
0 |
#ifndef MAGICRESCUE_UTIL_H
|
|
1 |
#define MAGICRESCUE_UTIL_H
|
1 | 2 |
|
2 | 3 |
#include <sys/types.h>
|
3 | 4 |
#include <limits.h>
|
|
19 | 20 |
void string_init(struct string *dst, const char *src);
|
20 | 21 |
void string_destroy(struct string *string);
|
21 | 22 |
|
22 | |
#define _UTIL_H
|
23 | |
#endif /* _UTIL_H */
|
|
23 |
#endif /* MAGICRESCUE_UTIL_H */
|