From 93cbebd4254e924284d6660c2fd1f1440c8c46ce Mon Sep 17 00:00:00 2001 From: Tyler K Date: Wed, 20 Nov 2024 12:29:47 -0800 Subject: [PATCH] C generation --- feature_tests/c/include/CyclicStructC.d.h | 24 +++++++++++++++++++++ feature_tests/c/include/CyclicStructC.h | 26 +++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 feature_tests/c/include/CyclicStructC.d.h create mode 100644 feature_tests/c/include/CyclicStructC.h diff --git a/feature_tests/c/include/CyclicStructC.d.h b/feature_tests/c/include/CyclicStructC.d.h new file mode 100644 index 000000000..61ea9b81e --- /dev/null +++ b/feature_tests/c/include/CyclicStructC.d.h @@ -0,0 +1,24 @@ +#ifndef CyclicStructC_D_H +#define CyclicStructC_D_H + +#include +#include +#include +#include +#include "diplomat_runtime.h" + +#include "CyclicStructA.d.h" + + + + +typedef struct CyclicStructC { + CyclicStructA a; +} CyclicStructC; + +typedef struct CyclicStructC_option {union { CyclicStructC ok; }; bool is_ok; } CyclicStructC_option; + + + + +#endif // CyclicStructC_D_H diff --git a/feature_tests/c/include/CyclicStructC.h b/feature_tests/c/include/CyclicStructC.h new file mode 100644 index 000000000..f6f7bb3a3 --- /dev/null +++ b/feature_tests/c/include/CyclicStructC.h @@ -0,0 +1,26 @@ +#ifndef CyclicStructC_H +#define CyclicStructC_H + +#include +#include +#include +#include +#include "diplomat_runtime.h" + + +#include "CyclicStructC.d.h" + + + + + + +void CyclicStructC_cyclic_out(CyclicStructC self, DiplomatWrite* write); + + + + + + + +#endif // CyclicStructC_H