[quoted lines by Shérab on 2019/11/24 at 12:20 +0100] >Aura Kelloniemi (2019/11/23 18:07 +0200): >> Can I use this new API across FFI
What's FFI? >> without the need for using the CPP macros, as they probably cannot be nicely >> translated to Rust code? > >Well I guess you may want to use some awk scripts to generate Rust >things form the .h files in order to take advantage of the symbolic >values. Sébastien is referring to the way that the symbols are already generated for the existing bindings. There are a set of awk scripts which "know" how to parse the C headers. Each binding suppliees its own awk script that provides hanlers for then writing the symbols into the file(s) and with the format that it needs. You can see examples of these scripts by looking in Bindings/<language>/constatns.awk. To take advantage of this infrastructure you'd need to create Bindings/Rust/, and include ../../bindings.mk within your make file. -- I believe the Bible to be the very Word of God: http://Mielke.cc/bible/ Dave Mielke | 2213 Fox Crescent | WebHome: http://Mielke.cc/ EMail: [email protected] | Ottawa, Ontario | Twitter: @Dave_Mielke Phone: +1 613 726 0014 | Canada K2A 1H7 | _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty
