Codebase list magicrescue / 7206d49
Standardize header guards It was pointed out by https://lgtm.com that these were non-standard. Jonas Jensen 5 years ago
6 changed file(s) with 18 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
0 #ifndef _ARRAY_H
0 #ifndef MAGICRESCUE_ARRAY_H
1 #define MAGICRESCUE_ARRAY_H
12
23 #include <stdlib.h>
34
1920 (array)->elements*(array)->el_len; \
2021 (el) = (void *)((char *)(el) + (array)->el_len))
2122
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
12
23 #include "util.h"
34
2425 char *origname);
2526 off_t extract(int fd, struct recipe *r, off_t offset);
2627
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
12
23 #include "array.h"
34
3637 void recipe_destroy(struct recipe *r);
3738
3839
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
12
23 #include <sys/stat.h>
34
1213 void recur_close(struct recur *recur);
1314 int recur_next(struct recur *recur, char *name, struct stat *st_arg);
1415
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
12
23 #include <stdlib.h>
34
3839 int scanner_compare(const struct scanner *a, const struct scanner *b);
3940 void scanner_destroy(struct scanner *scanner);
4041
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
12
23 #include <sys/types.h>
34 #include <limits.h>
1920 void string_init(struct string *dst, const char *src);
2021 void string_destroy(struct string *string);
2122
22 #define _UTIL_H
23 #endif /* _UTIL_H */
23 #endif /* MAGICRESCUE_UTIL_H */