Commit 0a97bd14 authored by Seth Howell's avatar Seth Howell Committed by Jim Harris
Browse files

json_internal.h: rename to utf.h and place in spdk_internal



Change-Id: I1b1f3a6c10b97c6323e52b58537293f6a6c5c56b
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/394117


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 095f4254
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -31,8 +31,8 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef SPDK_JSON_INTERNAL_H_
#define SPDK_JSON_INTERNAL_H_
#ifndef SPDK_UTF_H_
#define SPDK_UTF_H_

#include "spdk/stdinc.h"

@@ -41,8 +41,6 @@
#include "spdk/likely.h"
#include "spdk/string.h"

#define SPDK_JSON_MAX_NESTING_DEPTH	64

static inline bool
utf8_tail(uint8_t c)
{
+3 −1
Original line number Diff line number Diff line
@@ -31,7 +31,9 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "json_internal.h"
#include "spdk_internal/utf.h"

#define SPDK_JSON_MAX_NESTING_DEPTH	64

static int
hex_value(uint8_t c)
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "json_internal.h"
#include "spdk_internal/utf.h"

size_t
spdk_json_val_len(const struct spdk_json_val *val)
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "json_internal.h"
#include "spdk_internal/utf.h"

struct spdk_json_write_ctx {
	spdk_json_write_cb write_cb;