Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
re2c output is not atomic #245
When I run this command and then interrupt it:
It will create an empty symbol.cpp file. This is problematic for make because the output now exists and so the job does not get rerun. To work around it, I must do this:
However, it would be nicer if '-o' did this internally.
Yes, this seems useful. The question is, how to create a temporary file portably in C++98?
One possible way is to open
Out of curiosity, is your output file large? It seems that in most cases re2c does not take that long to generate output.