From 7562d7b539d8013376de2cff494231ba307f4ee1 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Wed, 17 Nov 2021 01:15:13 +0000 Subject: Add sorting by run frequency. This implements a rofi-like run cache. Other smaller changes include simplification of resize logic now that there's only one surface. --- src/xmalloc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xmalloc.h') diff --git a/src/xmalloc.h b/src/xmalloc.h index a661004..747509c 100644 --- a/src/xmalloc.h +++ b/src/xmalloc.h @@ -11,4 +11,7 @@ void *xcalloc(size_t nmemb, size_t size); void *xrealloc(void *ptr, size_t size); +__attribute__((malloc)) +char *xstrdup(const char *s); + #endif /* XMALLOC_H */ -- cgit v1.2.3