summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/stack.inl
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-23 17:17:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-23 17:19:08 +0200
commit218286bc055e9d9bcbefd3dfa2b38f92a95b15a6 (patch)
treedfd79ee383ba1192fa1a71d40bd52d5742601b76 /cpukit/score/inline/rtems/score/stack.inl
parentposix: Include missing <stdint.h> (diff)
downloadrtems-218286bc055e9d9bcbefd3dfa2b38f92a95b15a6.tar.bz2
score: Create stack implementation header
Move implementation specific parts of stack.h and stack.inl into new header file stackimpl.h. The stack.h contains now only the application visible API.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/stackimpl.h (renamed from cpukit/score/inline/rtems/score/stack.inl)16
1 files changed, 10 insertions, 6 deletions
diff --git a/cpukit/score/inline/rtems/score/stack.inl b/cpukit/score/include/rtems/score/stackimpl.h
index 7cb73eef9e..87629011d9 100644
--- a/cpukit/score/inline/rtems/score/stack.inl
+++ b/cpukit/score/include/rtems/score/stackimpl.h
@@ -16,14 +16,14 @@
* http://www.rtems.com/license/LICENSE.
*/
-#ifndef _RTEMS_SCORE_STACK_H
-# error "Never use <rtems/score/stack.inl> directly; include <rtems/score/stack.h> instead."
-#endif
+#ifndef _RTEMS_SCORE_STACKIMPL_H
+#define _RTEMS_SCORE_STACKIMPL_H
-#ifndef _RTEMS_SCORE_STACK_INL
-#define _RTEMS_SCORE_STACK_INL
+#include <rtems/score/stack.h>
-#include <rtems/score/basedefs.h> /* RTEMS_INLINE_ROUTINE */
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @addtogroup ScoreStack
@@ -91,5 +91,9 @@ RTEMS_INLINE_ROUTINE size_t _Stack_Ensure_minimum (
/** @} */
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */