From 3ac681191ec76f7c0a876f2f2cc33adad9a99cc0 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Fri, 6 Mar 2015 12:41:49 -0500 Subject: cpukit: deprecate notepads Deprecate Classic API Notepads. Mark task_set/get_note() with the deprecated attribute, and also mark the notepads field. Replace disable with enable option for notepads in confdefs.h, and make notepads disabled by default. The previous option CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and will emit a compile-time warning. A new option CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn on notepads, but it also will emit a compile-time warning to indicate that notepads are deprecated. Closes #2265 --- cpukit/sapi/include/confdefs.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cpukit/sapi') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 7d9e3b9e08..0bebb4ed0d 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1810,7 +1810,11 @@ const rtems_libio_helper rtems_fs_init_helper = #define CONFIGURE_TASKS \ (CONFIGURE_MAXIMUM_TASKS + CONFIGURE_LIBBLOCK_TASKS) - #ifndef CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS + #if defined(CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS) + #warning "CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is deprecated and will be removed." + #endif + #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS) + #warning "CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is deprecated and will be removed." #define CONFIGURE_NOTEPADS_ENABLED TRUE #else #define CONFIGURE_NOTEPADS_ENABLED FALSE @@ -2613,8 +2617,8 @@ const rtems_libio_helper rtems_fs_init_helper = #endif } Scheduler; RTEMS_API_Control API_RTEMS; - #ifndef CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS - uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ]; + #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS) + uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ] RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; #endif #ifdef RTEMS_POSIX_API POSIX_API_Control API_POSIX; -- cgit v1.2.3