| 111:81c4f73236a4 | 112:c3f2f16fa4b8 |
|---|---|
| 47 * <a href="https://sourceforge.net/p/ucx/code">https://sourceforge.net/p/ucx/code</a> | 47 * <a href="https://sourceforge.net/p/ucx/code">https://sourceforge.net/p/ucx/code</a> |
| 48 * - or - | 48 * - or - |
| 49 * <a href="https://uap-core.de/hg/ucx">https://uap-core.de/hg/ucx</a> | 49 * <a href="https://uap-core.de/hg/ucx">https://uap-core.de/hg/ucx</a> |
| 50 * </p> | 50 * </p> |
| 51 * | 51 * |
| 52 * <h2>LICENCE</h2> | 52 * <h2>LICENSE</h2> |
| 53 * | 53 * |
| 54 * Copyright 2021 Mike Becker, Olaf Wintermann All rights reserved. | 54 * Copyright 2021 Mike Becker, Olaf Wintermann All rights reserved. |
| 55 * | 55 * |
| 56 * Redistribution and use in source and binary forms, with or without | 56 * Redistribution and use in source and binary forms, with or without |
| 57 * modification, are permitted provided that the following conditions are met: | 57 * modification, are permitted provided that the following conditions are met: |
| 129 */ | 129 */ |
| 130 #define __attribute__(x) | 130 #define __attribute__(x) |
| 131 #endif | 131 #endif |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * Inform the compiler that falling through a switch case is intentional. | |
| 135 */ | |
| 136 #define cx_attr_fallthrough __attribute__((__fallthrough__)) | |
| 137 | |
| 138 /** | |
| 134 * All pointer arguments must be non-NULL. | 139 * All pointer arguments must be non-NULL. |
| 135 */ | 140 */ |
| 136 #define cx_attr_nonnull __attribute__((__nonnull__)) | 141 #define cx_attr_nonnull __attribute__((__nonnull__)) |
| 137 | 142 |
| 138 /** | 143 /** |
| 182 /** | 187 /** |
| 183 * No support for @c null_terminated_string_arg in clang or GCC below 14. | 188 * No support for @c null_terminated_string_arg in clang or GCC below 14. |
| 184 */ | 189 */ |
| 185 #define cx_attr_cstr_arg(idx) | 190 #define cx_attr_cstr_arg(idx) |
| 186 /** | 191 /** |
| 187 * No support for access attribute in clang. | 192 * No support for the access attribute in clang. |
| 188 */ | 193 */ |
| 189 #define cx_attr_access(mode, ...) | 194 #define cx_attr_access(mode, ...) |
| 190 #else | 195 #else |
| 191 #if __GNUC__ < 10 | 196 #if __GNUC__ < 10 |
| 192 /** | 197 /** |