Mercurial > vim
view runtime/macros/maze/mazeansi.c @ 14710:b9a4e49a3f7c v8.1.0367
patch 8.1.0367: getchar(1) no longer processes pending messages
commit https://github.com/vim/vim/commit/84d9390480548c8d711dd772cb162a91d0bb3c30
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 11 20:10:20 2018 +0200
patch 8.1.0367: getchar(1) no longer processes pending messages
Problem: getchar(1) no longer processes pending messages. (Yasuhiro
Matsumoto)
Solution: Call parse_queued_messages().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 11 Sep 2018 20:15:07 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
char*M,A,Z,E=40,J[80],T[3];main(C){for(M=J+E,*J=A=scanf("%d",& C) ;-- E;J [E ]=M [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|" ) , A = 39 ,C -- ) ; Z || printf (T ))T[Z]=Z[A-(E =A[J-Z])&&!C & A == M[ A] |6<<27<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}