From: Siraaj Khandkar Date: Sun, 26 Aug 2012 04:44:33 +0000 (-0400) Subject: Re-ordered function definitions. X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=24212f471d91c003d6ce65e11c12b971463f6da8;p=cellular-automata.git Re-ordered function definitions. --- diff --git a/004/life.awk b/004/life.awk index ff80828..c996455 100755 --- a/004/life.awk +++ b/004/life.awk @@ -22,14 +22,6 @@ function get_init_board(n) { } -function do_print_border(x) { - for (i=1; i <= x; i++) { - printf CHAR_BORDER() - }; - print; -} - - function get_char_of_state(state) { if (state == 1) { return CHAR_ALIVE() @@ -39,6 +31,14 @@ function get_char_of_state(state) { } +function do_print_border(x) { + for (i=1; i <= x; i++) { + printf CHAR_BORDER() + }; + print; +} + + function do_print_board(x, n, board) { do_print_border(x);