diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
| commit | 21c39515903c34bc6428a544c88cf1c100786847 (patch) | |
| tree | c9d0465e24cc3148c84c2fee191f2b1bfc71b841 /gl/idx.h | |
| parent | ed01d534474cc640515f1d5155349f14090aafe9 (diff) | |
| parent | 5d7d620903a2fb40f8cd3140081bfb7ceaf125d5 (diff) | |
| download | monitoring-plugins-21c39515903c34bc6428a544c88cf1c100786847.tar.gz | |
Merge branch 'master' into check_swap_again
Diffstat (limited to 'gl/idx.h')
| -rw-r--r-- | gl/idx.h | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* A type for indices and sizes. | 1 | /* A type for indices and sizes. |
| 2 | Copyright (C) 2020-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2020-2024 Free Software Foundation, Inc. |
| 3 | This file is part of the GNU C Library. | 3 | This file is part of the GNU C Library. |
| 4 | 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | 5 | The GNU C Library is free software; you can redistribute it and/or |
| @@ -111,6 +111,11 @@ | |||
| 111 | help producing good code and good warnings. The type 'idx_t' could | 111 | help producing good code and good warnings. The type 'idx_t' could |
| 112 | then be typedef'ed to a range type that is signed after promotion. */ | 112 | then be typedef'ed to a range type that is signed after promotion. */ |
| 113 | 113 | ||
| 114 | #ifdef __cplusplus | ||
| 115 | extern "C" { | ||
| 116 | #endif | ||
| 117 | |||
| 118 | |||
| 114 | /* In the future, idx_t could be typedef'ed to a signed range type. | 119 | /* In the future, idx_t could be typedef'ed to a signed range type. |
| 115 | The clang "extended integer types", supported in Clang 11 or newer | 120 | The clang "extended integer types", supported in Clang 11 or newer |
| 116 | <https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types>, | 121 | <https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types>, |
| @@ -131,4 +136,9 @@ typedef ptrdiff_t idx_t; | |||
| 131 | Perhaps there should be another macro IDX_VALUE_BITS that does not | 136 | Perhaps there should be another macro IDX_VALUE_BITS that does not |
| 132 | count the sign bit and is therefore one less than PTRDIFF_WIDTH. */ | 137 | count the sign bit and is therefore one less than PTRDIFF_WIDTH. */ |
| 133 | 138 | ||
| 139 | |||
| 140 | #ifdef __cplusplus | ||
| 141 | } | ||
| 142 | #endif | ||
| 143 | |||
| 134 | #endif /* _IDX_H */ | 144 | #endif /* _IDX_H */ |
