1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2025-04-21 12:27:27 +03:00

qpkg: give ID2S macro a more "offical" status

- prereq.c (ID2S), id.h (ID2PF): renamed ID2S to ID2PF and moved it to id.h
- prereq.c (push, satisfies, resolve): change ID2S to ID2PF
This commit is contained in:
Werner Almesberger
2010-11-21 03:25:53 -03:00
parent 44e4434b4c
commit dd0ee66304
2 changed files with 12 additions and 7 deletions

View File

@@ -59,6 +59,14 @@ struct id {
};
/*
* Helper macro for printing identifiers.
* Use with "... %.*s ..."
*/
#define ID2PF(id) (int) (id)->len, (id)->s
int comp_id(const void *a, const void *b);
struct tree *make_tree(int (*comp)(const void *a, const void *b));