mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Version 1.5.1
This commit is contained in:
parent
7553b277db
commit
bcd2089f71
@ -1,8 +1,10 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
### Unreleased
|
### 1.5.1 - 2019-11-16
|
||||||
- Fix bug when printing buffer to self in some cases.
|
- Fix bug when printing buffer to self in some edge cases.
|
||||||
|
- Fix bug with `jpm` on windows.
|
||||||
|
- Fix `update` return value.
|
||||||
|
|
||||||
## 1.5.0 - 2019-11-10
|
## 1.5.0 - 2019-11-10
|
||||||
- `os/date` now defaults to UTC.
|
- `os/date` now defaults to UTC.
|
||||||
|
@ -30,7 +30,7 @@ install:
|
|||||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %platform%
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %platform%
|
||||||
- build_win test-install
|
- build_win test-install
|
||||||
- set janet_outname=%appveyor_repo_tag_name%
|
- set janet_outname=%appveyor_repo_tag_name%
|
||||||
- if "%janet_outname%"=="" set janet_outname=v1.5.0
|
- if "%janet_outname%"=="" set janet_outname=v1.5.1
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Version
|
# Version
|
||||||
!define VERSION "1.5.0"
|
!define VERSION "1.5.1"
|
||||||
!define PRODUCT_VERSION "${VERSION}.0"
|
!define PRODUCT_VERSION "${VERSION}.0"
|
||||||
VIProductVersion "${PRODUCT_VERSION}"
|
VIProductVersion "${PRODUCT_VERSION}"
|
||||||
VIFileVersion "${PRODUCT_VERSION}"
|
VIFileVersion "${PRODUCT_VERSION}"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
project('janet', 'c',
|
project('janet', 'c',
|
||||||
default_options : ['c_std=c99', 'b_lundef=false', 'default_library=both'],
|
default_options : ['c_std=c99', 'b_lundef=false', 'default_library=both'],
|
||||||
version : '1.5.0')
|
version : '1.5.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')
|
||||||
|
@ -966,13 +966,13 @@
|
|||||||
(defn zipcoll
|
(defn zipcoll
|
||||||
"Creates a table from two arrays/tuples.
|
"Creates a table from two arrays/tuples.
|
||||||
Returns a new table."
|
Returns a new table."
|
||||||
[keys vals]
|
[ks vs]
|
||||||
(def res @{})
|
(def res @{})
|
||||||
(def lk (length keys))
|
(def lk (length ks))
|
||||||
(def lv (length vals))
|
(def lv (length vs))
|
||||||
(def len (if (< lk lv) lk lv))
|
(def len (if (< lk lv) lk lv))
|
||||||
(for i 0 len
|
(for i 0 len
|
||||||
(put res (in keys i) (in vals i)))
|
(put res (in ks i) (in vs i)))
|
||||||
res)
|
res)
|
||||||
|
|
||||||
(defn get-in
|
(defn get-in
|
||||||
@ -981,7 +981,7 @@
|
|||||||
[ds ks &opt dflt]
|
[ds ks &opt dflt]
|
||||||
(var d ds)
|
(var d ds)
|
||||||
(loop [k :in ks :while d] (set d (get d k)))
|
(loop [k :in ks :while d] (set d (get d k)))
|
||||||
(or d dflt))
|
(if (= nil d) dflt d))
|
||||||
|
|
||||||
(defn update-in
|
(defn update-in
|
||||||
"Update a value in a nested data structure by applying f to the current value.
|
"Update a value in a nested data structure by applying f to the current value.
|
||||||
|
@ -28,9 +28,9 @@
|
|||||||
|
|
||||||
#define JANET_VERSION_MAJOR 1
|
#define JANET_VERSION_MAJOR 1
|
||||||
#define JANET_VERSION_MINOR 5
|
#define JANET_VERSION_MINOR 5
|
||||||
#define JANET_VERSION_PATCH 0
|
#define JANET_VERSION_PATCH 1
|
||||||
#define JANET_VERSION_EXTRA ""
|
#define JANET_VERSION_EXTRA ""
|
||||||
#define JANET_VERSION "1.5.0"
|
#define JANET_VERSION "1.5.1"
|
||||||
|
|
||||||
/* #define JANET_BUILD "local" */
|
/* #define JANET_BUILD "local" */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user