Issue 134118
Summary [libc] Combine the function prototype `int (*compar)(const void *, const void *)`?
Labels libc
Assignees
Reporter c8ef
    There are several different names for the same type of function pointer parameter `int (*compar)(const void *, const void *)`:

- https://github.com/llvm/llvm-project/blob/main/libc/include/llvm-libc-types/__bsearchcompare_t.h
- https://github.com/llvm/llvm-project/blob/main/libc/include/llvm-libc-types/__lsearchcompare_t.h

And tsearch may have its own `__tsearchcompare_t.h`, resulting in a lot of code duplication. Perhaps we could generalize it to something like `__search_key_compare_t`?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to