Calvin Rose
1808c923bf
Make negative indexing work like python.
...
This would break a lot of code :|
2023-07-14 17:18:20 -05:00
Calvin Rose
989f0726e3
Make encoding of immediate values capture full range.
2023-07-14 10:06:20 -05:00
Calvin Rose
4efcff33bd
Update inttypes.
2023-07-13 19:58:38 -05:00
Calvin Rose
8183cc5a8d
Disallow converting negative numbers to int/u64
...
The wrap-around rule doesn't make sense once subtraction is
properly fixed.
2023-07-09 22:25:20 -05:00
Calvin Rose
f3bda1536d
Remove some dead code in cfuns.c
2023-07-09 22:02:10 -05:00
Calvin Rose
3b6371e03d
Add test case for issue #1217
2023-07-09 21:56:41 -05:00
Calvin Rose
b5d3c87253
Add new opcode subtract immediate.
2023-07-09 21:51:16 -05:00
Calvin Rose
f73b8c550a
Merge pull request #1213 from sogaiu/src-view-for-ppasm
...
Add source view to .ppasm output
2023-07-09 10:54:55 -05:00
Calvin Rose
5437744126
Merge pull request #1216 from sogaiu/tweak-test-grammar-peg
...
Update and ascii-sort string escapes in peg
2023-07-08 09:26:03 -05:00
sogaiu
5a5e70b001
Update and ascii-sort string escapes in peg
2023-07-08 17:54:00 +09:00
sogaiu
348a5bc0a9
Add source view to .ppasm output
2023-07-06 13:26:03 +09:00
Calvin Rose
026c64fa01
Formatting.
2023-07-02 15:23:22 -05:00
Calvin Rose
e38663c457
Update CHANGELOG.md
2023-07-02 13:44:39 -05:00
Calvin Rose
117c741c29
Add test for marshalling channels.
2023-07-02 13:13:59 -05:00
Calvin Rose
9bc5bec9f1
More complete fix with some debugging tools.
2023-07-02 13:04:42 -05:00
Calvin Rose
a5f4e4d328
Test small fix for marshalling.
2023-07-02 12:58:55 -05:00
Calvin Rose
db0abfde72
Cache references when marshalling abstract types.
2023-07-01 18:02:56 -05:00
Calvin Rose
edf263bcb5
Make some fixes to marshalling.
2023-07-01 17:59:07 -05:00
Calvin Rose
60fba585e3
Remove extra MARK_SEEN
2023-07-01 17:37:12 -05:00
Calvin Rose
ebb6fe5be3
Patch fix for #1210
2023-07-01 10:34:11 -05:00
Calvin Rose
d91c95bf92
Merge pull request #1210 from primo-ppcg/int-bnot
...
Add bnot for int types
2023-07-01 10:19:04 -05:00
primo-ppcg
2007438424
add tests for inttypes bnot
2023-07-01 21:49:49 +07:00
primo-ppcg
81423635ad
Add bnot to int types
2023-07-01 21:41:55 +07:00
Calvin Rose
58d297364a
Change code for marshalling abstract types.
2023-07-01 08:50:56 -05:00
Calvin Rose
db902c90c4
Merge pull request #1207 from primo-ppcg/divmod
...
floor div, variadic mod
2023-07-01 08:47:06 -05:00
Calvin Rose
42ccd0f790
Merge pull request #1209 from pyrmont/bugfix.strip-macos
...
Avoid removing too many symbols with strip on macOS
2023-07-01 08:46:35 -05:00
Michael Camilleri
20ec6f574e
Avoid removing too many symbols with strip on macOS
2023-07-01 19:33:38 +09:00
primo-ppcg
b3db367ae7
Add test cases for div and mod
2023-06-30 19:48:45 +07:00
primo-ppcg
8a62c742e6
define (mod x 0)
as x
...
See: Knuth, Donald E., _The Art of Computer Programming: Volume 1: Fundamental Algorithms_, pp. 15 ([link](https://books.google.com/books?id=x9AsAwAAQBAJ&pg=PA15 ))
2023-06-30 16:15:04 +07:00
Calvin Rose
b125cbeac9
Merge pull request #1203 from czkz/add-escapes
...
Add C escape sequences
2023-06-28 20:06:10 -05:00
Calvin Rose
3f7a2c2197
Try harder to avoid string copying with janet_getcbytes.
2023-06-28 08:30:09 -05:00
Calvin Rose
f6248369fe
Update janet_getcbytes to padd buffers with trailing 0.
2023-06-28 08:18:43 -05:00
primo-ppcg
c83f3ec097
floor div, variadic mod
2023-06-28 18:31:20 +07:00
Calvin Rose
0cd00da354
Add ffi/pointer-cfunction
to FFI.
...
This allows for more flexible C interop from DLLs. Users can skip the
usual extension loading mechanism and manage function pointers manually
if they need to.
2023-06-27 19:47:19 -05:00
bakpakin
4b7b285aa9
Remove MSVC compiler warning.
2023-06-25 17:29:09 -05:00
Dmitry
d63379e777
Add parser escape sequences
2023-06-25 19:29:39 +04:00
Calvin Rose
b219b146fa
Squashed commit of the following:
...
commit fbb0711ae1
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 12:07:55 2023 -0500
Distinguish between subprocess when testing.
commit 676b233566
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 11:59:17 2023 -0500
Hack for qemu based testing (also should work with valgrind)
commit d7431c7cdb
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 11:54:04 2023 -0500
Revert "Test removing 32bit ptr marshalling."
This reverts commit 566b45ea44
.
commit 566b45ea44
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 11:52:22 2023 -0500
Test removing 32bit ptr marshalling.
commit ff2f71d2bc
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 11:42:10 2023 -0500
Conditionally compile marshal_ptr code.
commit bd420aeb0e
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 11:38:34 2023 -0500
Add range checking to bit-shift code to prevent undefined behavior.
commit b738319f8d
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 11:17:30 2023 -0500
Remove range check on 32 bit arch since it will always pass.
commit 7248626235
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 10:56:45 2023 -0500
Quiet some build warnings.
commit 141c1de946
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 10:50:13 2023 -0500
Add marshal utilities for pointers.
commit c2d77d6720
Merge: 677b8a6f
ff90b81e
Author: Calvin Rose <calsrose@gmail.com>
Date: Sat Jun 24 10:40:35 2023 -0500
Merge branch 'master' into armtest
commit 677b8a6f32
Author: Ico Doornekamp <ico@zevv.nl>
Date: Mon Jun 12 21:01:26 2023 +0200
Added ARM32 test
2023-06-24 12:13:51 -05:00
Calvin Rose
ff90b81ec3
Add some utilitites for dealing with unsigned integers in janet.h
2023-06-24 10:38:35 -05:00
Calvin Rose
9120eaef79
Merge pull request #1201 from pyrmont/bugfix.dup-fds
...
Avoid prematurely closing file descriptors when redirecting IO
2023-06-24 09:51:34 -05:00
Michael Camilleri
1ccd879916
Make test cross-platform
2023-06-24 10:56:47 +09:00
Michael Camilleri
f977ace7f8
Avoid prematurely closing file descriptors when redirecting IO
2023-06-23 15:50:19 +09:00
Calvin Rose
c3f4dc0c15
Merge pull request #1200 from sogaiu/use-vm_commit
...
Use vm_commit
2023-06-22 20:40:03 -05:00
sogaiu
78eed9b11c
Use vm_commit
2023-06-22 21:36:57 +09:00
Calvin Rose
3a4d56afca
Patch release.
2023-06-19 07:18:35 -05:00
Calvin Rose
63bb93fc07
Fix isatty code to not use functions only defined if ev is enabled.
2023-06-19 07:14:56 -05:00
Calvin Rose
5a39a04a79
Prepare for 1.29.0 release.
2023-06-19 06:48:33 -05:00
Calvin Rose
2fde34b519
Remove extra function call that cannot ever trigger.
2023-06-18 09:41:53 -05:00
Calvin Rose
1ef5c038db
Merge pull request #1187 from CosmicToast/peg-boolean
...
peg: add support for "true" and "false" primitives to always/never match
2023-06-18 09:40:46 -05:00
Calvin Rose
e2459cfb47
Merge pull request #1185 from chris-chambers/macro-lints-fix
...
Fix order in which *macro-lints* is set during expansion
2023-06-18 09:39:25 -05:00
Calvin Rose
cfffc0bcf1
Merge pull request #1190 from primo-ppcg/if-let
...
update if-let
2023-06-18 09:38:44 -05:00