summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-15 12:11:02 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-15 12:11:02 +0000
commit7411d71fbde5d652f04cc8851ed93bd15513968b (patch)
tree2fe1e8fa9a604dc558a0528d8f465bef8b597aab /src/main.c
parent1925cf6f1a8c134cbfae728023ac325f03e4c14f (diff)
Some docs for plugins, among other things.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/main.c b/src/main.c
index 49691ea..2c33a6b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -125,7 +125,7 @@ int main(int argc, char **argv)
{
g_config.emit_c = 1;
}
- else if (strcmp(arg, "--version") == 0|| strcmp(arg, "-V") == 0)
+ else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-V") == 0)
{
print_version();
return 0;
@@ -228,21 +228,6 @@ int main(int argc, char **argv)
// Scan for build directives (e.g. //> link: -lm)
scan_build_directives(&ctx, src);
- // Register built-in plugins
- extern ZPlugin brainfuck_plugin;
- extern ZPlugin befunge_plugin;
- extern ZPlugin lisp_plugin;
- extern ZPlugin forth_plugin;
- extern ZPlugin regex_plugin;
- extern ZPlugin sql_plugin;
-
- zptr_register_plugin(&brainfuck_plugin);
- zptr_register_plugin(&befunge_plugin);
- zptr_register_plugin(&lisp_plugin);
- zptr_register_plugin(&forth_plugin);
- zptr_register_plugin(&regex_plugin);
- zptr_register_plugin(&sql_plugin);
-
Lexer l;
lexer_init(&l, src);