Mercurial > vim
view runtime/macros/maze/mazeansi.c @ 8726:4c5c08316979 v7.4.1652
commit https://github.com/vim/vim/commit/610cc1b9b3c8104382f5506606c1f87118c28114
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 25 17:55:42 2016 +0100
patch 7.4.1652
Problem: Old style test for fnamemodify().
Solution: Turn it into a new style test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 25 Mar 2016 18:00:04 +0100 |
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,"_.":" |"];}