1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 22:53:16 +00:00

Update for windows compiler warning.

This commit is contained in:
Calvin Rose 2021-05-30 16:42:58 -05:00
parent b990d77f16
commit 60214dc659
2 changed files with 5 additions and 5 deletions

View File

@ -2099,7 +2099,7 @@
(defn warn-compile
"Default handler for a compile warning"
[msg where &opt line col]
[msg level where &opt line col]
(def ec (dyn :err-color))
(eprin
(if ec "\e[33m" "")
@ -2108,7 +2108,7 @@
line
":"
col
": compile warning: ")
": compile warning (" level "): ")
(eprint msg (if ec "\e[0m" ""))
(eflush))
@ -2215,7 +2215,7 @@
(<= l lint-error) (do
(set good false)
(on-compile-error msg nil where (or line l) (or col c)))
(<= l lint-warning) (on-compile-warning msg where (or line l) (or col c))))
(<= l lint-warning) (on-compile-warning msg level where (or line l) (or col c))))
(when good
(if (= (type res) :function)
(evaluator res source env where)

View File

@ -436,7 +436,7 @@ static void _janet_cfuns_prefix(JanetTable *env, const char *regprefix, const Ja
janet_table_put(janet_vm_registry, fun, name);
cfuns++;
}
janet_free(longname_buffer);
(janet_free)(longname_buffer);
}
void janet_cfuns_prefix(JanetTable *env, const char *regprefix, const JanetReg *cfuns) {
@ -761,7 +761,7 @@ void *(janet_malloc)(size_t size) {
}
void (janet_free)(void *ptr) {
return janet_free(ptr);
janet_free(ptr);
}
void *(janet_calloc)(size_t nmemb, size_t size) {