diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-08 09:06:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-08 09:06:13 +0000 |
| commit | 63a50afc8e7d2b315e896f4469112f4240a1592e (patch) | |
| tree | 99429f79b9df9436dcb4454c7dbd05402e03e727 /shm.h | |
| parent | Merge branch 'xassert-performance-regression-2' (diff) | |
| parent | url-mode: urls_render(): early exit when URL list is empty (diff) | |
Merge branch 'url-detection'
Diffstat (limited to 'shm.h')
| -rw-r--r-- | shm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -52,3 +52,6 @@ static inline unsigned long shm_cookie_search(const struct terminal *term) { ret static inline unsigned long shm_cookie_scrollback_indicator(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 2; } static inline unsigned long shm_cookie_render_timer(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 3; } static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 4 + (n)); } + +struct url; +static inline unsigned long shm_cookie_url(const struct url *url) { return (unsigned long)(uintptr_t)url; } |
