Hacker News new | ask | show | jobs
by onetwotree 3060 days ago
Anyone know what "triadic arguments" means in this context? Is it a typo of variadic?

  Some C features are still not supported by dffi (but will be in future releases):
  
     * C structures with bitfields
     * functions with triadic arguments
1 comments

I believe it's supposed to be variadic. I thought it original meant 3-arg functions, but I can see in one of the examples it calls a 3-arg function. The TODO file however says "var args" still needs to be implemented.

* Example calling three arg function: https://github.com/aguinet/dragonffi/blob/master/examples/ar...

* TODO File: https://github.com/aguinet/dragonffi/blob/master/TODO

this was a unfortunate typo I just fixed: https://github.com/aguinet/dragonffi/commit/dc623098d30f3706...

So it is about variadic arguments. The reason is time, that is I still didn't take the time to make it work, but it does not seem to have big issues doing it!