I try to integrate lua to my project (lua 5.2.1) And i have no problem to compile it.
But my problem is my project use my own system for read/write file from the file system.
So I start to modify lua for replacing each call of fopen / fclose / fread / fwrite ...
But the problem is Lua is too much mix if stdio fct ans use some FILE function I don't have equivalent in my project (and no so easy to reimplement), like : ungetc setvbuff
And so on....
My question ^^ Some aleeady try to do that ? And if yes how ? Does someone now a extension of lua who have this functionality (some c library use callback fct to ask open/close a file) ?
It's seams strange to me that lua who is really use on multi-platfroms os or even embeded system make a so strong use of std lib, abitualy for really cross platform lib every type and fct from std are typedefed for easy platfroms specifics change.
Thanks for any help you can give me :)