- Nov 16, 2023
-
-
Brad King authored
-
- Jun 14, 2022
-
-
Brad King authored
Older MSVC versions did not provide it.
-
- Jun 13, 2022
-
-
Brad King authored
The macOS 13.0 SDK marks `sprintf` as deprecated, causing warnings. Follow the warnings' suggestion to switch to `snprintf`.
-
- May 27, 2022
-
-
Brad King authored
-
- Aug 20, 2021
-
-
Brad King authored
However, it seems that scanf does not support 8-bit sizes until MSVC 19.00. See-also: https://web.archive.org/web/20210719202338/https://devblogs.microsoft.com/cppblog/c99-library-support-in-visual-studio-2013/
-
- Apr 21, 2021
-
-
Xiaotian Wu authored
-
- Apr 20, 2020
-
-
- Feb 01, 2018
-
-
Ben Boeckel authored
The parent project should be setting a suitable minimum version already.
-
- Jan 09, 2018
-
- Jan 08, 2018
-
-
Brad King authored
-
The upstream RISC-V project changed some compiler symbols so `__riscv__` must now be renamed `__riscv`.
-
- Sep 21, 2017
-
-
Brad King authored
In KWIML verification and test code we construct constant values and cast them to specific types to see whether they are truncated or not. Suppress MSVC diagnostic `warning C4309: 'static_cast': truncation of constant value` since the truncation is intentional. We did this for C-style casts in commit 5127311c (Suppress MSVC integer cast warnings in verification and test code, 2015-12-09), but in C++ that does not apply since commit fc9d607a (Use static_cast when compiling as C++, 2017-07-12).
-
- Jul 12, 2017
-
-
Brad King authored
-
Brad King authored
Our verification and test logic uses a few casts. Introduce macros to switch between C-style casts when compiling as C and static_cast when compiling as C++. This avoids `-Wold-style-cast` warnings. Reported-by:
Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
-
- Apr 11, 2017
-
-
KWIML has not been updated for `include-what-you-use`. Until this is done, block use of the tool on our own targets. This is useful when KWIML is embedded in the source tree of another project that may activate iwyu.
-
- Feb 27, 2017
-
-
When compiling tests with `-Werror=format-security` we get error: -Wformat-security ignored without -Wformat Therefore we should disable both `format` and `format-security` together.
-
- Sep 08, 2016
-
-
Brad King authored
-
Signed-off-by:
Richard W.M. Jones <rjones@redhat.com>
-
- Dec 09, 2015
-
-
Brad King authored
When referencing `int#_t` and `uint#_t` types in `KWIML_INT_*_t` macros, use an explicit `::` in C++ to reference the global namespace. This allows the macros to be used inside other namespaces even if they have typedefs for the types too.
-
Brad King authored
Use a long conflict marker size to avoid confusion with section header underlines.
-
Brad King authored
In KWIML verification and test code we construct constant values and cast them to specific types to see whether they are truncated or not. Suppress MSVC diagnostic `warning C4310: cast truncates constant value` since the truncation is intentional.
-
- Nov 30, 2015
-
-
Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Walter Goossens <waltergoossens@home.nl>
-
- Oct 30, 2015
- Oct 28, 2015
-
-
Brad King authored
In this mode do not provide the CMake package files or `version.h` header. Instead KWIML will be distributed with and versioned with the host project.
-
Brad King authored
Provide the KWIML version number and the availability of each other header with this version.
-
Brad King authored
Enable `find_package(kwiml 1.0)` to find KWIML by providing CMake package configuration and version files from the build and install trees. Within the package provide a `kwiml::kwiml` INTERFACE library encoding the include directories as a usage requirement.
-
Brad King authored
Provide KWIML_ABI_VERSION and KWIML_INT_VERSION interface version macros as the latest version among those included so far. Guard against definition of an interface version that has already been defined. This way we can provide the current version's interface even if an older or newer version has been included earlier in the translation unit. The result will be a union of all interfaces provided by all versions included. Add the interface version numbers to the verification "extern" symbols so that each version can verify that it provides what is expected even if it inherited an existing value from another version included earlier. Guard against multiple verification of the same version.
-
Brad King authored
Avoid using the reserved `__` in symbol names (except for macros related to `__int64`). Instead use `_private_` for private implementation details that should not be exposed to includers. Use `_detail`_ for implementation details that we must expose to includers but that they should not use.
-
Brad King authored
We use the common convention for boolean macros to leave them undefined for false and defining them to 1 for true. Fix some cases where we define a boolean macro for true but did not set it to 1.
-
Brad King authored
Guard definition of every public macro with a condition that it is not already defined in the translation unit. This will allow project code or command-line definitions to override any value we select. It will also provide granular guards against repeat inclusion of this header if we were to remove the top-level include guard.
-
Brad King authored
Avoid leaking them to includers.
-
Brad King authored
Guard inclusion of stdint.h and inttypes.h with a dedicated preprocessor macro. This avoids asking the preprocessor to read the files again just to hit their include guards.
-
Brad King authored
Improve the names of the macros implementing verification steps.
-
Brad King authored
Drop use of configured header files and simply hard code the name "kwiml". This will allow distribution as a separate project that can be installed on a system and included as a dependency by clients. While at it, rename "ABI" to "abi" and "INT" to "int" in file names and test function names. We will use upper-case names only for macro names.
-
- Mar 17, 2015
-
-
Signed-off-by:
Max Filippov <jcmvbkbc@gmail.com>
-
- Oct 14, 2014
-
-
When testing CMAKE_<LANG>_COMPILER_ID values with if(STREQUAL), do not explicitly dereference or quote the variable. We want if() to auto-dereference the variable and not its value.
-
- Aug 07, 2014
-
-
It defines __or1k__ and is big endian.
-
- Jan 08, 2013
-
-
Brad King authored
Old GNU compilers do not define __SIZEOF_LONG_LONG__ or __LONG_LONG_MAX__ but do provide a 64-bit 'long long' type. Suggested-by:
Rolf Eike Beer <eike@sf-mail.de>
-
- Dec 21, 2012
-
-
The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian and __AARCH64EL__ little endian. Only little endian tested, no big endian toolchain exists yet. Signed-off-by:
Riku Voipio <riku.voipio@linaro.org>
-