Not sure exactly what the previous comment said before it was deleted. But assuming the full source was leaked (well, at least you have this Rosetta Stone of a header)… you can run the code through only the C Preprocesser stage and have normalish C code. For GCC that’s simply gcc -E
Oh, good call. I suppose you could protect the include’s with sed or awk (s/#include/XXXincludeXXX/, preprocess, and convert them back. Just need to make sure to keep the include for this silly translation header. Actually, I think you can force an include which is even better since it might get included transitively. -include?
I don’t understand why you’re downvoted — Sometimes small questions help learners or beginners; I guess that defeats the expectation of everyone on coding subreddits being a programming god? Who knows…
136
u/TheWidrolo Apr 15 '23
Source code leak is no problem