[all-commits] [llvm/llvm-project] 0fb306: [libc] Add limits.h

alfredfo via All-commits all-commits at lists.llvm.org
Sun Aug 13 17:37:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fb3066873fdfbe28dbb6409c58a8bff7cf208c6
      https://github.com/llvm/llvm-project/commit/0fb3066873fdfbe28dbb6409c58a8bff7cf208c6
  Author: Alfred Persson Forsberg <cat at catcream.org>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M libc/config/linux/x86_64/headers.txt
    M libc/include/CMakeLists.txt
    A libc/include/limits.h.def
    M libc/include/llvm-libc-macros/CMakeLists.txt
    A libc/include/llvm-libc-macros/limits-macros.h
    M libc/spec/posix.td
    M libc/spec/stdc.td

  Log Message:
  -----------
  [libc] Add limits.h

This header contains implementation specific constants.

The compiler already provides its own limits.h with numerical limits
conforming to freestanding ISO C. But it is missing extensions like
POSIX, and does for example not include <linux/limits.h> which is
expected on a Linux system, therefore, an LLVM libc implementation of
limits.h is needed for hosted (__STDC_HOSTED__) environments.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D156961




More information about the All-commits mailing list