From 0dcc399ca713114a3d80b52e6dcf0ccd62fb2ae5 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 25 Mar 2024 06:20:35 +0000 Subject: slibtoolize mode: implemented slibtool.m4 and ltmain.sh related actions. --- src/internal/slibtool_driver_impl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/internal') diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h index 43ac576..656b50a 100644 --- a/src/internal/slibtool_driver_impl.h +++ b/src/internal/slibtool_driver_impl.h @@ -394,6 +394,18 @@ static inline struct slbt_symlist_ctx_impl * slbt_get_symlist_ictx(const struct return 0; } +static inline struct slbt_stoolie_ctx_impl * slbt_get_stoolie_ictx(const struct slbt_stoolie_ctx * stctx) +{ + uintptr_t addr; + + if (stctx) { + addr = (uintptr_t)stctx - offsetof(struct slbt_stoolie_ctx_impl,zctx); + return (struct slbt_stoolie_ctx_impl *)addr; + } + + return 0; +} + static inline void slbt_driver_set_arctx( const struct slbt_driver_ctx * dctx, const struct slbt_archive_ctx * arctx, -- cgit v1.2.3