We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cde474c commit 46e5236Copy full SHA for 46e5236
tests/scripts/ptc.sh
@@ -33,6 +33,13 @@ for header in ../library/**/*.hpp; do
33
echo "$header"
34
for i in $(seq "$(wc --lines <"$header")" -5 1); do
35
hash=$(head --lines "$i" "$header" | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
36
+ line_length=$(sed --quiet "${i}p" "$header" | wc --chars)
37
+ padding_length=$((60 - 8 - $line_length))
38
+ echo $line_length
39
+ echo $padding_length
40
+ padding_length=$(( $padding_length > 0 ? $padding_length : 0 ))
41
42
+ padding=$(printf '%*s' "$num_spaces")
43
sed --in-place "${i}s/$/\/\/${hash}/" "$header"
44
done
45
0 commit comments