This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=e9e36be39115943c561f10fbd97f577b4380fc5a commit e9e36be39115943c561f10fbd97f577b4380fc5a Author: Guillem Jover <[email protected]> AuthorDate: Wed Feb 15 00:19:08 2023 +0100 libdpkg: Rename mlib module to mustlib This should make the module purpose more clear from its name alone, and avoids potential confusion with memory handling or similar. --- TODO | 2 +- lib/dpkg/Makefile.am | 2 +- lib/dpkg/dpkg.h | 2 +- lib/dpkg/{mlib.c => mustlib.c} | 2 +- po/POTFILES.in | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 3a3bab29f..1b789389b 100644 --- a/TODO +++ b/TODO @@ -37,7 +37,7 @@ Tasks - Get rid of static variables inside functions. - Coalesce hash and checksum functions. - Split modstatdb_rw into mode and flags. - - Move fd function out of mlib. + - Move fd function out of mustlib. - Cleanup status chars -> strings hardcoded mappings all over the place. (Fix tied field enum with its dselect description (pkgdisplay.cc)) - Refactor src/unpack.c. diff --git a/lib/dpkg/Makefile.am b/lib/dpkg/Makefile.am index 97a8dbfa6..5b33351e5 100644 --- a/lib/dpkg/Makefile.am +++ b/lib/dpkg/Makefile.am @@ -89,7 +89,7 @@ libdpkg_la_SOURCES = \ i18n.c i18n.h \ log.c \ meminfo.c \ - mlib.c \ + mustlib.c \ namevalue.c \ nfmalloc.c \ options.c \ diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h index 463f8296d..d2389a1eb 100644 --- a/lib/dpkg/dpkg.h +++ b/lib/dpkg/dpkg.h @@ -135,7 +135,7 @@ void cu_closedir(int argc, void **argv); void cu_closefd(int argc, void **argv); void cu_filename(int argc, void **argv); -/*** from mlib.c ***/ +/*** from mustlib.c ***/ void setcloexec(int fd, const char *fn); void *m_malloc(size_t); diff --git a/lib/dpkg/mlib.c b/lib/dpkg/mustlib.c similarity index 97% rename from lib/dpkg/mlib.c rename to lib/dpkg/mustlib.c index d508b036a..52d97527b 100644 --- a/lib/dpkg/mlib.c +++ b/lib/dpkg/mustlib.c @@ -1,6 +1,6 @@ /* * libdpkg - Debian packaging suite library routines - * mlib.c - ‘must’ library: routines will succeed or longjmp + * mustlib.c - ‘must’ library: routines will succeed or longjmp * * Copyright © 1994,1995 Ian Jackson <[email protected]> * Copyright © 2006-2013, 2015 Guillem Jover <[email protected]> diff --git a/po/POTFILES.in b/po/POTFILES.in index 4008a3abf..b38797ad7 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -34,7 +34,7 @@ lib/dpkg/fsys-hash.c lib/dpkg/glob.c lib/dpkg/i18n.c lib/dpkg/log.c -lib/dpkg/mlib.c +lib/dpkg/mustlib.c lib/dpkg/namevalue.c lib/dpkg/nfmalloc.c lib/dpkg/options-parsers.c -- Dpkg.Org's dpkg

