Skip to content

Commit

Permalink
Move Hashtable and Set primitives to RzUtil (#3910)
Browse files Browse the repository at this point in the history
* update meson.build for changed file paths
* move ht_*.h to librz/include/rz_util
* add librz/include/rz_util/ht_*.h to librz/include/meson.build
  • Loading branch information
vanshjangir committed Oct 12, 2023
1 parent 19dbb57 commit fb863ae
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 12 deletions.
5 changes: 5 additions & 0 deletions librz/include/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ rz_util_files = [
'rz_util/rz_utf8.h',
'rz_util/rz_version.h',
'rz_util/rz_x509.h',
'rz_util/ht_inc.h',
'rz_util/ht_pp.h',
'rz_util/ht_pu.h',
'rz_util/ht_up.h',
'rz_util/ht_uu.h',
]
install_headers(rz_util_files, install_dir: join_paths(rizin_incdir, 'rz_util'))

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion librz/util/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ rz_util_common_sources = [
'version.c',
'w32-sys.c',
'x509.c',
'ht/ht_uu.c',
'ht/ht_pp.c',
'ht/ht_up.c',
'ht/ht_pu.c',
'set.c',
]
rz_util_sources = rz_util_common_sources

Expand Down Expand Up @@ -112,7 +117,7 @@ else
rz_util_sources += ['big.c']
endif

rz_util_includes = [platform_inc, include_directories('sdb/src', 'sdb')]
rz_util_includes = [platform_inc, include_directories('sdb/src', 'sdb', '../include/rz_util', '.')]

rz_util = library('rz_util', rz_util_sources, libsdb_sources,
include_directories: rz_util_includes,
Expand Down
11 changes: 0 additions & 11 deletions librz/util/sdb/src/meson.build
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
libsdb_sources = files(
'array.c',
'set.c',
'base64.c',
'buffer.c',
'cdb.c',
'cdb_make.c',
'diff.c',
'disk.c',
'fmt.c',
'ht_uu.c',
'ht_pp.c',
'ht_up.c',
'ht_pu.c',
'lock.c',
'ls.c',
'match.c',
Expand All @@ -30,15 +25,9 @@ include_files = files(
'buffer.h',
'cdb.h',
'cdb_make.h',
'ht_inc.h',
'ht_pp.h',
'ht_up.h',
'ht_uu.h',
'ht_pu.h',
'ls.h',
'sdb.h',
'sdbht.h',
'set.h',
)

install_headers(include_files, install_dir: join_paths(rizin_incdir, 'sdb'))
File renamed without changes.
File renamed without changes.

0 comments on commit fb863ae

Please sign in to comment.