Prepare for 1.27.0 release.

This commit is contained in:
Calvin Rose 2023-03-05 09:48:25 -06:00
parent aa5c987a94
commit 01aab66667
5 changed files with 19 additions and 21 deletions

View File

@ -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.
## ??? - Unreleased ## 1.27.0 - 2023-03-05
- Change semantics around bracket tuples to no longer be equal to regular tuples. - Change semantics around bracket tuples to no longer be equal to regular tuples.
- Add `index` argument to `ffi/write` for symmetry with `ffi/read`. - Add `index` argument to `ffi/write` for symmetry with `ffi/read`.
- Add `buffer/push-at` - Add `buffer/push-at`

View File

@ -176,9 +176,9 @@ build/c/janet.c: build/janet_boot src/boot/boot.janet
######################## ########################
ifeq ($(UNAME), Darwin) ifeq ($(UNAME), Darwin)
SONAME=libjanet.1.26.dylib SONAME=libjanet.1.27.dylib
else else
SONAME=libjanet.so.1.26 SONAME=libjanet.so.1.27
endif endif
build/c/shell.c: src/mainclient/shell.c build/c/shell.c: src/mainclient/shell.c

View File

@ -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.26.1') version : '1.27.0')
# 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')

View File

@ -129,20 +129,18 @@
# For macros, we define an imcomplete odd? function that will be overriden. # For macros, we define an imcomplete odd? function that will be overriden.
(defn odd? [x] (= 1 (mod x 2))) (defn odd? [x] (= 1 (mod x 2)))
(def idempotent? (def- non-atomic-types
``` {:array true
(idempotent? x) :tuple true
:table true
:buffer true
:symbol true
:struct true})
Check if x is a value that evaluates to itself when compiled. (defn idempotent?
``` "Check if x is a value that evaluates to itself when compiled."
(do [x]
(def non-atomic-types (not (in non-atomic-types (type x))))
{:array true
:tuple true
:table true
:buffer true
:struct true})
(fn idempotent? [x] (not (in non-atomic-types (type x))))))
# C style macros and functions for imperative sugar. No bitwise though. # C style macros and functions for imperative sugar. No bitwise though.
(defn inc "Returns x + 1." [x] (+ x 1)) (defn inc "Returns x + 1." [x] (+ x 1))

View File

@ -4,10 +4,10 @@
#define JANETCONF_H #define JANETCONF_H
#define JANET_VERSION_MAJOR 1 #define JANET_VERSION_MAJOR 1
#define JANET_VERSION_MINOR 26 #define JANET_VERSION_MINOR 27
#define JANET_VERSION_PATCH 1 #define JANET_VERSION_PATCH 0
#define JANET_VERSION_EXTRA "-dev" #define JANET_VERSION_EXTRA ""
#define JANET_VERSION "1.26.1-dev" #define JANET_VERSION "1.27.0"
/* #define JANET_BUILD "local" */ /* #define JANET_BUILD "local" */