fix lsearch and lfind to pass key as first arg to the compar callback
[musl.git] / tools / mkalltypes.sed
blobfa15efc35f64e06e5a53108ca8e7c2faf5835369
1 /^TYPEDEF/s/TYPEDEF \(.*\) \([^ ]*\);$/#if defined(__NEED_\2) \&\& !defined(__DEFINED_\2)\
2 typedef \1 \2;\
3 #define __DEFINED_\2\
4 #endif\
6 /^STRUCT/s/STRUCT * \([^ ]*\) \(.*\);$/#if defined(__NEED_struct_\1) \&\& !defined(__DEFINED_struct_\1)\
7 struct \1 \2;\
8 #define __DEFINED_struct_\1\
9 #endif\
11 /^UNION/s/UNION * \([^ ]*\) \(.*\);$/#if defined(__NEED_union_\1) \&\& !defined(__DEFINED_union_\1)\
12 union \1 \2;\
13 #define __DEFINED_union_\1\
14 #endif\