diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-08-28 10:19:32 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-08-28 10:19:32 +0000 |
commit | c0a862eba7db1eab5fe7f2c1c85c93d06c6cd99d (patch) | |
tree | a610f80b245e87c8e1154c261d64cb4342af5179 /app/mkfontscale/list.h | |
parent | 2bac4d23b683a1a41618861374616f39a5103d33 (diff) |
Update to mkfontscale 1.0.9
Diffstat (limited to 'app/mkfontscale/list.h')
-rw-r--r-- | app/mkfontscale/list.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/mkfontscale/list.h b/app/mkfontscale/list.h index 4e4bb27fb..686fd9b09 100644 --- a/app/mkfontscale/list.h +++ b/app/mkfontscale/list.h @@ -23,7 +23,9 @@ #ifndef _MKS_LIST_H_ #define _MKS_LIST_H_ 1 -char *dsprintf(char *f, ...); +#include <X11/Xfuncproto.h> /* for _X_ATTRIBUTE_PRINTF */ + +char *dsprintf(char *f, ...) _X_ATTRIBUTE_PRINTF(1,2); typedef struct _List { char *value; @@ -33,12 +35,13 @@ typedef struct _List { int listMember(char *elt, ListPtr list); ListPtr listCons(char *car, ListPtr cdr); ListPtr listAdjoin(char *car, ListPtr cdr); -ListPtr listConsF(ListPtr cdr, char *f, ...); -ListPtr listAdjoinF(ListPtr cdr, char *f, ...); +ListPtr listConsF(ListPtr cdr, char *f, ...) _X_ATTRIBUTE_PRINTF(2,3); +ListPtr listAdjoinF(ListPtr cdr, char *f, ...) _X_ATTRIBUTE_PRINTF(2,3); int listLength(ListPtr list); ListPtr appendList(ListPtr first, ListPtr second); ListPtr makeList(char **a, int n, ListPtr old, int begin); ListPtr reverseList(ListPtr old); +ListPtr sortList(ListPtr old); void destroyList(ListPtr old); void deepDestroyList(ListPtr old); |