mirror of
https://github.com/janet-lang/janet
synced 2025-11-26 04:04:49 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a4d56afca | ||
|
|
63bb93fc07 |
@@ -1,7 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## 1.29.0 - 2023-06-19
|
## 1.29.1 - 2023-06-19
|
||||||
- Add support for passing booleans to PEGs for "always" and "never" matching.
|
- Add support for passing booleans to PEGs for "always" and "never" matching.
|
||||||
- Allow dictionary types for `take` and `drop`
|
- Allow dictionary types for `take` and `drop`
|
||||||
- Fix bug with closing channels while other fibers were waiting on them - `ev/take`, `ev/give`, and `ev/select` will now return the correct (documented) value when another fiber closes the channel.
|
- Fix bug with closing channels while other fibers were waiting on them - `ev/take`, `ev/give`, and `ev/select` will now return the correct (documented) value when another fiber closes the channel.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
project('janet', 'c',
|
project('janet', 'c',
|
||||||
default_options : ['c_std=c99', 'build.c_std=c99', 'b_lundef=false', 'default_library=both'],
|
default_options : ['c_std=c99', 'build.c_std=c99', 'b_lundef=false', 'default_library=both'],
|
||||||
version : '1.28.0')
|
version : '1.29.1')
|
||||||
|
|
||||||
# Global settings
|
# Global settings
|
||||||
janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet')
|
janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet')
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
#define JANET_VERSION_MAJOR 1
|
#define JANET_VERSION_MAJOR 1
|
||||||
#define JANET_VERSION_MINOR 29
|
#define JANET_VERSION_MINOR 29
|
||||||
#define JANET_VERSION_PATCH 0
|
#define JANET_VERSION_PATCH 1
|
||||||
#define JANET_VERSION_EXTRA ""
|
#define JANET_VERSION_EXTRA ""
|
||||||
#define JANET_VERSION "1.29.0"
|
#define JANET_VERSION "1.29.1"
|
||||||
|
|
||||||
/* #define JANET_BUILD "local" */
|
/* #define JANET_BUILD "local" */
|
||||||
|
|
||||||
|
|||||||
@@ -1437,11 +1437,11 @@ JANET_CORE_FN(os_isatty,
|
|||||||
FILE *f = (argc == 1) ? janet_getfile(argv, 0, NULL) : stdout;
|
FILE *f = (argc == 1) ? janet_getfile(argv, 0, NULL) : stdout;
|
||||||
#ifdef JANET_WINDOWS
|
#ifdef JANET_WINDOWS
|
||||||
int fd = _fileno(f);
|
int fd = _fileno(f);
|
||||||
if (fd == -1) janet_panicv(janet_ev_lasterr());
|
if (fd == -1) janet_panic("not a valid stream");
|
||||||
return janet_wrap_boolean(_isatty(fd));
|
return janet_wrap_boolean(_isatty(fd));
|
||||||
#else
|
#else
|
||||||
int fd = fileno(f);
|
int fd = fileno(f);
|
||||||
if (fd == -1) janet_panicv(janet_ev_lasterr());
|
if (fd == -1) janet_panic(strerror(errno));
|
||||||
return janet_wrap_boolean(isatty(fd));
|
return janet_wrap_boolean(isatty(fd));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user