[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bsp.am
- Date: Sun, 02 Dec 2007 15:50:26 -0800
- From: strauman at slac.stanford.edu (Till Straumann)
- Subject: bsp.am
Ralf Corsepius wrote:
> On Sun, 2007-12-02 at 12:20 -0800, Till Straumann wrote:
>
>> I propose to introduce a CPP symbol
>>
>> __RTEMS_INSIDE_BSP__
>>
>> It should be defined only during compilation of the BSP so that
>> internal interfaces defined in some headers could be protected
>> from being exposed to application code.
>>
>> Does this make sense?
>>
> IMO, no. All such defines do is to play down bad code and to cater bad
> programming practices (BSP API violations).
>
>
>
So what do you suggest - two separate headers, one
for the public interface, a second one for BSP-internal
interfaces?
The technique of hiding internal interfaces by such a symbol
is already employed widely by the RTEMS kernel and
by the networking code.
T.
> Ralf
>
>
>
- Follow-Ups:
- bsp.am
- From: Thomas.Doerfler at imd-systems.de (Thomas Doerfler (nt))
- References:
- bsp.am
- From: strauman at slac.stanford.edu (Till Straumann)
- bsp.am
- From: ralf.corsepius at rtems.org (Ralf Corsepius)