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

From-SVN: r6262
This commit is contained in:
Richard Kenner 1993-12-22 07:47:03 -05:00
parent a0c2b8e969
commit 4da617d882

View File

@ -1499,6 +1499,8 @@ strip_off_ending (name, len)
name[len - 2] = 0;
else if (len > 4 && ! strcmp (".cxx", name + len - 4))
name[len - 4] = 0;
else if (len > 4 && ! strcmp (".cpp", name + len - 4))
name[len - 4] = 0;
else if (len > 2 && ! strcmp (".f", name + len - 2))
name[len - 2] = 0;
/* Ada will use extensions like .ada, .adb, and .ads, so just test