/* * This header defines several macros that add compiler-specific attributes for * functions: * * - _CUPS_API_major_minor[_patch]: Specifies when an API became available by * CUPS version. * - _CUPS_DEPRECATED: Function is deprecated with no replacement. * - _CUPS_DEPRECATED_MSG("message"): Function is deprecated and has a * replacement. * - _CUPS_FORMAT(format-index, additional-args-index): Function has a * printf-style format argument followed by zero or more additional * arguments. Indices start at 1. * - _CUPS_INTERNAL: Function is internal with no replacement API. * - _CUPS_INTERNAL_MSG("msg"): Function is internal - use specified API * instead. * - _CUPS_NONNULL((arg list)): Specifies the comma-separated argument indices * are assumed non-NULL. Indices start at 1. * - _CUPS_NORETURN: Specifies the function does not return. * - _CUPS_PRIVATE: Specifies the function is private to CUPS. * - _CUPS_PUBLIC: Specifies the function is public API.
*/
/* * Determine which compiler is being used and what annotation features are * available...
*/
/* * Define _CUPS_API_major_minor[_patch] availability macros for CUPS. * * Note: Using any of the _CUPS_API macros automatically adds _CUPS_PUBLIC.
*/
/* * Define _CUPS_DEPRECATED and _CUPS_INTERNAL macros to mark old APIs as * "deprecated" or "unavailable" with messages so you get warnings/errors are * compile-time... * * Note: Using any of the _CUPS_DEPRECATED macros automatically adds * _CUPS_PUBLIC.
*/
# if !defined(_CUPS_HAS_DEPRECATED) || (defined(_CUPS_SOURCE) && !defined(_CUPS_NO_DEPRECATED)) /* * Don't mark functions deprecated if the compiler doesn't support it * or we are building CUPS source that doesn't care.
*/ # define _CUPS_DEPRECATED _CUPS_PUBLIC # define _CUPS_DEPRECATED_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) _CUPS_PUBLIC # elif defined(__APPLE__) && defined(_CUPS_NO_DEPRECATED) /* * Compiler supports the unavailable attribute, so use it when the code * wants to exclude the use of deprecated API.
*/ # define _CUPS_DEPRECATED __attribute__ ((unavailable)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) API_DEPRECATED(m, macos(10.2,10.5), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) API_DEPRECATED(m, macos(10.2,10.8), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) API_DEPRECATED(m, macos(10.2,10.9), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) API_DEPRECATED(m, macos(10.2,10.12), ios(11.0,11.0)) _CUPS_PUBLIC
/* * Define _CUPS_INTERNAL_MSG macro for private APIs that have (historical) * public visibility. * * Note: Using the _CUPS_INTERNAL_MSG macro automatically adds _CUPS_PUBLIC.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.