From 3a959d69f44d6e9a106303980a5e20fc3d446da7 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 11 Oct 2007 00:51:55 +0000 Subject: [PATCH] Added inline modifiers to some of the short functions in the C++CSP support header file --- tock_support_cppcsp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tock_support_cppcsp.h b/tock_support_cppcsp.h index 11166b6..5ba1837 100644 --- a/tock_support_cppcsp.h +++ b/tock_support_cppcsp.h @@ -380,12 +380,12 @@ public: } }; -void tockSendInt(const csp::Chanout& c, unsigned int n) +inline void tockSendInt(const csp::Chanout& c, unsigned int n) { c << tockSendableArrayOfBytes(&n); } -void tockRecvInt(const csp::Chanin& c, unsigned int* p) +inline void tockRecvInt(const csp::Chanin& c, unsigned int* p) { tockSendableArrayOfBytes d(sizeof(unsigned int),p); c >> d; @@ -405,13 +405,13 @@ public: }; template -void tockSendArray(const csp::Chanout< tockSendableArray >& out,const tockArrayView& arr) +inline void tockSendArray(const csp::Chanout< tockSendableArray >& out,const tockArrayView& arr) { out << tockSendableArray(arr); } template -void tockRecvArray(const csp::Chanin< tockSendableArray >& in,const tockArrayView& arr) +inline void tockRecvArray(const csp::Chanin< tockSendableArray >& in,const tockArrayView& arr) { tockSendableArray tsa(arr); in >> tsa;