Skip to content

Commit

Permalink
Introduce new JSON parser utility
Browse files Browse the repository at this point in the history
This patch introduces a utility in OPAL based on the 3rd-party project
https://github.com/json-parser/json-parser.git

The utility provides APIs to read JSON into memory along with getters to
retrieve C values.

Signed-off-by: Wenduo Wang <[email protected]>
  • Loading branch information
wenduwan committed May 10, 2024
1 parent 8b4237c commit ab22d6e
Show file tree
Hide file tree
Showing 12 changed files with 2,102 additions and 22 deletions.
5 changes: 4 additions & 1 deletion config/opal_config_files.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# Copyright (c) 2020 The University of Tennessee and The University
# of Tennessee Research Foundation. All rights
# reserved.
# Copyright (c) 2022 Amazon.com, Inc. or its affiliates. All Rights reserved.
# Copyright (c) 2022-2024 Amazon.com, Inc. or its affiliates.
# All Rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand All @@ -21,6 +22,8 @@ AC_DEFUN([OPAL_CONFIG_FILES],[
opal/include/Makefile
opal/datatype/Makefile
opal/util/Makefile
opal/util/json/Makefile
opal/util/json/3rd-party/Makefile
opal/util/keyval/Makefile
opal/mca/base/Makefile
opal/tools/wrappers/Makefile
Expand Down
8 changes: 6 additions & 2 deletions opal/util/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Copyright (c) 2016 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
# Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
# Copyright (c) 2020-2024 Amazon.com, Inc. or its affiliates.
# All Rights reserved.
# Copyright (c) 2021 Google, LLC. All rights reserved.
# $COPYRIGHT$
Expand All @@ -27,7 +27,9 @@
# $HEADER$
#

SUBDIRS = keyval
SUBDIRS = \
json \
keyval

dist_opaldata_DATA = help-opal-util.txt

Expand Down Expand Up @@ -127,8 +129,10 @@ libopalutil_core_la_SOURCES += timings.c
endif

libopalutil_core_la_LIBADD = \
json/libopalutil_json.la \
keyval/libopalutilkeyval.la
libopalutil_core_la_DEPENDENCIES = \
json/libopalutil_json.la \
keyval/libopalutilkeyval.la

# Conditionally install the header files
Expand Down
15 changes: 15 additions & 0 deletions opal/util/json/3rd-party/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright (c) 2024 Amazon.com, Inc. or its affiliates.
# All Rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

noinst_LTLIBRARIES = libopalutil_json_3p.la

libopalutil_json_3p_la_SOURCES = \
json.h \
json.c
Loading

0 comments on commit ab22d6e

Please sign in to comment.