Skip to content

Commit

Permalink
#232: updated for PackageManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Jul 12, 2021
1 parent 3072945 commit 62a38af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ static int set_package_devmode(const char *pkgname, int pos)
kx_strbuf[pos++] = 'd';
kx_strbuf[pos++] = 'e';
kx_strbuf[pos++] = 'v';
kx_strbuf[pos] = 0;
}
kx_strbuf[pos] = 0;
return pos;
}

Expand All @@ -167,6 +167,7 @@ static int set_package_version(const char *pkgname, int pos)
kx_strbuf[pos++] = PATH_DELCH;
}
}
kx_strbuf[pos] = 0;
return pos;
}

Expand Down Expand Up @@ -194,7 +195,7 @@ static int load_using_module_asta(const char *name, int len, const char *pkgname
const char *search = kxlib_file_exists(path);
if (!search) {
const char *msg = pkgname && !is_package_installed(pkgname)
? static_format("Package(%s) not installed", pkgname, path)
? static_format("Package(%s/%s) not installed", pkgname, path)
: static_format("Library file not found(%s)", path);
kx_yyerror(msg);
while (kx_lexinfo.ch && kx_lexinfo.ch != ';') {
Expand Down Expand Up @@ -247,7 +248,7 @@ static int load_using_module(const char *name, const char *pkgname, const char *
if (!file) {
if (!no_error) {
const char *msg = pkgname && !is_package_installed(pkgname)
? static_format("Package(%s) not installed", pkgname, name)
? static_format("Package(%s/%s) not installed", pkgname, name)
: static_format("Library file not found(%s)", name);
kx_yyerror(msg);
}
Expand Down

0 comments on commit 62a38af

Please sign in to comment.