[llvm-branch-commits] [libc] [libc] Add Annex K qsort_s definition and tests (PR #198797)
Victor Campos via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 19 09:05:23 PDT 2026
================
@@ -0,0 +1,47 @@
+//===-- Implementation of qsort -------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/stdlib/qsort_s.h"
+#define __STDC_WANT_LIB_EXT1__ 1
+#include "hdr/stdint_proxy.h"
+#undef __STDC_WANT_LIB_EXT1__
+#include "src/__support/common.h"
+#include "src/__support/constraint_handler.h"
+#include "src/__support/macros/config.h"
+#include "src/stdlib/qsort_util.h"
+
+#define ERRNO_T_FAIL 1
----------------
vhscampos wrote:
For now I will remove the macro and use the value inline.
https://github.com/llvm/llvm-project/pull/198797
More information about the llvm-branch-commits
mailing list