Michael Camilleri
f3bab72a86
Add comment to explain Linux check in Makefile
2021-10-21 14:23:23 +09:00
Michael Camilleri
2bd63c2d27
Fix error for uname switch -o on macOS
2021-10-21 14:13:51 +09:00
Calvin Rose
545d9e85e9
Update CHANGELOG.md
2021-10-20 19:57:02 -05:00
Calvin Rose
21a4ab4ec7
Hang forever instead of exit early on channel deadlock.
...
While not technically needed, the behavior is more intuitive and will
prevent people from writing bad scripts.
2021-10-20 19:53:29 -05:00
Calvin Rose
66fbbeb5ec
Why is the copyright gone...
2021-10-20 18:05:32 -05:00
Calvin Rose
55879c7b6d
Fix checked for fiber being dead.
2021-10-19 09:03:24 -05:00
Calvin Rose
66c4e5a5e2
Prepare for patch release.
2021-10-16 15:05:48 -05:00
Calvin Rose
884139e246
Merge pull request #843 from jgarte/jgarte-patch-typo
...
Fix typo in docstring
2021-10-16 12:51:45 -05:00
Calvin Rose
c3d7b1541e
Merge branch 'master' into jgarte-patch-typo
2021-10-16 12:51:38 -05:00
Calvin Rose
51ada4d70b
Merge pull request #840 from bradms/android-termux
...
Support Android (termux)
2021-10-16 12:50:24 -05:00
jgart
e3a5d52c5e
Fix typo in docstring
2021-10-16 11:48:59 -04:00
Brad Svercl
559fd70737
Add android-spawn to meson.build if found
2021-10-15 21:39:03 -05:00
Brad Svercl
e0dba85cbb
Support Android (termux)
2021-10-14 21:18:35 -05:00
Calvin Rose
74c9cf03d0
Fix -r switch in repl
2021-10-14 17:25:12 -05:00
Calvin Rose
0774e79e4f
Pass non-blocking pipes to subprocesses on non-windows platform.
2021-10-14 13:57:51 -05:00
Calvin Rose
a3ec37741a
Merge pull request #835 from MorganPeterson/update-string-docs
...
Updated string/bytes docs to reflect return value as tuple
2021-10-12 00:22:50 -05:00
MorganPeterson
9bf5cd83c3
updated string/bytes docs to reflect return value as tuple
2021-10-11 13:45:31 -04:00
Calvin Rose
f0da793f99
Prepare for 1.18.0 release
2021-10-10 09:27:31 -05:00
Calvin Rose
684f3ac172
Add optional base to scan-number.
2021-10-10 09:07:56 -05:00
Calvin Rose
3e5bd460a5
Add line/col info to parse error in janet_[dobytes, dostring]
2021-10-08 09:25:00 -05:00
Calvin Rose
3b1d787fbe
Address #829 - Set state->event inside linked list traversal for epoll.
2021-10-08 08:35:47 -05:00
Calvin Rose
980f55ff69
Merge pull request #828 from sogaiu/add-argument-to-janet-panicf-call
...
Add argument to some janet_panicf calls
2021-10-08 08:23:55 -05:00
sogaiu
52ed68bfeb
Add argument to janet_panicf call (2)
2021-10-07 20:58:50 +09:00
sogaiu
be0d4c28e4
Add argument to janet_panicf call
2021-10-07 16:38:40 +09:00
Calvin Rose
79807bf2ab
Merge pull request #827 from sogaiu/tweak-format-strings
...
Tweak format strings
2021-10-06 17:48:53 -05:00
Calvin Rose
e48ca1a03f
Merge pull request #826 from rick2600/fix-uaf-cfun_array_concat
...
fix issue #825
2021-10-06 17:48:27 -05:00
sogaiu
eae18ce973
Tweak format strings
2021-10-06 20:34:33 +09:00
rick2600
591344ca9d
fix issue #825
2021-10-05 01:45:59 -03:00
Calvin Rose
fbe067823e
Merge pull request #824 from GrayJack/rnd-double-capi
...
Expose `janet_rng_double` to the C API
2021-10-04 13:54:10 -05:00
GrayJack
ffece911e6
Expose janet_rng_double
to the C API
2021-10-03 00:52:34 -03:00
Calvin Rose
186afa9651
Merge pull request #823 from llmII/fix-kqueue-hang
...
Fix #822 - kqueue hang in suite 9.
2021-09-30 10:50:04 -05:00
llmII
6b3037106a
Fix #822 - kqueue hang in suite 9.
...
Priorly we only checked exactly one state when an event was received.
This was incorrect. A state may have a next state, an action to take
after the first in the list of states has been taken. This change
acknowledges that and makes the code work with the state list vs just
the head of the list.
2021-09-30 06:56:09 -05:00
Calvin Rose
1bf22288ee
Merge pull request #821 from llmII/fix-kqueue
...
Fix #819 timeouts under kqueue on FreeBSD broken
2021-09-29 15:51:46 -05:00
llmII
3cec470f25
Change the way timeouts work in kqueue.
...
Don't use a timer filter, just set the timeout on each call to kevent.
Should hopefully work around the 1ms minimum on NetBSD and be possibly
more performant.
2021-09-29 15:19:30 -05:00
llmII
e1ec0d13ae
Fixing kqueue under the BSDs.
...
FreeBSD is the only BSD supporting ABSTIME timers, whereas the rest
demand intervals. Janet operates on timestamps, which are absolute
times, as per ABSTIME. The idea was to use that under FreeBSD but not
the other BSDs. This commit changes that since ABSTIME breaks when the
timeout supplied is for a time prior to whatever the time is
now (invalid argument). We now utilize the same logic we use on the
other BSDs with FreeBSD to effect interval timeouts since intervals are
absolutely sometime beyond now, be it now and less than a millisecond,
or more than a millisecond. This will hopefully unbreak BSD builds when
running the test suite.
2021-09-28 17:40:38 -05:00
bakpakin
924fe97fc3
Address #820 - ev/cancel to work on already scheduled fibers.
2021-09-28 15:42:16 -05:00
bakpakin
504411eade
Update suite 009 to do read and write in parallel.
2021-09-28 12:05:28 -05:00
Calvin Rose
038ca1b9ca
Update README.md
2021-09-27 21:20:06 -05:00
Calvin Rose
544b192f8c
Fix bad docstring change.
2021-09-25 14:32:23 -05:00
Calvin Rose
7748ccdb8e
Fix network byte order port.
2021-09-25 14:31:19 -05:00
Calvin Rose
64e29c6fce
More simplification and removal of macros.
2021-09-25 13:53:27 -05:00
Calvin Rose
acdf097998
Refactor of peername and localname to be much more direct.
...
Also remove a lot of overly general code from cqueues. Janet has more
opinionated error handling so we can avoid a lot error propagation code.
2021-09-25 13:38:36 -05:00
Calvin Rose
ba3107c1fa
Merge branch 'master' of github.com:janet-lang/janet
2021-09-21 18:03:25 -05:00
Calvin Rose
9985f787eb
Add custom base option to number peg combinator.
...
Allows parsing custom bases without needed Janet specific prefixes.
2021-09-21 18:02:42 -05:00
Calvin Rose
d6f41bcf98
Merge pull request #811 from sogaiu/use-deprecation-mechanism-for-file-popen
...
Apply deprecation machinery to file/popen
2021-09-21 15:16:20 -05:00
Calvin Rose
50bced49ad
Merge branch 'master' into use-deprecation-mechanism-for-file-popen
2021-09-21 15:15:36 -05:00
Calvin Rose
4fd7470bbf
Remove accidental limit on max read size.
2021-09-21 09:55:40 -05:00
Calvin Rose
033c6f1fdb
Add -i flag to run .jimage files as scripts.
2021-09-19 19:47:57 -05:00
Calvin Rose
6c58347916
Remove thread module.
...
Instead, use the more general and non-blocing `ev/` module.
2021-09-19 14:19:32 -05:00
Calvin Rose
cccbdc164c
Add (number combinator to peg).
...
This allows using Janet's number parser without creating
intermediate strings.
2021-09-19 13:02:16 -05:00