Skip to content

Commit

Permalink
Fix vlang build
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 24, 2023
1 parent d23c191 commit 209b12b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions vlang/v.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,17 @@ static bool lang_v_file(RLang *lang, const char *file) {
return 0;
}

static bool lang_v_run(RLang *lang, const char *code, int len) {
return __run (lang, code, len);
static bool lang_v_run(RLangSession *s, const char *code, int len) {
return __run (s->lang, code, len);
}

static RLangPlugin r_lang_plugin_v = {
.name = "v",
.meta = {
.name = "v",
.license = "LGPL",
.desc = "V language extension",
},
.ext = "v",
.desc = "V language extension",
.license = "LGPL",
.run = lang_v_run,
.run_file = (void*)lang_v_file,
};
Expand Down

0 comments on commit 209b12b

Please sign in to comment.