Skarsnik / gptrixie

A tool to generate NativeCall code from C headers
Artistic License 2.0
27 stars 9 forks source link

This module assumes that CWD is writable and attempts to create some files #13

Open AlexDaniel opened 6 years ago

AlexDaniel commented 6 years ago

https://github.com/Skarsnik/gptrixie/blob/e17a0135e1f8816aac9e4bd0625692a5878f136c/bin/gptrixie#L212-L222

File plop.xml is created in CWD with an assumption that the filesystem is writable. In case of whateverables, it is not. I don't think it should do anything like this. In the worst case it should write to $*TMPDIR, but perhaps even that is avoidable?

Skarsnik commented 6 years ago

You like tormenting me. I guess I could write to a temp file

Skarsnik commented 6 years ago

Ok, fixed for castxml, need testing on gccxml