diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-05 14:49:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-06 07:46:29 +0200 |
commit | 3d86d83c1ba3b5d17263f2920801aa13c1221869 (patch) | |
tree | e31f2dd8aff34640bfc52ff8805b41822fc563e5 | |
parent | rtems: Deprecate use of _RTEMS_version (diff) | |
download | rtems-3d86d83c1ba3b5d17263f2920801aa13c1221869.tar.bz2 |
rtems: Deprecate RTEMS_MAXIMUM_NAME_LENGTH
This define is
* not documented,
* not used in the RTEMS code base, and
* longer than sizeof(rtems_name).
Close #3971.
-rw-r--r-- | cpukit/include/rtems/system.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/include/rtems/system.h b/cpukit/include/rtems/system.h index 2fb5e8add7..23d805d0bc 100644 --- a/cpukit/include/rtems/system.h +++ b/cpukit/include/rtems/system.h @@ -46,8 +46,9 @@ extern RTEMS_DEPRECATED const char _RTEMS_version[]; */ extern const char _Copyright_Notice[]; -/** This macro defines the maximum length of a Classic API name. */ -#define RTEMS_MAXIMUM_NAME_LENGTH sizeof(rtems_name) +typedef RTEMS_DEPRECATED uint32_t RTEMS_MAXIMUM_NAME_LENGTH; +/* The use of this define is deprecated, use sizeof(rtems_name) instead */ +#define RTEMS_MAXIMUM_NAME_LENGTH sizeof(RTEMS_MAXIMUM_NAME_LENGTH) #endif /* ASM */ |