summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-07-03 03:23:11 +0200
committerGuillem Jover <guillem@debian.org>2011-07-07 10:42:29 +0200
commitcf22cf6118035ab8ee5cc25e5298a987073c8dc8 (patch)
treebb2583ce2324985197fa78fb9b7cd10e41800a9f
parent16354a961ce86778a3e0ca56f2fa5314855ccf3c (diff)
downloaddpkg-cf22cf6118035ab8ee5cc25e5298a987073c8dc8.tar.gz
libdpkg: Rename myopt module to options
-rw-r--r--dpkg-deb/build.c2
-rw-r--r--dpkg-deb/extract.c2
-rw-r--r--dpkg-deb/info.c2
-rw-r--r--dpkg-deb/main.c2
-rw-r--r--dpkg-split/info.c2
-rw-r--r--dpkg-split/join.c2
-rw-r--r--dpkg-split/main.c2
-rw-r--r--dpkg-split/queue.c2
-rw-r--r--dpkg-split/split.c2
-rw-r--r--dselect/main.cc2
-rw-r--r--lib/dpkg/Makefile.am4
-rw-r--r--lib/dpkg/options.c (renamed from lib/dpkg/myopt.c)4
-rw-r--r--lib/dpkg/options.h (renamed from lib/dpkg/myopt.h)8
-rw-r--r--src/archives.c2
-rw-r--r--src/cleanup.c2
-rw-r--r--src/divertcmd.c2
-rw-r--r--src/enquiry.c2
-rw-r--r--src/errors.c2
-rw-r--r--src/main.c2
-rw-r--r--src/packages.c2
-rw-r--r--src/processarc.c2
-rw-r--r--src/querycmd.c2
-rw-r--r--src/remove.c2
-rw-r--r--src/select.c2
-rw-r--r--src/statcmd.c2
-rw-r--r--src/trigcmd.c2
-rw-r--r--src/update.c2
27 files changed, 32 insertions, 32 deletions
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index a88cb0ea0..75132ee34 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -48,7 +48,7 @@
#include <dpkg/subproc.h>
#include <dpkg/compress.h>
#include <dpkg/ar.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-deb.h"
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
index 365be5d13..2dde994e3 100644
--- a/dpkg-deb/extract.c
+++ b/dpkg-deb/extract.c
@@ -47,7 +47,7 @@
#include <dpkg/command.h>
#include <dpkg/compress.h>
#include <dpkg/ar.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-deb.h"
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 6f43f55fe..2bd0a5dc0 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -44,7 +44,7 @@
#include <dpkg/buffer.h>
#include <dpkg/path.h>
#include <dpkg/subproc.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-deb.h"
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 5aa6c4d7a..49cf5e50c 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -42,7 +42,7 @@
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/compress.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-deb.h"
diff --git a/dpkg-split/info.c b/dpkg-split/info.c
index 30e0c275c..6066f73a5 100644
--- a/dpkg-split/info.c
+++ b/dpkg-split/info.c
@@ -37,7 +37,7 @@
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/ar.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-split.h"
diff --git a/dpkg-split/join.c b/dpkg-split/join.c
index 03017c886..95ed64aee 100644
--- a/dpkg-split/join.c
+++ b/dpkg-split/join.c
@@ -33,7 +33,7 @@
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/buffer.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-split.h"
diff --git a/dpkg-split/main.c b/dpkg-split/main.c
index c6d956d10..c4e7b33c9 100644
--- a/dpkg-split/main.c
+++ b/dpkg-split/main.c
@@ -37,7 +37,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-split.h"
diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c
index 53724347a..e758feb86 100644
--- a/dpkg-split/queue.c
+++ b/dpkg-split/queue.c
@@ -39,7 +39,7 @@
#include <dpkg/dpkg-db.h>
#include <dpkg/dir.h>
#include <dpkg/buffer.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-split.h"
diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index d4fe4bc62..1b40f348f 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -43,7 +43,7 @@
#include <dpkg/subproc.h>
#include <dpkg/buffer.h>
#include <dpkg/ar.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dpkg-split.h"
diff --git a/dselect/main.cc b/dselect/main.cc
index fa58defe5..6508b1f93 100644
--- a/dselect/main.cc
+++ b/dselect/main.cc
@@ -51,7 +51,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "dselect.h"
#include "bindings.h"
diff --git a/lib/dpkg/Makefile.am b/lib/dpkg/Makefile.am
index a1c8f8e51..79508357c 100644
--- a/lib/dpkg/Makefile.am
+++ b/lib/dpkg/Makefile.am
@@ -43,9 +43,9 @@ libdpkg_a_SOURCES = \
log.c \
md5.c md5.h \
mlib.c \
- myopt.c \
namevalue.c \
nfmalloc.c \
+ options.c \
parse.c \
parsehelp.c \
path.c \
@@ -83,8 +83,8 @@ pkginclude_HEADERS = \
file.h \
glob.h \
macros.h \
- myopt.h \
namevalue.h \
+ options.h \
parsedump.h \
path.h \
pkg.h \
diff --git a/lib/dpkg/myopt.c b/lib/dpkg/options.c
index 4181a9016..3575e297d 100644
--- a/lib/dpkg/myopt.c
+++ b/lib/dpkg/options.c
@@ -1,6 +1,6 @@
/*
* libdpkg - Debian packaging suite library routines
- * myopt.c - my very own option parsing
+ * options.c - option parsing functions
*
* Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
* Copyright © 2000,2002 Wichert Akkerman <wichert@deephackmode.org>
@@ -33,7 +33,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/string.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
static const char *printforhelp;
diff --git a/lib/dpkg/myopt.h b/lib/dpkg/options.h
index 230fd89c0..ba415bf13 100644
--- a/lib/dpkg/myopt.h
+++ b/lib/dpkg/options.h
@@ -1,6 +1,6 @@
/*
* libdpkg - Debian packaging suite library routines
- * myopt.h - declarations for my very own option parsing
+ * options.h - option parsing functions
*
* Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
*
@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef MYOPT_H
-#define MYOPT_H
+#ifndef LIBDPKG_OPTIONS_H
+#define LIBDPKG_OPTIONS_H
#include <dpkg/macros.h>
@@ -72,4 +72,4 @@ void setobsolete(const struct cmdinfo *cip, const char *value);
DPKG_END_DECLS
-#endif /* MYOPT_H */
+#endif /* LIBDPKG_OPTIONS_H */
diff --git a/src/archives.c b/src/archives.c
index ff1d273da..f060e7067 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -51,7 +51,7 @@
#include <dpkg/command.h>
#include <dpkg/file.h>
#include <dpkg/tarfn.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include <dpkg/triglib.h>
#ifdef WITH_SELINUX
diff --git a/src/cleanup.c b/src/cleanup.c
index 91ffb2ca6..eff81aa41 100644
--- a/src/cleanup.c
+++ b/src/cleanup.c
@@ -37,7 +37,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "filesdb.h"
#include "main.h"
diff --git a/src/divertcmd.c b/src/divertcmd.c
index efd08b560..a37624e9d 100644
--- a/src/divertcmd.c
+++ b/src/divertcmd.c
@@ -41,7 +41,7 @@
#include <dpkg/file.h>
#include <dpkg/glob.h>
#include <dpkg/buffer.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "filesdb.h"
diff --git a/src/enquiry.c b/src/enquiry.c
index 25ae142b8..40c3e736d 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -40,7 +40,7 @@
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/pkg-show.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "filesdb.h"
#include "main.h"
diff --git a/src/errors.c b/src/errors.c
index f01691031..ce0421296 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -37,7 +37,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "main.h"
diff --git a/src/main.c b/src/main.c
index d3e7d25f8..22bf8190d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,7 +48,7 @@
#include <dpkg/dpkg-db.h>
#include <dpkg/subproc.h>
#include <dpkg/command.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "main.h"
#include "filesdb.h"
diff --git a/src/packages.c b/src/packages.c
index c67a60032..b12947427 100644
--- a/src/packages.c
+++ b/src/packages.c
@@ -38,7 +38,7 @@
#include <dpkg/dpkg-db.h>
#include <dpkg/pkg-list.h>
#include <dpkg/pkg-queue.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "filesdb.h"
#include "main.h"
diff --git a/src/processarc.c b/src/processarc.c
index 39205d9cf..fa41833c5 100644
--- a/src/processarc.c
+++ b/src/processarc.c
@@ -47,7 +47,7 @@
#include <dpkg/subproc.h>
#include <dpkg/dir.h>
#include <dpkg/tarfn.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include <dpkg/triglib.h>
#include "filesdb.h"
diff --git a/src/querycmd.c b/src/querycmd.c
index 71855e44b..cdda47d9d 100644
--- a/src/querycmd.c
+++ b/src/querycmd.c
@@ -46,7 +46,7 @@
#include <dpkg/pkg-format.h>
#include <dpkg/pkg-show.h>
#include <dpkg/path.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "filesdb.h"
#include "infodb.h"
diff --git a/src/remove.c b/src/remove.c
index aee25e723..d41465ea7 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -37,7 +37,7 @@
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/dir.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include <dpkg/triglib.h>
#include "infodb.h"
diff --git a/src/select.c b/src/select.c
index 712db97a8..f3c0e1ad4 100644
--- a/src/select.c
+++ b/src/select.c
@@ -31,7 +31,7 @@
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/pkg-array.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "filesdb.h"
#include "main.h"
diff --git a/src/statcmd.c b/src/statcmd.c
index b59d1b857..11ae1cfbc 100644
--- a/src/statcmd.c
+++ b/src/statcmd.c
@@ -43,7 +43,7 @@
#include <dpkg/path.h>
#include <dpkg/dir.h>
#include <dpkg/glob.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "main.h"
#include "filesdb.h"
diff --git a/src/trigcmd.c b/src/trigcmd.c
index 4c420444c..09fb34621 100644
--- a/src/trigcmd.c
+++ b/src/trigcmd.c
@@ -38,7 +38,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include <dpkg/trigdeferred.h>
#include <dpkg/triglib.h>
diff --git a/src/update.c b/src/update.c
index 227c9d10b..44ef96566 100644
--- a/src/update.c
+++ b/src/update.c
@@ -30,7 +30,7 @@
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
-#include <dpkg/myopt.h>
+#include <dpkg/options.h>
#include "main.h"