Remove the line pragmas which confused debugger

This commit is contained in:
Shahram Najm 2019-07-19 15:40:07 +01:00
parent ba22d631d2
commit b08f88da5a
3 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,7 @@ set -xe
cd ../tests
echo "List all keys..."
./list_all_keys.ksh
cd ../src
@ -11,7 +12,7 @@ cd ../src
gperf -l -C -I -t -G -H hash_keys -N grib_keys_hash_get -m 3 ../tests/keys |\
sed '/__attribute__ ((__gnu_inline__))/d' |\
sed s/__inline//g | sed s/inline//g > grib_hash_keys.c
sed s/__inline//g | sed s/inline//g | sed -e '/^#line /d' > grib_hash_keys.c
cat grib_itrie_keys.c >> grib_hash_keys.c

View File

@ -22,6 +22,7 @@ fi
set +x
touch tmp$$
echo "Go through all files in $ECCODES_DEFINITION_PATH ..."
for file in `find $ECCODES_DEFINITION_PATH -name '*.def' -print`
do
${GRIB_LIST_KEYS} $file >> tmp$$

View File

@ -1,10 +1,10 @@
#!/usr/bin/ksh
set -x
set -ex
./list_all_keys.ksh
gperf -I -t -G -H hash_keys -N grib_keys_hash_get -m 3 keys > ../src/grib_hash_keys.c
cat ../src/grib_itrie_keys.c >> ../src/grib_hash_keys.c
cat ../src/grib_itrie_keys.c | sed -e '/^#line /d' >> ../src/grib_hash_keys.c