forked from rsyslog/libfastjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use configure VERSION in fjson_version() API
see also rsyslog#11 (comment) closes rsyslog#29
- Loading branch information
Showing
6 changed files
with
29 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. | ||
* Michael Clark <[email protected]> | ||
* Copyright (c) 2009 Hewlett-Packard Development Company, L.P. | ||
* Copyright (c) 2016 Adiscon GmbH | ||
* Rainer Gerhards <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or modify | ||
* it under the terms of the MIT license. See COPYING for details. | ||
|
@@ -24,7 +26,6 @@ extern "C" { | |
#include "json_object.h" | ||
#include "json_tokener.h" | ||
#include "json_object_iterator.h" | ||
#include "json_c_version.h" | ||
|
||
/** | ||
* Set initial size allocation for memory when creating strings, | ||
|
@@ -45,8 +46,11 @@ extern "C" { | |
* | ||
* @param size new initial size for printbuf (formatting buffer) | ||
*/ | ||
extern void | ||
fjson_global_set_printbuf_initial_size(int size); | ||
extern void fjson_global_set_printbuf_initial_size(int size); | ||
/** | ||
* report the current libfastjson version | ||
*/ | ||
extern const char *fjson_version(void); | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
/* | ||
* Copyright (c) 2012 Eric Haszlakiewicz | ||
* Copyright (c) 2016 Adiscon GmbH | ||
* Rainer Gerhards <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or modify | ||
* it under the terms of the MIT license. See COPYING for details. | ||
*/ | ||
#include "config.h" | ||
|
||
#include "json_c_version.h" | ||
|
||
const char *fjson_c_version(void) | ||
const char *fjson_version(void) | ||
{ | ||
return FJSON_VERSION; | ||
return VERSION; | ||
} | ||
|
||
int fjson_c_version_num(void) | ||
{ | ||
return FJSON_VERSION_NUM; | ||
} | ||
|