diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-15 12:11:02 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-15 12:11:02 +0000 |
| commit | 7411d71fbde5d652f04cc8851ed93bd15513968b (patch) | |
| tree | 2fe1e8fa9a604dc558a0528d8f465bef8b597aab /plugins | |
| parent | 1925cf6f1a8c134cbfae728023ac325f03e4c14f (diff) | |
Some docs for plugins, among other things.
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/befunge.c | 5 | ||||
| -rw-r--r-- | plugins/brainfuck.c | 5 | ||||
| -rw-r--r-- | plugins/forth.c | 2 | ||||
| -rw-r--r-- | plugins/lisp.c | 5 | ||||
| -rw-r--r-- | plugins/regex.c | 5 | ||||
| -rw-r--r-- | plugins/sql.c | 5 |
6 files changed, 26 insertions, 1 deletions
diff --git a/plugins/befunge.c b/plugins/befunge.c index 92165f4..fecfdb5 100644 --- a/plugins/befunge.c +++ b/plugins/befunge.c @@ -197,3 +197,8 @@ void befunge_transpile(const char *input_body, const ZApi *api) } ZPlugin befunge_plugin = {.name = "befunge", .fn = befunge_transpile}; + +ZPlugin *z_plugin_init(void) +{ + return &befunge_plugin; +} diff --git a/plugins/brainfuck.c b/plugins/brainfuck.c index 576029b..67758c3 100644 --- a/plugins/brainfuck.c +++ b/plugins/brainfuck.c @@ -42,3 +42,8 @@ void bf_transpile(const char *input_body, const ZApi *api) } ZPlugin brainfuck_plugin = {.name = "brainfuck", .fn = bf_transpile}; + +ZPlugin *z_plugin_init(void) +{ + return &brainfuck_plugin; +} diff --git a/plugins/forth.c b/plugins/forth.c index 90e05c6..f79fecc 100644 --- a/plugins/forth.c +++ b/plugins/forth.c @@ -631,7 +631,7 @@ void zprep_forth_plugin_fn(const char *input_body, const ZApi *api) ZPlugin forth_plugin = {.name = "forth", .fn = zprep_forth_plugin_fn}; -ZPlugin *zprep_plugin_init() +ZPlugin *z_plugin_init() { return &forth_plugin; } diff --git a/plugins/lisp.c b/plugins/lisp.c index 439dd16..30268bb 100644 --- a/plugins/lisp.c +++ b/plugins/lisp.c @@ -488,3 +488,8 @@ void lisp_transpile(const char *input_body, const ZApi *api) } ZPlugin lisp_plugin = {.name = "lisp", .fn = lisp_transpile}; + +ZPlugin *z_plugin_init(void) +{ + return &lisp_plugin; +} diff --git a/plugins/regex.c b/plugins/regex.c index fb63986..a207832 100644 --- a/plugins/regex.c +++ b/plugins/regex.c @@ -224,3 +224,8 @@ static void emit_match_logic(const char *pattern, FILE *out) } ZPlugin regex_plugin = {.name = "regex", .fn = regex_transpile}; + +ZPlugin *z_plugin_init(void) +{ + return ®ex_plugin; +} diff --git a/plugins/sql.c b/plugins/sql.c index 130317f..dedb289 100644 --- a/plugins/sql.c +++ b/plugins/sql.c @@ -413,3 +413,8 @@ void sql_transpile(const char *input_body, const ZApi *api) } ZPlugin sql_plugin = {.name = "sql", .fn = sql_transpile}; + +ZPlugin *z_plugin_init(void) +{ + return &sql_plugin; +} |
