diff options
author | jbj <devnull@localhost> | 2002-06-15 19:43:41 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-06-15 19:43:41 +0000 |
commit | 20901c1a62c2ec5bdff92bf2881ec51cb5ce7656 (patch) | |
tree | 30764e090f4af19bdbf6fb136badf0307a7c44ab /popt | |
parent | 8336b090a9996532e63e32cd8c483a9128be2dc9 (diff) | |
download | librpm-tizen-20901c1a62c2ec5bdff92bf2881ec51cb5ce7656.tar.gz librpm-tizen-20901c1a62c2ec5bdff92bf2881ec51cb5ce7656.tar.bz2 librpm-tizen-20901c1a62c2ec5bdff92bf2881ec51cb5ce7656.zip |
- beecrypt: merge changes from beecrypt-2.3.0.
- beecrypt: merge doxygen markup with rpmapi doco.
- beecrypt: revert cpu/arch compile option mixup (#66752).
CVS patchset: 5495
CVS date: 2002/06/15 19:43:41
Diffstat (limited to 'popt')
-rw-r--r-- | popt/.lclintrc | 69 | ||||
-rw-r--r-- | popt/Makefile.am | 2 | ||||
-rw-r--r-- | popt/po/cs.po | 2 | ||||
-rw-r--r-- | popt/po/da.po | 2 | ||||
-rw-r--r-- | popt/po/de.po | 2 | ||||
-rw-r--r-- | popt/po/es.po | 2 | ||||
-rw-r--r-- | popt/po/eu_ES.po | 2 | ||||
-rw-r--r-- | popt/po/fi.po | 2 | ||||
-rw-r--r-- | popt/po/fr.po | 2 | ||||
-rw-r--r-- | popt/po/gl.po | 2 | ||||
-rw-r--r-- | popt/po/hu.po | 2 | ||||
-rw-r--r-- | popt/po/id.po | 2 | ||||
-rw-r--r-- | popt/po/is.po | 2 | ||||
-rw-r--r-- | popt/po/it.po | 2 | ||||
-rw-r--r-- | popt/po/ja.po | 2 | ||||
-rw-r--r-- | popt/po/ko.po | 2 | ||||
-rw-r--r-- | popt/po/no.po | 2 | ||||
-rw-r--r-- | popt/po/pl.po | 2 | ||||
-rw-r--r-- | popt/po/popt.pot | 2 | ||||
-rw-r--r-- | popt/po/pt.po | 2 | ||||
-rw-r--r-- | popt/po/pt_BR.po | 2 | ||||
-rw-r--r-- | popt/po/ro.po | 2 | ||||
-rw-r--r-- | popt/po/ru.po | 2 | ||||
-rw-r--r-- | popt/po/sk.po | 2 | ||||
-rw-r--r-- | popt/po/sl.po | 2 | ||||
-rw-r--r-- | popt/po/sr.po | 2 | ||||
-rw-r--r-- | popt/po/sv.po | 2 | ||||
-rw-r--r-- | popt/po/tr.po | 2 | ||||
-rw-r--r-- | popt/po/uk.po | 2 | ||||
-rw-r--r-- | popt/po/wa.po | 2 | ||||
-rw-r--r-- | popt/po/zh.po | 2 | ||||
-rw-r--r-- | popt/po/zh_CN.GB2312.po | 2 | ||||
-rw-r--r-- | popt/popt.c | 9 | ||||
-rw-r--r-- | popt/popt.h | 22 | ||||
-rw-r--r-- | popt/poptint.h | 52 | ||||
-rw-r--r-- | popt/test1.c | 120 |
36 files changed, 204 insertions, 130 deletions
diff --git a/popt/.lclintrc b/popt/.lclintrc index 6a85d8279..488dbf55e 100644 --- a/popt/.lclintrc +++ b/popt/.lclintrc @@ -1,6 +1,6 @@ -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -+partial +#+partial +forcehints -warnunixlib @@ -12,54 +12,37 @@ +strict # lclint level -# --- +partial artifacts --declundef --exportheadervar --exportlocal +# --- in progress +#+bounds # 56 +#+boundswrite # 40 --enummemuse --fcnuse --typeuse --varuse +# --- +partial artifacts +-exportlocal # 14 +-fcnuse # 7 # --- not-yet at strict level --bitwisesigned # pita --elseifcomplete # 95 occurences --exportconst # 839 occurences --exportfcn --exporttype --exportvar --fielduse # 1 occurence <bits/sigset.h> --forblock # tedious --ifblock # tedious --incondefs # <bits/{ipc,pthreadtypes}.h> heartburn --matchfields # <bits/ipc.h> heartburn --namechecks # tedious ANSI compliance checks --numenummembers 1024 # RPMTAG has 138 members --numstructfields 256 # Java jni.h has 229 fields --ptrarith # tedious +-bitwisesigned # 75 +-elseifcomplete # 18 +-exportfcn # 25 +-globs # 12 <ctype.h> +-ifblock # 202 +-incondefs # 37 <bits/{ipc,pthreadtypes}.h> heartburn +-namechecks # 206 +-ptrarith # 43 --compdestroy --mustdefine --shiftimplementation -#-shiftnegative +-mustdefine # 10 +-shiftimplementation # 120 --strictops --strictusereleased --stringliterallen 4096 # redhat*PubKey's are big --whileblock # tedious +-strictops # 16 +-whileblock # 10 # --- not-yet at checks level --ansi-reserved -+enumint --mustfree --predboolptr --usedef +-mustfree # 52 +-predboolptr # 62 +-usedef # 1 # --- not-yet at standard level --boolops --predboolint -+boolint -+charint -+ignorequals -+matchanyintegral +-boolops # 112 +-predboolint # 30 ++charint # 3 ++ignorequals # 13 diff --git a/popt/Makefile.am b/popt/Makefile.am index af8113acb..25dcf50ee 100644 --- a/popt/Makefile.am +++ b/popt/Makefile.am @@ -40,7 +40,7 @@ sources: .PHONY: lclint lclint: - lclint ${DEFS} ${INCLUDES} ${libpopt_la_SOURCES} + lclint ${DEFS} ${INCLUDES} test1.c ${libpopt_la_SOURCES} CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) diff --git a/popt/po/cs.po b/popt/po/cs.po index b42504bb4..1de2fdf65 100644 --- a/popt/po/cs.po +++ b/popt/po/cs.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-07-24 00:03+0100\n" "Last-Translator: Milan Kerslager <kerslage@linux.cz>\n" "Language-Team: Czech <cs@li.org>\n" diff --git a/popt/po/da.po b/popt/po/da.po index fc165e38a..b0ea5a58c 100644 --- a/popt/po/da.po +++ b/popt/po/da.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: Sun Jan 21 2001 04:30:32+0200\n" "Last-Translator: Martin Hansen <mah@k64.dk>\n" "Language-Team: Dansk <dansk@klid.dk>\n" diff --git a/popt/po/de.po b/popt/po/de.po index 203c754bf..de352bc21 100644 --- a/popt/po/de.po +++ b/popt/po/de.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/es.po b/popt/po/es.po index 625a1163c..17e65d853 100644 --- a/popt/po/es.po +++ b/popt/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Leandro Lucarella <luca@linuxmendoza.org.ar>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/eu_ES.po b/popt/po/eu_ES.po index 203c754bf..de352bc21 100644 --- a/popt/po/eu_ES.po +++ b/popt/po/eu_ES.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/fi.po b/popt/po/fi.po index 203c754bf..de352bc21 100644 --- a/popt/po/fi.po +++ b/popt/po/fi.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/fr.po b/popt/po/fr.po index 203c754bf..de352bc21 100644 --- a/popt/po/fr.po +++ b/popt/po/fr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/gl.po b/popt/po/gl.po index dac7820af..971fffe15 100644 --- a/popt/po/gl.po +++ b/popt/po/gl.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-01-17 01:01+0100\n" "Last-Translator: Jesús Bravo Álvarez <jba@pobox.com>\n" "Language-Team: Galician <trasno@ceu.fi.udc.es>\n" diff --git a/popt/po/hu.po b/popt/po/hu.po index e495837c5..61ffcf784 100644 --- a/popt/po/hu.po +++ b/popt/po/hu.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2000-08-03 23:26+0200\n" "Last-Translator: László Németh <nemeth@qwertynet.hu>\n" "Language-Team: Hungarian\n" diff --git a/popt/po/id.po b/popt/po/id.po index 203c754bf..de352bc21 100644 --- a/popt/po/id.po +++ b/popt/po/id.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/is.po b/popt/po/is.po index 44bf3ddb1..df85fc314 100644 --- a/popt/po/is.po +++ b/popt/po/is.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-06-08 01:35+0000\n" "Last-Translator: Richard Allen <ra@hp.is>\n" "Language-Team: is <kde-isl@mmedia.is>\n" diff --git a/popt/po/it.po b/popt/po/it.po index 203c754bf..de352bc21 100644 --- a/popt/po/it.po +++ b/popt/po/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/ja.po b/popt/po/ja.po index 203c754bf..de352bc21 100644 --- a/popt/po/ja.po +++ b/popt/po/ja.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/ko.po b/popt/po/ko.po index 1e0b9e7a0..cd2c857e1 100644 --- a/popt/po/ko.po +++ b/popt/po/ko.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-09-06 20:06+0900\n" "Last-Translator: Jong-Hoon Ryu <redhat4u@netian.com>\n" "Language-Team: GNU Translation project <ko@li.org>\n" diff --git a/popt/po/no.po b/popt/po/no.po index c9aabe39d..5567063d2 100644 --- a/popt/po/no.po +++ b/popt/po/no.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-06-27 11:05+0200\n" "Last-Translator: Kjartan Maraas <kmaraas@online.no>\n" "Language-Team: Norwegian <no@li.org>\n" diff --git a/popt/po/pl.po b/popt/po/pl.po index 203c754bf..de352bc21 100644 --- a/popt/po/pl.po +++ b/popt/po/pl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/popt.pot b/popt/po/popt.pot index a8952cb26..9d5a9997d 100644 --- a/popt/po/popt.pot +++ b/popt/po/popt.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/pt.po b/popt/po/pt.po index 48660fbcb..b88ba7b44 100644 --- a/popt/po/pt.po +++ b/popt/po/pt.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2002-02-13 18:32+0000\n" "Last-Translator: Pedro Morais <morais@kde.org>\n" "Language-Team: pt <morais@kde.org>\n" diff --git a/popt/po/pt_BR.po b/popt/po/pt_BR.po index 203c754bf..de352bc21 100644 --- a/popt/po/pt_BR.po +++ b/popt/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/ro.po b/popt/po/ro.po index 61587e04c..d4ee0c2b5 100644 --- a/popt/po/ro.po +++ b/popt/po/ro.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2000-06-14 23:23+EST\n" "Last-Translator: Cristian Gafton <gafton@redhat.com>\n" "Language-Team: Romanian <ro@li.org>\n" diff --git a/popt/po/ru.po b/popt/po/ru.po index 5ff15278f..64f667fc9 100644 --- a/popt/po/ru.po +++ b/popt/po/ru.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-07-05 21:00-0500\n" "Last-Translator: Eugene Kanter <eugene@blackcatlinux.com>\n" "Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n" diff --git a/popt/po/sk.po b/popt/po/sk.po index 2f7c9563b..622680d57 100644 --- a/popt/po/sk.po +++ b/popt/po/sk.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 1999-08-04 21:40+0200\n" "Last-Translator: Stanislav Meduna <stano@eunet.sk>\n" "Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n" diff --git a/popt/po/sl.po b/popt/po/sl.po index 5d462f49b..b2ddf9208 100644 --- a/popt/po/sl.po +++ b/popt/po/sl.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2000-09-05 12:30+0200\n" "Last-Translator: Roman Maurer <roman.maurer@hermes.si>\n" "Language-Team: Slovenian <sl@li.org>\n" diff --git a/popt/po/sr.po b/popt/po/sr.po index 203c754bf..de352bc21 100644 --- a/popt/po/sr.po +++ b/popt/po/sr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/sv.po b/popt/po/sv.po index 2eb9a2d15..d97164035 100644 --- a/popt/po/sv.po +++ b/popt/po/sv.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2001-07-12 22:26+0100\n" "Last-Translator: Christian Rose <menthos@menthos.com>\n" "Language-Team: Swedish <sv@li.org>\n" diff --git a/popt/po/tr.po b/popt/po/tr.po index 7e9180047..60df608a4 100644 --- a/popt/po/tr.po +++ b/popt/po/tr.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 2000-02-11 13:01+0200\n" "Last-Translator: Nilgun Belma Buguner <nilgun@technologist.com>\n" "Language-Team: Turkish <tr@li.org>\n" diff --git a/popt/po/uk.po b/popt/po/uk.po index 83f8bdca3..1034411bc 100644 --- a/popt/po/uk.po +++ b/popt/po/uk.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 1999-09-30 16:54+0200\n" "Last-Translator: Yuri Syrota <rasta@renome.rovno.ua>\n" "Language-Team: Ukrainian <uk@li.org>\n" diff --git a/popt/po/wa.po b/popt/po/wa.po index 0ed342d03..e7257504c 100644 --- a/popt/po/wa.po +++ b/popt/po/wa.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 1999-03-18 23:11+0100\n" "Last-Translator: Nobody yet\n" "Language-Team: walon <linux-wa@chanae.alphanet.ch>\n" diff --git a/popt/po/zh.po b/popt/po/zh.po index 203c754bf..de352bc21 100644 --- a/popt/po/zh.po +++ b/popt/po/zh.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/zh_CN.GB2312.po b/popt/po/zh_CN.GB2312.po index 39f34756d..3262546e0 100644 --- a/popt/po/zh_CN.GB2312.po +++ b/popt/po/zh_CN.GB2312.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-05-06 15:34-0400\n" +"POT-Creation-Date: 2002-06-15 10:10-0400\n" "PO-Revision-Date: 1999-11-11 05:04+0800\n" "Last-Translator: Dillion Chen <dillon.chen@turbolinux.com.cn>\n" "Language-Team: TLDN\n" diff --git a/popt/popt.c b/popt/popt.c index 962f9732f..16bdbffe1 100644 --- a/popt/popt.c +++ b/popt/popt.c @@ -222,10 +222,11 @@ void poptResetContext(poptContext con) con->doExec = NULL; if (con->finalArgv != NULL) - for (i = 0; i < con->finalArgvCount; i++) + for (i = 0; i < con->finalArgvCount; i++) { /*@-unqualifiedtrans@*/ /* FIX: typedef double indirection. */ con->finalArgv[i] = _free(con->finalArgv[i]); /*@=unqualifiedtrans@*/ + } con->finalArgvCount = 0; con->arg_strip = PBM_FREE(con->arg_strip); @@ -296,7 +297,7 @@ static int handleExec(/*@special@*/ poptContext con, /* Only one of longName, shortName may be set at a time */ static int handleAlias(/*@special@*/ poptContext con, /*@null@*/ const char * longName, char shortName, - /*@keep@*/ /*@null@*/ const char * nextCharArg) + /*@exposed@*/ /*@null@*/ const char * nextCharArg) /*@uses con->aliases, con->numAliases, con->optionStack, con->os, con->os->currAlias, con->os->currAlias->option.longName @*/ /*@modifies con @*/ @@ -346,6 +347,7 @@ static int handleAlias(/*@special@*/ poptContext con, return (rc ? rc : 1); } +/*@-bounds -boundswrite @*/ static int execCommand(poptContext con) /*@*/ { @@ -417,6 +419,7 @@ static int execCommand(poptContext con) if (argv[0] == NULL) return POPT_ERROR_NOARG; + #ifdef MYDEBUG { const char ** avp; fprintf(stderr, "==> execvp(%s) argv[%d]:", argv[0], argc); @@ -427,8 +430,10 @@ static int execCommand(poptContext con) #endif rc = execvp(argv[0], (char *const *)argv); + return POPT_ERROR_ERRNO; } +/*@=bounds =boundswrite @*/ /*@observer@*/ /*@null@*/ static const struct poptOption * findOption(const struct poptOption * opt, /*@null@*/ const char * longName, diff --git a/popt/popt.h b/popt/popt.h index 495cc99be..60d27e687 100644 --- a/popt/popt.h +++ b/popt/popt.h @@ -134,11 +134,13 @@ struct poptAlias { /** \ingroup popt * A popt alias or exec argument for poptAddItem(). */ +/*@-exporttype@*/ typedef struct poptItem_s { struct poptOption option; /*!< alias/exec name(s) and description. */ int argc; /*!< (alias) no. of args. */ /*@owned@*/ const char ** argv; /*!< (alias) args, must be free()able. */ } * poptItem; +/*@=exporttype@*/ /** \ingroup popt * \name Auto-generated help/usage @@ -148,16 +150,20 @@ typedef struct poptItem_s { /** * Empty table marker to enable displaying popt alias/exec options. */ +/*@-exportvar@*/ /*@observer@*/ /*@checked@*/ extern struct poptOption poptAliasOptions[]; +/*@=exportvar@*/ #define POPT_AUTOALIAS { NULL, '\0', POPT_ARG_INCLUDE_TABLE, poptAliasOptions, \ 0, "Options implemented via popt alias/exec:", NULL }, /** * Auto help table options. */ +/*@-exportvar@*/ /*@observer@*/ /*@checked@*/ extern struct poptOption poptHelpOptions[]; +/*@=exportvar@*/ #define POPT_AUTOHELP { NULL, '\0', POPT_ARG_INCLUDE_TABLE, poptHelpOptions, \ 0, "Help options:", NULL }, @@ -166,19 +172,25 @@ extern struct poptOption poptHelpOptions[]; /** \ingroup popt */ +/*@-exporttype@*/ typedef /*@abstract@*/ struct poptContext_s * poptContext; +/*@=exporttype@*/ /** \ingroup popt */ #ifndef __cplusplus -/*@-typeuse@*/ +/*@-exporttype -typeuse@*/ typedef struct poptOption * poptOption; -/*@=typeuse@*/ +/*@=exporttype =typeuse@*/ #endif -enum poptCallbackReason { POPT_CALLBACK_REASON_PRE, - POPT_CALLBACK_REASON_POST, - POPT_CALLBACK_REASON_OPTION }; +/*@-exportconst@*/ +enum poptCallbackReason { + POPT_CALLBACK_REASON_PRE = 0, + POPT_CALLBACK_REASON_POST = 1, + POPT_CALLBACK_REASON_OPTION = 2 +}; +/*@=exportconst@*/ #ifdef __cplusplus extern "C" { diff --git a/popt/poptint.h b/popt/poptint.h index 30172fea8..a4f9147d6 100644 --- a/popt/poptint.h +++ b/popt/poptint.h @@ -23,13 +23,17 @@ _free(/*@only@*/ /*@null@*/ const void * p) } /* Bit mask macros. */ +/*@-exporttype@*/ typedef unsigned int __pbm_bits; +/*@=exporttype@*/ #define __PBM_NBITS (8 * sizeof (__pbm_bits)) #define __PBM_IX(d) ((d) / __PBM_NBITS) #define __PBM_MASK(d) ((__pbm_bits) 1 << (((unsigned)(d)) % __PBM_NBITS)) +/*@-exporttype@*/ typedef struct { __pbm_bits bits[1]; } pbm_set; +/*@=exporttype@*/ #define __PBM_BITS(set) ((set)->bits) #define PBM_ALLOC(d) calloc(__PBM_IX (d) + 1, sizeof(__pbm_bits)) @@ -40,37 +44,53 @@ typedef struct { struct optionStackEntry { int argc; -/*@only@*/ /*@null@*/ const char ** argv; -/*@only@*/ /*@null@*/ pbm_set * argb; +/*@only@*/ /*@null@*/ + const char ** argv; +/*@only@*/ /*@null@*/ + pbm_set * argb; int next; -/*@only@*/ /*@null@*/ const char * nextArg; -/*@keep@*/ /*@null@*/ const char * nextCharArg; -/*@dependent@*/ /*@null@*/ poptItem currAlias; +/*@only@*/ /*@null@*/ + const char * nextArg; +/*@observer@*/ /*@null@*/ + const char * nextCharArg; +/*@dependent@*/ /*@null@*/ + poptItem currAlias; int stuffed; }; struct poptContext_s { struct optionStackEntry optionStack[POPT_OPTION_DEPTH]; -/*@dependent@*/ struct optionStackEntry * os; -/*@owned@*/ /*@null@*/ const char ** leftovers; +/*@dependent@*/ + struct optionStackEntry * os; +/*@owned@*/ /*@null@*/ + const char ** leftovers; int numLeftovers; int nextLeftover; -/*@keep@*/ const struct poptOption * options; +/*@keep@*/ + const struct poptOption * options; int restLeftover; -/*@only@*/ /*@null@*/ const char * appName; -/*@only@*/ /*@null@*/ poptItem aliases; +/*@only@*/ /*@null@*/ + const char * appName; +/*@only@*/ /*@null@*/ + poptItem aliases; int numAliases; int flags; -/*@owned@*/ /*@null@*/ poptItem execs; +/*@owned@*/ /*@null@*/ + poptItem execs; int numExecs; -/*@only@*/ /*@null@*/ const char ** finalArgv; +/*@only@*/ /*@null@*/ + const char ** finalArgv; int finalArgvCount; int finalArgvAlloced; -/*@dependent@*/ /*@null@*/ poptItem doExec; -/*@only@*/ const char * execPath; +/*@dependent@*/ /*@null@*/ + poptItem doExec; +/*@only@*/ + const char * execPath; int execAbsolute; -/*@only@*/ const char * otherHelp; -/*@null@*/ pbm_set * arg_strip; +/*@only@*/ + const char * otherHelp; +/*@null@*/ + pbm_set * arg_strip; }; #ifdef HAVE_LIBINTL_H diff --git a/popt/test1.c b/popt/test1.c index ca5b3a69e..d1bbc4728 100644 --- a/popt/test1.c +++ b/popt/test1.c @@ -4,43 +4,71 @@ #include "system.h" +/*@unchecked@*/ static int pass2 = 0; -static void option_callback(poptContext con, enum poptCallbackReason reason, - const struct poptOption * opt, - char * arg, void * data) { +static void option_callback(/*@unused@*/ poptContext con, + /*@unused@*/ enum poptCallbackReason reason, + const struct poptOption * opt, + char * arg, void * data) + /*@globals fileSystem @*/ + /*@modifies fileSystem @*/ +{ if (pass2) fprintf(stdout, "callback: %c %s %s ", opt->val, (char *) data, arg); } -int arg1 = 0; -char * arg2 = "(none)"; -int arg3 = 0; -int inc = 0; -int shortopt = 0; - -int aVal = 141421; -int bVal = 141421; -int aFlag = 0; -int bFlag = 0; - -int aInt = 271828; -int bInt = 271828; -long aLong = 738905609L; -long bLong = 738905609L; -float aFloat = 3.1415926535; -float bFloat = 3.1415926535; -double aDouble = 9.86960440108935861883; -double bDouble = 9.86960440108935861883; -char * oStr = (char *) -1; -int singleDash = 0; - -char * lStr = "This tests default strings and exceeds the ... limit. " +/*@unchecked@*/ +static int arg1 = 0; +/*@unchecked@*/ /*@observer@*/ +static char * arg2 = "(none)"; +/*@unchecked@*/ +static int arg3 = 0; +/*@unchecked@*/ +static int inc = 0; +/*@unchecked@*/ +static int shortopt = 0; + +/*@unchecked@*/ +static int aVal = 141421; +/*@unchecked@*/ +static int bVal = 141421; +/*@unchecked@*/ +static int aFlag = 0; +/*@unchecked@*/ +static int bFlag = 0; + +/*@unchecked@*/ +static int aInt = 271828; +/*@unchecked@*/ +static int bInt = 271828; +/*@unchecked@*/ +static long aLong = 738905609L; +/*@unchecked@*/ +static long bLong = 738905609L; +/*@unchecked@*/ +static float aFloat = 3.1415926535; +/*@unchecked@*/ +static float bFloat = 3.1415926535; +/*@unchecked@*/ +static double aDouble = 9.86960440108935861883; +/*@unchecked@*/ +static double bDouble = 9.86960440108935861883; +/*@unchecked@*/ /*@null@*/ +static char * oStr = (char *) -1; +/*@unchecked@*/ +static int singleDash = 0; + +/*@unchecked@*/ /*@observer@*/ +static char * lStr = +"This tests default strings and exceeds the ... limit. " "123456789+123456789+123456789+123456789+123456789+ " "123456789+123456789+123456789+123456789+123456789+ " "123456789+123456789+123456789+123456789+123456789+ " "123456789+123456789+123456789+123456789+123456789+ "; -char * nStr = NULL; +/*@unchecked@*/ /*@null@*/ +static char * nStr = NULL; +/*@unchecked@*/ static struct poptOption moreCallbackArgs[] = { { NULL, '\0', POPT_ARG_CALLBACK|POPT_CBFLAG_INC_DATA, (void *)option_callback, 0, @@ -50,8 +78,10 @@ static struct poptOption moreCallbackArgs[] = { POPT_TABLEEND }; +/*@unchecked@*/ static struct poptOption callbackArgs[] = { - { NULL, '\0', POPT_ARG_CALLBACK, (void *)option_callback, 0, "sampledata" }, + { NULL, '\0', POPT_ARG_CALLBACK, (void *)option_callback, 0, + "sampledata", NULL }, { "cb", 'c', POPT_ARG_STRING, NULL, 'c', "Test argument callbacks", NULL }, { "longopt", '\0', 0, NULL, 'l', @@ -59,13 +89,16 @@ static struct poptOption callbackArgs[] = { POPT_TABLEEND }; +/*@unchecked@*/ static struct poptOption moreArgs[] = { - { "inc", 'I', 0, &inc, 0, "An included argument" }, + { "inc", 'I', 0, &inc, 0, "An included argument", NULL }, POPT_TABLEEND }; +/*@unchecked@*/ static struct poptOption options[] = { - { NULL, '\0', POPT_ARG_INCLUDE_TABLE, &moreCallbackArgs, 0, "arg for cb2" }, + { NULL, '\0', POPT_ARG_INCLUDE_TABLE, &moreCallbackArgs, 0, + "arg for cb2", NULL }, { "arg1", '\0', 0, &arg1, 0, "First argument with a really long" " description. After all, we have to test argument help" " wrapping somehow, right?", NULL }, @@ -114,6 +147,12 @@ static struct poptOption options[] = { }; static void resetVars(void) + /*@globals arg1, arg2, arg3, inc, shortopt, + aVal, aFlag, aInt, aLong, aFloat, aDouble, + oStr, singleDash, pass2 @*/ + /*@modifies arg1, arg2, arg3, inc, shortopt, + aVal, aFlag, aInt, aLong, aFloat, aDouble, + oStr, singleDash, pass2 @*/ { arg1 = 0; arg2 = "(none)"; @@ -135,7 +174,10 @@ static void resetVars(void) pass2 = 0; } -int main(int argc, const char ** argv) { +int main(int argc, const char ** argv) + /*@globals pass2, fileSystem @*/ + /*@modifies pass2, fileSystem @*/ +{ int rc; int ec = 0; poptContext optCon; @@ -144,19 +186,27 @@ int main(int argc, const char ** argv) { int usage = 0; #if HAVE_MCHECK_H && HAVE_MTRACE + /*@-moduncon -noeffectuncon@*/ mtrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */ + /*@=moduncon =noeffectuncon@*/ #endif +/*@-modobserver@*/ resetVars(); +/*@=modobserver@*/ +/*@-temptrans@*/ optCon = poptGetContext("test1", argc, argv, options, 0); - poptReadConfigFile(optCon, "./test-poptrc"); +/*@=temptrans@*/ + (void) poptReadConfigFile(optCon, "./test-poptrc"); #if 1 while ((rc = poptGetNextOpt(optCon)) > 0) /* Read all the options ... */ - ; + {}; poptResetContext(optCon); /* ... and then start over. */ +/*@-modobserver@*/ resetVars(); +/*@=modobserver@*/ #endif pass2 = 1; @@ -193,10 +243,12 @@ int main(int argc, const char ** argv) { fprintf(stdout, " aInt: %d", aInt); if (aLong != bLong) fprintf(stdout, " aLong: %ld", aLong); +/*@-realcompare@*/ if (aFloat != bFloat) fprintf(stdout, " aFloat: %g", aFloat); if (aDouble != bDouble) fprintf(stdout, " aDouble: %g", aDouble); +/*@=realcompare@*/ if (oStr != (char *)-1) fprintf(stdout, " oStr: %s", (oStr ? oStr : "(none)")); if (singleDash) @@ -216,7 +268,9 @@ int main(int argc, const char ** argv) { exit: optCon = poptFreeContext(optCon); #if HAVE_MCHECK_H && HAVE_MTRACE + /*@-moduncon -noeffectuncon@*/ muntrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */ + /*@=moduncon =noeffectuncon@*/ #endif return ec; } |