diff --git a/include/pocketpy/objects/dict.h b/include/pocketpy/objects/dict.h index 0ad7c6a5..8b221f77 100644 --- a/include/pocketpy/objects/dict.h +++ b/include/pocketpy/objects/dict.h @@ -1,13 +1,13 @@ #pragma once -#ifdef __cplusplus -extern "C" { -#endif - #include #include "pocketpy/objects/pyvar.h" #include "pocketpy/common/vector.h" +#ifdef __cplusplus +extern "C" { +#endif + /** @brief `pkpy_Dict` is the Dict type in Python */ typedef struct { int count; /** number of elements in the dictionary */ diff --git a/include/pocketpy/objects/pyvar.h b/include/pocketpy/objects/pyvar.h index edd7495f..f0b124a2 100644 --- a/include/pocketpy/objects/pyvar.h +++ b/include/pocketpy/objects/pyvar.h @@ -1,12 +1,12 @@ #pragma once +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - /** * @brief A python value in pocketpy. */ diff --git a/include/pocketpy/objects/sourcedata.h b/include/pocketpy/objects/sourcedata.h index 3b40175a..ac0cf888 100644 --- a/include/pocketpy/objects/sourcedata.h +++ b/include/pocketpy/objects/sourcedata.h @@ -1,13 +1,13 @@ #pragma once -#ifdef __cplusplus -extern "C" { -#endif - #include #include "pocketpy/common/str.h" #include "pocketpy/common/vector.h" +#ifdef __cplusplus +extern "C" { +#endif + enum CompileMode { EXEC_MODE, EVAL_MODE, REPL_MODE, JSON_MODE, CELL_MODE }; struct pkpy_SourceData {