annotate runtime/macros/maze/maze.c @ 23729:7eef04861034
v8.2.2406
patch 8.2.2406: Vim9: profiled :def function leaks memory
Commit: https://github.com/vim/vim/commit/c05fe07529f10fc32a2086cb44a708520c8d14ce
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 24 21:30:48 2021 +0100
patch 8.2.2406: Vim9: profiled :def function leaks memory
Problem: Vim9: profiled :def function leaks memory.
Solution: Delete the profiled instructions.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Sun, 24 Jan 2021 21:45:05 +0100 |
parents |
3fc0f57ecb91 |
children |
|
rev |
line source |
7
|
1 char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
|
|
2 -- E; J[ E] =T
|
|
3 [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
|
|
4 ) , A = 39 ,C --
|
|
5 ) ; Z || printf (M ))M[Z]=Z[A-(E =A[J-Z])&&!C
|
|
6 & A == T[ A]
|
|
7 |6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}
|