annotate runtime/macros/maze/mazeansi.c @ 33148:7bc10151ce81 v9.0.1856

patch 9.0.1856: issues with formatting positional arguments Commit: https://github.com/vim/vim/commit/aa90d4f031f73a34aaef5746931ea746849a2231 Author: Christ van Willegen <cvwillegen@gmail.com> Date: Sun Sep 3 17:22:37 2023 +0200 patch 9.0.1856: issues with formatting positional arguments Problem: issues with formatting positional arguments Solution: fix them, add tests and documentation closes: #12140 closes: #12985 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Christ van Willegen <cvwillegen@gmail.com> Tentatively fix message_test. Check NULL ptr.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Sep 2023 17:30:05 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 char*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 C) ;-- E;J [E ]=M
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 ) , A = 39 ,C --
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 ) ; Z || printf (T ))T[Z]=Z[A-(E =A[J-Z])&&!C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 & A == M[ A]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 |6<<27<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}