Commit ad96db2e5f for perl
commit ad96db2e5f3f154dcffb207bcb1a4b509528dce4
Author: Karl Williamson <khw@cpan.org>
Date: Tue Nov 17 09:43:44 2026 -0700
makedependfile.SH: Handle //-style comments
Now that we accept C99, we should handle these
diff --git a/makedependfile.SH b/makedependfile.SH
index fc64be3033..742421335a 100644
--- a/makedependfile.SH
+++ b/makedependfile.SH
@@ -173,6 +173,11 @@ $echo "Finding dependencies for $filebase$_o"
-e '}' \
-e '}' \
\
+ -e '# Now that we have done /*...*/ comments, we can do //' \
+ -e '# ones. The other way round doesnt work because of things' \
+ -e '# like /* ... // ... */' \
+ -e 's:[ ]*//.*: :' \
+ \
-e '# If this line is continued, join the next one to it, and' \
-e '# loop. The loop removes comments on this next joined segment' \
-e '/\\$/{' \