lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[CLOSED] [dispatch_table] Use ARRAY_SIZE instead of checking for NULL field #52

Closed lerwys closed 8 years ago

lerwys commented 8 years ago

Issue by lerwys Monday Dec 01, 2014 at 12:35 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/52


Problem: Some functions of the dispatch table checks for a NULL field on iterations. This is slow and constrain the array to have a NULL field specifier.

Solution: Use the ARRAY_SIZE macro to iterate over the array

lerwys commented 8 years ago

Comment by lerwys Monday Dec 01, 2014 at 12:46 GMT


We can't do it directly as our structure is not static

lerwys commented 8 years ago

Comment by lerwys Friday Dec 05, 2014 at 17:13 GMT


Also, we don't use an array, rather a pointer.