Using throwback
David Gee (1833) 268 posts |
Given a program originating from the UNIX world, which produces error messages on stderr, is it possible for the erorr messages to be used to provide “throwback”, or would it be necesssary to modify the program’s source code to do so? (I’m thinking the latter, but I can hope, can’t I ;-) ) |
André Timmermans (100) 655 posts |
You will have to look at the documentation of one of the C compiler utilities (DDEutils IIRC) for a complete description, but throwback is done by sending a series of Wimp messages: one for starting a session, one for specifying the file currently processed, one to specify a line number in the current file and the text to report, one for closing the session. This means that you have to modify the source code to support it. |
David Gee (1833) 268 posts |
As it happens I’ve found a way round this. I redirected the output to a file, and wrote a short C program to process the output and generate the appropriate Throwback SWIs, and it works. Now I just need to integrate it with the rest of the stuff I was working on (and provide an option for throwback to be turned off, too). |