summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-09-11 18:39:35 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-09-11 18:39:35 +0200
commit1b00a42ee2b37a4a6fdbf038f2e40129d1ef0546 (patch)
tree542a26f51418b32013b927d8e669a498953b3488 /rpmdb
parent60ac36429557d14e0962e926efdc06b29dd9818a (diff)
downloadlibrpm-tizen-1b00a42ee2b37a4a6fdbf038f2e40129d1ef0546.tar.gz
librpm-tizen-1b00a42ee2b37a4a6fdbf038f2e40129d1ef0546.tar.bz2
librpm-tizen-1b00a42ee2b37a4a6fdbf038f2e40129d1ef0546.zip
Remove splint tags in tagtbl.c generation magic.
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/Makefile.am7
1 files changed, 1 insertions, 6 deletions
diff --git a/rpmdb/Makefile.am b/rpmdb/Makefile.am
index 9d2463643..9369aa50c 100644
--- a/rpmdb/Makefile.am
+++ b/rpmdb/Makefile.am
@@ -56,23 +56,18 @@ librpmdb_la_LIBADD = \
$(libdb_la)
tagtbl.c: Makefile.am $(top_srcdir)/lib/rpmlib.h
- @echo '/*@-bounds@*/' > $@
- @echo '#include "system.h"' >> $@
+ @echo '#include "system.h"' > $@
@echo '#include <rpmlib.h>' >> $@
@echo '#include "debug.h"' >> $@
@echo '' >> $@
- @echo '/*@observer@*/ /*@unchecked@*/' >> $@
@echo 'static const struct headerTagTableEntry_s rpmTagTbl[] = {' >> $@
${AWK} '/(RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ && !/internal/ {tt = "NULL"; ta = "ANY"; if ($$5 == "c") {tt = "CHAR"; ta = "SCALAR"} if ($$5 == "c[]") {tt = "CHAR"; ta = "ARRAY"} if ($$5 == "h") {tt = "INT16"; ta = "SCALAR"} if ($$5 == "h[]") {tt = "INT16"; ta = "ARRAY"} if ($$5 == "i") {tt = "INT32"; ta = "SCALAR"} if ($$5 == "i[]") {tt = "INT32"; ta = "ARRAY"} if ($$5 == "l") {tt = "INT64"; ta = "SCALAR"} if ($$5 == "l[]") {tt = "INT64"; ta = "ARRAY"} if ($$5 == "s") {tt = "STRING"; ta = "SCALAR"} if ($$5 == "s[]") {tt = "STRING_ARRAY"; ta = "ARRAY"} if ($$5 == "s{}") {tt = "I18NSTRING"; ta = "SCALAR"} if ($$5 == "x") {tt = "BIN"; ta = "SCALAR"} if ($$2 == "=") { printf("\t{ \"%s\", %s RPM_%s_TYPE + RPM_%s_RETURN_TYPE },\n", $$1, $$3, tt, ta) } else { printf("\t{ \"%s\", %s, RPM_%s_TYPE + RPM_%s_RETURN_TYPE },\n", $$2, $$3, tt, ta) } }' < ${top_srcdir}/lib/rpmlib.h | sort >> $@
@echo ' { NULL, 0, 0 }' >> $@
@echo '};' >> $@
@echo '' >> $@
- @echo '/*@observer@*/ /*@unchecked@*/' >> $@
@echo 'const struct headerTagTableEntry_s * rpmTagTable = rpmTagTbl;' >> $@
@echo '' >> $@
- @echo '/*@unchecked@*/' >> $@
@echo 'const int rpmTagTableSize = sizeof(rpmTagTbl) / sizeof(rpmTagTbl[0]) - 1;' >> $@
- @echo '/*@=bounds@*/' >> $@
db.h: ../$(WITH_DB_SUBDIR)/db.h
$(LN_S) ../$(WITH_DB_SUBDIR)/db.h $@