LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.73k stars 1.13k forks source link

Use array not pointer to array #2938

Closed havardAasen closed 3 months ago

havardAasen commented 3 months ago

By using the array, information about the size is available at compile time and the compiler can do proper bound checking, this increases type safety. A small, in my mind, trade-off is that a slightly longer name is necessary.