1
0
mirror of https://github.com/janet-lang/janet synced 2026-04-29 18:21:27 +00:00

Strip trailing whitespace from many files.

Add native modules to import with module.native-path.
This commit is contained in:
Calvin Rose
2018-05-19 21:16:00 -04:00
parent 245fb948f1
commit fb409201b4
19 changed files with 173 additions and 114 deletions

View File

@@ -190,7 +190,7 @@ static int cfun_int(DstArgs args) {
for (i = 1; i < args.n; i++) {
int32_t integer;
DST_ARG_INTEGER(integer, args, i);
if (dst_buffer_push_u32(buffer, (uint32_t) integer))
if (dst_buffer_push_u32(buffer, (uint32_t) integer))
DST_THROW(args, "buffer overflow");
}
DST_RETURN(args, args.v[0]);
@@ -205,7 +205,7 @@ static int cfun_chars(DstArgs args) {
int32_t len;
const uint8_t *str;
DST_ARG_BYTES(str, len, args, i);
if (dst_buffer_push_bytes(buffer, str, len))
if (dst_buffer_push_bytes(buffer, str, len))
DST_THROW(args, "buffer overflow");
}
DST_RETURN(args, args.v[0]);