ECC-1508: Helper scripts

This commit is contained in:
Shahram Najm 2023-01-29 22:29:03 +00:00
parent 9277d89d98
commit 46ff2952d5
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ echo "List all keys..."
cd ../src
# Editing keys grib_hash_keys.c
# Editing keys grib_hash_keys.cpp
# -l Compare key lengths before trying a string comparison
# -C Make the contents of generated lookup tables constant, i.e., readonly
# -I Include the necessary system include file <string.h> at the beginning of the code
@ -18,8 +18,8 @@ cd ../src
# -N Specify name of generated lookup function
gperf -l -C -I -t -G -H hash_keys -N grib_keys_hash_get -m 3 ../tests/keys |\
sed -e '/^#line /d' > grib_hash_keys.c
sed -e '/^#line /d' > grib_hash_keys.cpp
cat grib_itrie_keys.c >> grib_hash_keys.c
cat grib_itrie_keys.cpp >> grib_hash_keys.cpp
echo ALL DONE