summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-25 06:20:35 +0000
committermidipix <writeonce@midipix.org>2024-03-25 06:42:04 +0000
commit0dcc399ca713114a3d80b52e6dcf0ccd62fb2ae5 (patch)
tree89534cfc6e6ab03f15091ee65ca47a13c06f16ae /src/internal
parent44fa06c39b5be9060a268a9b308ae4217d45da4f (diff)
downloadslibtool-0dcc399ca713114a3d80b52e6dcf0ccd62fb2ae5.tar.bz2
slibtool-0dcc399ca713114a3d80b52e6dcf0ccd62fb2ae5.tar.xz
slibtoolize mode: implemented slibtool.m4 and ltmain.sh related actions.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_driver_impl.h12
1 files changed, 12 insertions, 0 deletions
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,