Skip to content

Commit

Permalink
Prepare for 1.27.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpakin committed Mar 5, 2023
1 parent aa5c987 commit 01aab66
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
26 changes: 12 additions & 14 deletions src/boot/boot.janet
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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))))))
(def- non-atomic-types
{:array true
:tuple true
:table true
:buffer true
:symbol true
:struct true})

(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))
Expand Down
8 changes: 4 additions & 4 deletions src/conf/janetconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" */

Expand Down

0 comments on commit 01aab66

Please sign in to comment.