Skip to content

Commit

Permalink
jansson 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Sep 18, 2016
1 parent 074bb38 commit b02db47
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
22 changes: 22 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
Version 2.9
===========

Released 2016-09-18

* New features:

- Add ``json_auto_t`` to automatically decref a value that goes out
of scope. Available only on GCC and Clang. (#301)

* Build:

- Fix CMake build (at least on Linux) by removing conflicting
jansson_config.h from the distribution (#306)

- Change CMake install target generation to be optional (#305)

* Documentation:

- Small documentation fixes.


Version 2.8
===========

Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ endif (WIN32)
# set (JANSSON_VERSION "2.3.1")
# set (JANSSON_SOVERSION 2)

set(JANSSON_DISPLAY_VERSION "2.8")
set(JANSSON_DISPLAY_VERSION "2.9")

# This is what is required to match the same numbers as automake's
set(JANSSON_VERSION "4.8.0")
set(JANSSON_VERSION "4.9.0")
set(JANSSON_SOVERSION 4)

# for CheckFunctionKeywords
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.60])
AC_INIT([jansson], [2.8], [petri@digip.org])
AC_INIT([jansson], [2.9], [petri@digip.org])

AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([1.10 foreign])
Expand Down
2 changes: 2 additions & 0 deletions doc/apiref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ returns an error status.
Scope Dereferencing
-------------------

.. versionadded:: 2.9

It is possible to use the ``json_auto_t`` type to automatically
dereference a value at the end of a scope. For example::

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ libjansson_la_SOURCES = \
libjansson_la_LDFLAGS = \
-no-undefined \
-export-symbols-regex '^json_' \
-version-info 12:0:8
-version-info 13:0:9
4 changes: 2 additions & 2 deletions src/jansson.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ extern "C" {
/* version */

#define JANSSON_MAJOR_VERSION 2
#define JANSSON_MINOR_VERSION 8
#define JANSSON_MINOR_VERSION 9
#define JANSSON_MICRO_VERSION 0

/* Micro version is omitted if it's 0 */
#define JANSSON_VERSION "2.8"
#define JANSSON_VERSION "2.9"

/* Version as a 3-byte hex number, e.g. 0x010201 == 1.2.1. Use this
for numeric comparisons, e.g. #if JANSSON_VERSION_HEX >= ... */
Expand Down

0 comments on commit b02db47

Please sign in to comment.