Commit a0c2b8e9 by Richard Kenner

(main): Strip off ".cpp" extension.

From-SVN: r6261
parent cc70323d
......@@ -1900,6 +1900,12 @@ main (argc, argv)
&& p[len - 2] == 'x'
&& p[len - 1] == 'x')
q = p + (len - 4);
else if (len >= 4
&& p[len - 4] == '.'
&& p[len - 3] == 'c'
&& p[len - 2] == 'p'
&& p[len - 1] == 'p')
q = p + (len - 4);
/* Supply our own suffix. */
#ifndef VMS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment