From 166dc3cf2f11e50aace2bcb0a8c7add4e065ef56 Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 22 Jul 2024 19:38:36 +0200 Subject: [PATCH] +emil header guards --- C_C++/emil_header_guards/a.h | 11 +++++++++++ C_C++/emil_header_guards/ac.h | 10 ++++++++++ C_C++/emil_header_guards/b.h | 11 +++++++++++ C_C++/emil_header_guards/bc.h | 11 +++++++++++ C_C++/emil_header_guards/main.c | 12 ++++++++++++ 5 files changed, 55 insertions(+) create mode 100644 C_C++/emil_header_guards/a.h create mode 100644 C_C++/emil_header_guards/ac.h create mode 100644 C_C++/emil_header_guards/b.h create mode 100644 C_C++/emil_header_guards/bc.h create mode 100644 C_C++/emil_header_guards/main.c diff --git a/C_C++/emil_header_guards/a.h b/C_C++/emil_header_guards/a.h new file mode 100644 index 0000000..f8b412b --- /dev/null +++ b/C_C++/emil_header_guards/a.h @@ -0,0 +1,11 @@ +#ifndef A_H + +#include "b.h" + +struct a { + int i; +}; + + +#define A_H +#endif diff --git a/C_C++/emil_header_guards/ac.h b/C_C++/emil_header_guards/ac.h new file mode 100644 index 0000000..e472d11 --- /dev/null +++ b/C_C++/emil_header_guards/ac.h @@ -0,0 +1,10 @@ +#ifndef A_H +#define A_H + +#include "bc.h" + +struct a { + int i; +}; + +#endif diff --git a/C_C++/emil_header_guards/b.h b/C_C++/emil_header_guards/b.h new file mode 100644 index 0000000..2271b0e --- /dev/null +++ b/C_C++/emil_header_guards/b.h @@ -0,0 +1,11 @@ +#ifndef B_H + +#include "a.h" + +struct b { + int i; +}; + + +#define B_H +#endif diff --git a/C_C++/emil_header_guards/bc.h b/C_C++/emil_header_guards/bc.h new file mode 100644 index 0000000..b246c89 --- /dev/null +++ b/C_C++/emil_header_guards/bc.h @@ -0,0 +1,11 @@ +#ifndef B_H +#define B_H + +#include "ac.h" + +struct b { + int i; +}; + + +#endif diff --git a/C_C++/emil_header_guards/main.c b/C_C++/emil_header_guards/main.c new file mode 100644 index 0000000..698a297 --- /dev/null +++ b/C_C++/emil_header_guards/main.c @@ -0,0 +1,12 @@ +// @BAKE gcc main.c -o $*.out +#if 0 +# include "a.h" +# include "b.h" +#else +# include "ac.h" +# include "bc.h" +#endif + +signed main() { + return 0; +}