I had written a version using GetModuleFileNameA() when I noticed the reference to _pgmptr in its documentation. That's even easier.
It's noisy to renumber the passes in fileline_initialize(), but without doing so, the windows code can't be tested with wine. On wine /proc/self/exe can be opened, but points to the wine binary.
I had written a version using GetModuleFileNameA() when I noticed the reference to _pgmptr in its documentation. That's even easier.
It's noisy to renumber the passes in fileline_initialize(), but without doing so, the windows code can't be tested with wine. On wine /proc/self/exe can be opened, but points to the wine binary.
See also #111