Changeset 3ac68119 in rtems for cpukit/sapi/include/confdefs.h


Ignore:
Timestamp:
Mar 6, 2015, 5:41:49 PM (5 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
23e43f6
Parents:
b05549fc
git-author:
Gedare Bloom <gedare@…> (03/06/15 17:41:49)
git-committer:
Gedare Bloom <gedare@…> (03/10/15 16:53:07)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    rb05549fc r3ac68119  
    18111811    (CONFIGURE_MAXIMUM_TASKS + CONFIGURE_LIBBLOCK_TASKS)
    18121812
    1813   #ifndef CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
     1813  #if defined(CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS)
     1814    #warning "CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is deprecated and will be removed."
     1815  #endif
     1816  #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS)
     1817    #warning "CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is deprecated and will be removed."
    18141818    #define CONFIGURE_NOTEPADS_ENABLED           TRUE
    18151819  #else
     
    26142618    } Scheduler;
    26152619    RTEMS_API_Control API_RTEMS;
    2616     #ifndef CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
    2617       uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ];
     2620    #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS)
     2621      uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ] RTEMS_COMPILER_DEPRECATED_ATTRIBUTE;
    26182622    #endif
    26192623    #ifdef RTEMS_POSIX_API
Note: See TracChangeset for help on using the changeset viewer.