• [PATCH 1/2] Make headers self-contained

    From Simon Richter@21:1/5 to All on Fri May 5 21:10:02 2023
    ---
    lib/dpkg/command.h | 2 ++
    lib/dpkg/db-fsys.h | 2 ++
    lib/dpkg/parsedump.h | 1 +
    3 files changed, 5 insertions(+)

    diff --git a/lib/dpkg/command.h b/lib/dpkg/command.h
    index 7d2098a29..09ec92ac7 100644
    --- a/lib/dpkg/command.h
    +++ b/lib/dpkg/command.h
    @@ -23,6 +23,8 @@

    #include <dpkg/macros.h>

    +#include <stdarg.h>
    +
    DPKG_BEGIN_DECLS

    /**
    diff --git a/lib/dpkg/db-fsys.h b/lib/dpkg/db-fsys.h
    index cd9abefaf..3a9696aa4 100644
    --- a/lib/dpkg/db-fsys.h
    +++ b/lib/dpkg/db-fsys.h
    @@ -27,6 +27,8 @@

    DPKG_BEGIN_DECLS

    +struct pkgbin;
    +
    /*
    * Data structure here is as follows:
    *
    diff --git a/lib/dpkg/parsedump.h b/lib/dpkg/parsedump.h
    index 4f03e87f7..c43da7ff6 100644
    --- a/lib/dpkg/parsedump.h
    +++ b/lib/dpkg/parsedump.h
    @@ -26,6 +26,7 @@
    #include <stdint.h>

    #include <dpkg/error.h>
    +#include <dpkg/dpkg-db.h>

    DPKG_BEGIN_DECLS

    --
    2.39.2

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Richter@21:1/5 to All on Fri May 5 21:10:02 2023
    ---
    lib/dpkg/perf.h | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/lib/dpkg/perf.h b/lib/dpkg/perf.h
    index a46792a43..48e69ccde 100644
    --- a/lib/dpkg/perf.h
    +++ b/lib/dpkg/perf.h
    @@ -47,7 +47,7 @@ perf_ts_sub(struct timespec *a, struct timespec *b, struct timespec *res)
    }
    }

    -static void
    +static inline void
    perf_ts_mark_print(const char *str)
    {
    struct timespec ts;
    @@ -57,7 +57,7 @@ perf_ts_mark_print(const char *str)
    printf("%lu.%.9lu: %s\n", ts.tv_sec, ts.tv_nsec, str);
    }

    -static void
    +static inline void
    perf_ts_slot_print(struct perf_slot *ps, const char *str)
    {
    struct timespec t_res;
    --
    2.39.2

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Guillem Jover@21:1/5 to Simon Richter on Fri May 5 23:10:01 2023
    Hi!

    On Sat, 2023-05-06 at 04:09:14 +0900, Simon Richter wrote:
    ---
    lib/dpkg/command.h | 2 ++
    lib/dpkg/db-fsys.h | 2 ++
    lib/dpkg/parsedump.h | 1 +
    3 files changed, 5 insertions(+)

    diff --git a/lib/dpkg/db-fsys.h b/lib/dpkg/db-fsys.h
    index cd9abefaf..3a9696aa4 100644
    --- a/lib/dpkg/db-fsys.h
    +++ b/lib/dpkg/db-fsys.h
    @@ -27,6 +27,8 @@

    DPKG_BEGIN_DECLS

    +struct pkgbin;
    +
    /*
    * Data structure here is as follows:
    *

    I've moved this one close to the existing pkginfo forward declaration.

    Queued locally, will be in my next push.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Guillem Jover@21:1/5 to Simon Richter on Fri May 5 23:20:01 2023
    Hi!

    On Sat, 2023-05-06 at 04:09:15 +0900, Simon Richter wrote:
    ---
    lib/dpkg/perf.h | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    Queued locally, will be included in my next push.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)