diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-27 01:22:42 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-27 01:22:42 +0000 |
| commit | 938773d9cc062fd028f6560b1127a2ecd23f61c3 (patch) | |
| tree | 403aacd629975440ba23a645975c34a141d634ee /plugins | |
| parent | 2f47bdf7f49f05bd421e4182635f489c8cae01b3 (diff) | |
Fixed constant hex/oct bug + Fixed some of the examples (work in progress) + added bootloader example (I will add some docs)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/zprep_plugin.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/zprep_plugin.h b/plugins/zprep_plugin.h index 1cea813..cbf07b2 100644 --- a/plugins/zprep_plugin.h +++ b/plugins/zprep_plugin.h @@ -7,23 +7,23 @@ /** * @brief Host API provided to plugins. - * + * * Plugins use this structure to interact with the compiler/codegen environment. */ typedef struct { // Context Information (Where are we?). - const char *filename; ///< Current file name being processed. - int current_line; ///< Current line number. - FILE *out; ///< Inline output stream (replaces the macro call). - FILE *hoist_out; ///< Hoisted output stream (writes to file scope/header). + const char *filename; ///< Current file name being processed. + int current_line; ///< Current line number. + FILE *out; ///< Inline output stream (replaces the macro call). + FILE *hoist_out; ///< Hoisted output stream (writes to file scope/header). } ZApi; /** * @brief The Plugin Function Signature. - * + * * Plugins must implement a function with this signature to handle transpilation. - * + * * @param input_body The raw text content inside the plugin call. * @param api Pointer to the host API structure. */ @@ -34,13 +34,13 @@ typedef void (*ZPluginTranspileFn)(const char *input_body, const ZApi *api); */ typedef struct { - char name[32]; ///< Name of the plugin. - ZPluginTranspileFn fn; ///< Pointer to the transpilation function. + char name[32]; ///< Name of the plugin. + ZPluginTranspileFn fn; ///< Pointer to the transpilation function. } ZPlugin; /** * @brief Signature for the plugin entry point. - * + * * Dynamic libraries must export a function named `z_init` matching this signature. */ typedef ZPlugin *(*ZPluginInitFn)(void); |
