mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 02:59:54 +00:00
Prepare for 1.27.0 release.
This commit is contained in:
parent
aa5c987a94
commit
01aab66667
@ -1,7 +1,7 @@
|
||||
# Changelog
|
||||
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.
|
||||
- Add `index` argument to `ffi/write` for symmetry with `ffi/read`.
|
||||
- Add `buffer/push-at`
|
||||
|
4
Makefile
4
Makefile
@ -176,9 +176,9 @@ build/c/janet.c: build/janet_boot src/boot/boot.janet
|
||||
########################
|
||||
|
||||
ifeq ($(UNAME), Darwin)
|
||||
SONAME=libjanet.1.26.dylib
|
||||
SONAME=libjanet.1.27.dylib
|
||||
else
|
||||
SONAME=libjanet.so.1.26
|
||||
SONAME=libjanet.so.1.27
|
||||
endif
|
||||
|
||||
build/c/shell.c: src/mainclient/shell.c
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
project('janet', 'c',
|
||||
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
|
||||
janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet')
|
||||
|
@ -129,20 +129,18 @@
|
||||
# For macros, we define an imcomplete odd? function that will be overriden.
|
||||
(defn odd? [x] (= 1 (mod x 2)))
|
||||
|
||||
(def idempotent?
|
||||
```
|
||||
(idempotent? x)
|
||||
(def- non-atomic-types
|
||||
{:array true
|
||||
:tuple true
|
||||
:table true
|
||||
:buffer true
|
||||
:symbol true
|
||||
:struct true})
|
||||
|
||||
Check if x is a value that evaluates to itself when compiled.
|
||||
```
|
||||
(do
|
||||
(def non-atomic-types
|
||||
{:array true
|
||||
:tuple true
|
||||
:table true
|
||||
:buffer true
|
||||
:struct true})
|
||||
(fn idempotent? [x] (not (in non-atomic-types (type x))))))
|
||||
(defn idempotent?
|
||||
"Check if x is a value that evaluates to itself when compiled."
|
||||
[x]
|
||||
(not (in non-atomic-types (type x))))
|
||||
|
||||
# C style macros and functions for imperative sugar. No bitwise though.
|
||||
(defn inc "Returns x + 1." [x] (+ x 1))
|
||||
|
@ -4,10 +4,10 @@
|
||||
#define JANETCONF_H
|
||||
|
||||
#define JANET_VERSION_MAJOR 1
|
||||
#define JANET_VERSION_MINOR 26
|
||||
#define JANET_VERSION_PATCH 1
|
||||
#define JANET_VERSION_EXTRA "-dev"
|
||||
#define JANET_VERSION "1.26.1-dev"
|
||||
#define JANET_VERSION_MINOR 27
|
||||
#define JANET_VERSION_PATCH 0
|
||||
#define JANET_VERSION_EXTRA ""
|
||||
#define JANET_VERSION "1.27.0"
|
||||
|
||||
/* #define JANET_BUILD "local" */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user