Re: [riot-devel] enums vs. macros

2015-05-12 Thread Pekka Nikander
A silly question/suggestion: Wouldn't it make sense to use sized integer types in the struct, but a separate enum to define the values? IIRC, enum's in C are simply named integer constants. C is also very permitting in storing values into smaller integer types. For C++, of course, the situat

Re: [riot-devel] Switch to BSD?

2015-03-22 Thread Pekka Nikander
Dear Emmanuel, all; Personally, I laud this decision. It appears reasonable and based on a well founded analysis. Congratulations, to the whole community! --Pekka > On 2015–03–22, at 15:02 , Emmanuel Baccelli > wrote: > > Dear all, > > thanks for the input from everyone on this topic. It

Re: [riot-devel] About function pointers

2015-02-18 Thread Pekka Nikander
Oleg, all, Just as one data point, modern compilers are able to optimise out function pointers if they are constant. That is, if the struct containing the function pointer is a const struct, in a typical case "static const", then e.g. LLVM is able to optimise the function pointer call into the