summaryrefslogtreecommitdiff
path: root/src/xmalloc.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-11-17 01:15:13 +0000
committerPhil Jones <philj56@gmail.com>2021-11-17 01:15:13 +0000
commit7562d7b539d8013376de2cff494231ba307f4ee1 (patch)
tree1eb4e8b28ed10da0e7a582cc4a38cfc37cef3ff8 /src/xmalloc.h
parent49c7405b6a88e56bb69e12189adb719927343e07 (diff)
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.
Diffstat (limited to 'src/xmalloc.h')
-rw-r--r--src/xmalloc.h3
1 files changed, 3 insertions, 0 deletions
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 */