aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAiden Woodruff <aiden.woodruff@gmail.com>2018-12-18 08:05:12 -0600
committerAiden Woodruff <aiden.woodruff@gmail.com>2018-12-18 08:05:12 -0600
commit2f8fd7163131b82967e7b660c2cd57d8782ed0df (patch)
tree4e14b1e472d74536284277b2ff15f7d3f83d8fa9
parent535fc291b68534d4da53c894d9f84cb185de72d5 (diff)
downloadlife-2f8fd7163131b82967e7b660c2cd57d8782ed0df.tar.gz
life-2f8fd7163131b82967e7b660c2cd57d8782ed0df.tar.bz2
life-2f8fd7163131b82967e7b660c2cd57d8782ed0df.zip
Some updates, need to parse them later
-rw-r--r--Makefile.in68
-rw-r--r--aclocal.m444
-rw-r--r--config.h.in70
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac2
-rw-r--r--docs/Makefile.in6
-rw-r--r--src/Makefile.in4
-rw-r--r--src/life.c42
-rw-r--r--test/Makefile.in4
9 files changed, 82 insertions, 162 deletions
diff --git a/Makefile.in b/Makefile.in
index 44c7af4..dce1131 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile.in generated by automake 1.15 from Makefile.am. 1# Makefile.in generated by automake 1.15.1 from Makefile.am.
2# @configure_input@ 2# @configure_input@
3 3
4# Copyright (C) 1994-2014 Free Software Foundation, Inc. 4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5 5
6# This Makefile.in is free software; the Free Software Foundation 6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it, 7# gives unlimited permission to copy and/or distribute it,
@@ -95,7 +95,7 @@ DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
95am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 95am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
96 configure.lineno config.status.lineno 96 configure.lineno config.status.lineno
97mkinstalldirs = $(install_sh) -d 97mkinstalldirs = $(install_sh) -d
98CONFIG_HEADER = config.h 98CONFIG_HEADER = $(top_builddir)/src/config.h
99CONFIG_CLEAN_FILES = 99CONFIG_CLEAN_FILES =
100CONFIG_CLEAN_VPATH_FILES = 100CONFIG_CLEAN_VPATH_FILES =
101AM_V_P = $(am__v_P_@AM_V@) 101AM_V_P = $(am__v_P_@AM_V@)
@@ -164,8 +164,7 @@ am__recursive_targets = \
164 $(am__extra_recursive_targets) 164 $(am__extra_recursive_targets)
165AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ 165AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
166 cscope distdir dist dist-all distcheck 166 cscope distdir dist dist-all distcheck
167am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ 167am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
168 $(LISP)config.h.in
169# Read a list of newline-separated strings from the standard input, 168# Read a list of newline-separated strings from the standard input,
170# and print each of them once, without duplicates. Input order is 169# and print each of them once, without duplicates. Input order is
171# *not* preserved. 170# *not* preserved.
@@ -186,9 +185,8 @@ ETAGS = etags
186CTAGS = ctags 185CTAGS = ctags
187CSCOPE = cscope 186CSCOPE = cscope
188DIST_SUBDIRS = $(SUBDIRS) 187DIST_SUBDIRS = $(SUBDIRS)
189am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \ 188am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \
190 COPYING ChangeLog INSTALL NEWS README compile depcomp \ 189 INSTALL NEWS README compile depcomp install-sh missing
191 install-sh missing
192DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 190DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
193distdir = $(PACKAGE)-$(VERSION) 191distdir = $(PACKAGE)-$(VERSION)
194top_distdir = $(distdir) 192top_distdir = $(distdir)
@@ -325,8 +323,7 @@ AM_CPPFLAGS = -I$(srcdir) -I.
325man_MANS = docs/life.6 323man_MANS = docs/life.6
326EXTRA_DIST = $(man_MANS) 324EXTRA_DIST = $(man_MANS)
327SUBDIRS = docs src test 325SUBDIRS = docs src test
328all: config.h 326all: all-recursive
329 $(MAKE) $(AM_MAKEFLAGS) all-recursive
330 327
331.SUFFIXES: 328.SUFFIXES:
332am--refresh: Makefile 329am--refresh: Makefile
@@ -362,21 +359,6 @@ $(top_srcdir)/configure: $(am__configure_deps)
362$(ACLOCAL_M4): $(am__aclocal_m4_deps) 359$(ACLOCAL_M4): $(am__aclocal_m4_deps)
363 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 360 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
364$(am__aclocal_m4_deps): 361$(am__aclocal_m4_deps):
365
366config.h: stamp-h1
367 @test -f $@ || rm -f stamp-h1
368 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
369
370stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
371 @rm -f stamp-h1
372 cd $(top_builddir) && $(SHELL) ./config.status config.h
373$(srcdir)/config.h.in: $(am__configure_deps)
374 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
375 rm -f stamp-h1
376 touch $@
377
378distclean-hdr:
379 -rm -f config.h stamp-h1
380install-man6: $(man_MANS) 362install-man6: $(man_MANS)
381 @$(NORMAL_INSTALL) 363 @$(NORMAL_INSTALL)
382 @list1=''; \ 364 @list1=''; \
@@ -592,7 +574,7 @@ distdir: $(DISTFILES)
592 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ 574 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
593 || chmod -R a+r "$(distdir)" 575 || chmod -R a+r "$(distdir)"
594dist-gzip: distdir 576dist-gzip: distdir
595 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 577 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
596 $(am__post_remove_distdir) 578 $(am__post_remove_distdir)
597 579
598dist-bzip2: distdir 580dist-bzip2: distdir
@@ -618,7 +600,7 @@ dist-shar: distdir
618 @echo WARNING: "Support for shar distribution archives is" \ 600 @echo WARNING: "Support for shar distribution archives is" \
619 "deprecated." >&2 601 "deprecated." >&2
620 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 602 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
621 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 603 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
622 $(am__post_remove_distdir) 604 $(am__post_remove_distdir)
623 605
624dist-zip: distdir 606dist-zip: distdir
@@ -636,7 +618,7 @@ dist dist-all:
636distcheck: dist 618distcheck: dist
637 case '$(DIST_ARCHIVES)' in \ 619 case '$(DIST_ARCHIVES)' in \
638 *.tar.gz*) \ 620 *.tar.gz*) \
639 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ 621 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
640 *.tar.bz2*) \ 622 *.tar.bz2*) \
641 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ 623 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
642 *.tar.lz*) \ 624 *.tar.lz*) \
@@ -646,7 +628,7 @@ distcheck: dist
646 *.tar.Z*) \ 628 *.tar.Z*) \
647 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ 629 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
648 *.shar.gz*) \ 630 *.shar.gz*) \
649 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ 631 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
650 *.zip*) \ 632 *.zip*) \
651 unzip $(distdir).zip ;;\ 633 unzip $(distdir).zip ;;\
652 esac 634 esac
@@ -717,7 +699,7 @@ distcleancheck: distclean
717 exit 1; } >&2 699 exit 1; } >&2
718check-am: all-am 700check-am: all-am
719check: check-recursive 701check: check-recursive
720all-am: Makefile $(MANS) config.h 702all-am: Makefile $(MANS)
721installdirs: installdirs-recursive 703installdirs: installdirs-recursive
722installdirs-am: 704installdirs-am:
723 for dir in "$(DESTDIR)$(man6dir)"; do \ 705 for dir in "$(DESTDIR)$(man6dir)"; do \
@@ -760,7 +742,7 @@ clean-am: clean-generic mostlyclean-am
760distclean: distclean-recursive 742distclean: distclean-recursive
761 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 743 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
762 -rm -f Makefile 744 -rm -f Makefile
763distclean-am: clean-am distclean-generic distclean-hdr distclean-tags 745distclean-am: clean-am distclean-generic distclean-tags
764 746
765dvi: dvi-recursive 747dvi: dvi-recursive
766 748
@@ -824,23 +806,23 @@ uninstall-am: uninstall-man
824 806
825uninstall-man: uninstall-man6 807uninstall-man: uninstall-man6
826 808
827.MAKE: $(am__recursive_targets) all install-am install-strip 809.MAKE: $(am__recursive_targets) install-am install-strip
828 810
829.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ 811.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
830 am--refresh check check-am clean clean-cscope clean-generic \ 812 am--refresh check check-am clean clean-cscope clean-generic \
831 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ 813 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
832 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ 814 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
833 distcheck distclean distclean-generic distclean-hdr \ 815 distcheck distclean distclean-generic distclean-tags \
834 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 816 distcleancheck distdir distuninstallcheck dvi dvi-am html \
835 dvi-am html html-am info info-am install install-am \ 817 html-am info info-am install install-am install-data \
836 install-data install-data-am install-dvi install-dvi-am \ 818 install-data-am install-dvi install-dvi-am install-exec \
837 install-exec install-exec-am install-html install-html-am \ 819 install-exec-am install-html install-html-am install-info \
838 install-info install-info-am install-man install-man6 \ 820 install-info-am install-man install-man6 install-pdf \
839 install-pdf install-pdf-am install-ps install-ps-am \ 821 install-pdf-am install-ps install-ps-am install-strip \
840 install-strip installcheck installcheck-am installdirs \ 822 installcheck installcheck-am installdirs installdirs-am \
841 installdirs-am maintainer-clean maintainer-clean-generic \ 823 maintainer-clean maintainer-clean-generic mostlyclean \
842 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ 824 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
843 tags-am uninstall uninstall-am uninstall-man uninstall-man6 825 uninstall-am uninstall-man uninstall-man6
844 826
845.PRECIOUS: Makefile 827.PRECIOUS: Makefile
846 828
diff --git a/aclocal.m4 b/aclocal.m4
index f3018f6..df8ff83 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,6 +1,6 @@
1# generated automatically by aclocal 1.15 -*- Autoconf -*- 1# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
2 2
3# Copyright (C) 1996-2014 Free Software Foundation, Inc. 3# Copyright (C) 1996-2017 Free Software Foundation, Inc.
4 4
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely. 20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22 22
23# Copyright (C) 2002-2014 Free Software Foundation, Inc. 23# Copyright (C) 2002-2017 Free Software Foundation, Inc.
24# 24#
25# This file is free software; the Free Software Foundation 25# This file is free software; the Free Software Foundation
26# gives unlimited permission to copy and/or distribute it, 26# gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
35[am__api_version='1.15' 35[am__api_version='1.15'
36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37dnl require some minimum version. Point them to the right macro. 37dnl require some minimum version. Point them to the right macro.
38m4_if([$1], [1.15], [], 38m4_if([$1], [1.15.1], [],
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40]) 40])
41 41
@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54[AM_AUTOMAKE_VERSION([1.15])dnl 54[AM_AUTOMAKE_VERSION([1.15.1])dnl
55m4_ifndef([AC_AUTOCONF_VERSION], 55m4_ifndef([AC_AUTOCONF_VERSION],
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58 58
59# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60 60
61# Copyright (C) 2001-2014 Free Software Foundation, Inc. 61# Copyright (C) 2001-2017 Free Software Foundation, Inc.
62# 62#
63# This file is free software; the Free Software Foundation 63# This file is free software; the Free Software Foundation
64# gives unlimited permission to copy and/or distribute it, 64# gives unlimited permission to copy and/or distribute it,
@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
110 110
111# AM_CONDITIONAL -*- Autoconf -*- 111# AM_CONDITIONAL -*- Autoconf -*-
112 112
113# Copyright (C) 1997-2014 Free Software Foundation, Inc. 113# Copyright (C) 1997-2017 Free Software Foundation, Inc.
114# 114#
115# This file is free software; the Free Software Foundation 115# This file is free software; the Free Software Foundation
116# gives unlimited permission to copy and/or distribute it, 116# gives unlimited permission to copy and/or distribute it,
@@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE(
141Usually this means the macro was only invoked conditionally.]]) 141Usually this means the macro was only invoked conditionally.]])
142fi])]) 142fi])])
143 143
144# Copyright (C) 1999-2014 Free Software Foundation, Inc. 144# Copyright (C) 1999-2017 Free Software Foundation, Inc.
145# 145#
146# This file is free software; the Free Software Foundation 146# This file is free software; the Free Software Foundation
147# gives unlimited permission to copy and/or distribute it, 147# gives unlimited permission to copy and/or distribute it,
@@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
332 332
333# Generate code to set up dependency tracking. -*- Autoconf -*- 333# Generate code to set up dependency tracking. -*- Autoconf -*-
334 334
335# Copyright (C) 1999-2014 Free Software Foundation, Inc. 335# Copyright (C) 1999-2017 Free Software Foundation, Inc.
336# 336#
337# This file is free software; the Free Software Foundation 337# This file is free software; the Free Software Foundation
338# gives unlimited permission to copy and/or distribute it, 338# gives unlimited permission to copy and/or distribute it,
@@ -408,7 +408,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
408 408
409# Do all the work for Automake. -*- Autoconf -*- 409# Do all the work for Automake. -*- Autoconf -*-
410 410
411# Copyright (C) 1996-2014 Free Software Foundation, Inc. 411# Copyright (C) 1996-2017 Free Software Foundation, Inc.
412# 412#
413# This file is free software; the Free Software Foundation 413# This file is free software; the Free Software Foundation
414# gives unlimited permission to copy and/or distribute it, 414# gives unlimited permission to copy and/or distribute it,
@@ -605,7 +605,7 @@ for _am_header in $config_headers :; do
605done 605done
606echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 606echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
607 607
608# Copyright (C) 2001-2014 Free Software Foundation, Inc. 608# Copyright (C) 2001-2017 Free Software Foundation, Inc.
609# 609#
610# This file is free software; the Free Software Foundation 610# This file is free software; the Free Software Foundation
611# gives unlimited permission to copy and/or distribute it, 611# gives unlimited permission to copy and/or distribute it,
@@ -626,7 +626,7 @@ if test x"${install_sh+set}" != xset; then
626fi 626fi
627AC_SUBST([install_sh])]) 627AC_SUBST([install_sh])])
628 628
629# Copyright (C) 2003-2014 Free Software Foundation, Inc. 629# Copyright (C) 2003-2017 Free Software Foundation, Inc.
630# 630#
631# This file is free software; the Free Software Foundation 631# This file is free software; the Free Software Foundation
632# gives unlimited permission to copy and/or distribute it, 632# gives unlimited permission to copy and/or distribute it,
@@ -647,7 +647,7 @@ AC_SUBST([am__leading_dot])])
647 647
648# Check to see how 'make' treats includes. -*- Autoconf -*- 648# Check to see how 'make' treats includes. -*- Autoconf -*-
649 649
650# Copyright (C) 2001-2014 Free Software Foundation, Inc. 650# Copyright (C) 2001-2017 Free Software Foundation, Inc.
651# 651#
652# This file is free software; the Free Software Foundation 652# This file is free software; the Free Software Foundation
653# gives unlimited permission to copy and/or distribute it, 653# gives unlimited permission to copy and/or distribute it,
@@ -697,7 +697,7 @@ rm -f confinc confmf
697 697
698# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 698# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
699 699
700# Copyright (C) 1997-2014 Free Software Foundation, Inc. 700# Copyright (C) 1997-2017 Free Software Foundation, Inc.
701# 701#
702# This file is free software; the Free Software Foundation 702# This file is free software; the Free Software Foundation
703# gives unlimited permission to copy and/or distribute it, 703# gives unlimited permission to copy and/or distribute it,
@@ -736,7 +736,7 @@ fi
736 736
737# Helper functions for option handling. -*- Autoconf -*- 737# Helper functions for option handling. -*- Autoconf -*-
738 738
739# Copyright (C) 2001-2014 Free Software Foundation, Inc. 739# Copyright (C) 2001-2017 Free Software Foundation, Inc.
740# 740#
741# This file is free software; the Free Software Foundation 741# This file is free software; the Free Software Foundation
742# gives unlimited permission to copy and/or distribute it, 742# gives unlimited permission to copy and/or distribute it,
@@ -765,7 +765,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
765AC_DEFUN([_AM_IF_OPTION], 765AC_DEFUN([_AM_IF_OPTION],
766[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 766[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
767 767
768# Copyright (C) 1999-2014 Free Software Foundation, Inc. 768# Copyright (C) 1999-2017 Free Software Foundation, Inc.
769# 769#
770# This file is free software; the Free Software Foundation 770# This file is free software; the Free Software Foundation
771# gives unlimited permission to copy and/or distribute it, 771# gives unlimited permission to copy and/or distribute it,
@@ -812,7 +812,7 @@ AC_LANG_POP([C])])
812# For backward compatibility. 812# For backward compatibility.
813AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 813AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
814 814
815# Copyright (C) 2001-2014 Free Software Foundation, Inc. 815# Copyright (C) 2001-2017 Free Software Foundation, Inc.
816# 816#
817# This file is free software; the Free Software Foundation 817# This file is free software; the Free Software Foundation
818# gives unlimited permission to copy and/or distribute it, 818# gives unlimited permission to copy and/or distribute it,
@@ -831,7 +831,7 @@ AC_DEFUN([AM_RUN_LOG],
831 831
832# Check to make sure that the build environment is sane. -*- Autoconf -*- 832# Check to make sure that the build environment is sane. -*- Autoconf -*-
833 833
834# Copyright (C) 1996-2014 Free Software Foundation, Inc. 834# Copyright (C) 1996-2017 Free Software Foundation, Inc.
835# 835#
836# This file is free software; the Free Software Foundation 836# This file is free software; the Free Software Foundation
837# gives unlimited permission to copy and/or distribute it, 837# gives unlimited permission to copy and/or distribute it,
@@ -912,7 +912,7 @@ AC_CONFIG_COMMANDS_PRE(
912rm -f conftest.file 912rm -f conftest.file
913]) 913])
914 914
915# Copyright (C) 2009-2014 Free Software Foundation, Inc. 915# Copyright (C) 2009-2017 Free Software Foundation, Inc.
916# 916#
917# This file is free software; the Free Software Foundation 917# This file is free software; the Free Software Foundation
918# gives unlimited permission to copy and/or distribute it, 918# gives unlimited permission to copy and/or distribute it,
@@ -972,7 +972,7 @@ AC_SUBST([AM_BACKSLASH])dnl
972_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 972_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
973]) 973])
974 974
975# Copyright (C) 2001-2014 Free Software Foundation, Inc. 975# Copyright (C) 2001-2017 Free Software Foundation, Inc.
976# 976#
977# This file is free software; the Free Software Foundation 977# This file is free software; the Free Software Foundation
978# gives unlimited permission to copy and/or distribute it, 978# gives unlimited permission to copy and/or distribute it,
@@ -1000,7 +1000,7 @@ fi
1000INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1000INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1001AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1001AC_SUBST([INSTALL_STRIP_PROGRAM])])
1002 1002
1003# Copyright (C) 2006-2014 Free Software Foundation, Inc. 1003# Copyright (C) 2006-2017 Free Software Foundation, Inc.
1004# 1004#
1005# This file is free software; the Free Software Foundation 1005# This file is free software; the Free Software Foundation
1006# gives unlimited permission to copy and/or distribute it, 1006# gives unlimited permission to copy and/or distribute it,
@@ -1019,7 +1019,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1019 1019
1020# Check how to create a tarball. -*- Autoconf -*- 1020# Check how to create a tarball. -*- Autoconf -*-
1021 1021
1022# Copyright (C) 2004-2014 Free Software Foundation, Inc. 1022# Copyright (C) 2004-2017 Free Software Foundation, Inc.
1023# 1023#
1024# This file is free software; the Free Software Foundation 1024# This file is free software; the Free Software Foundation
1025# gives unlimited permission to copy and/or distribute it, 1025# gives unlimited permission to copy and/or distribute it,
diff --git a/config.h.in b/config.h.in
deleted file mode 100644
index 56181f0..0000000
--- a/config.h.in
+++ /dev/null
@@ -1,70 +0,0 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define to 1 if you have the <inttypes.h> header file. */
4#undef HAVE_INTTYPES_H
5
6/* Define to 1 if you have the `ncurses' library (-lncurses). */
7#undef HAVE_LIBNCURSES
8
9/* Define to 1 if you have the <memory.h> header file. */
10#undef HAVE_MEMORY_H
11
12/* Define to 1 if you have the `memset' function. */
13#undef HAVE_MEMSET
14
15/* Define to 1 if you have the <stdint.h> header file. */
16#undef HAVE_STDINT_H
17
18/* Define to 1 if you have the <stdlib.h> header file. */
19#undef HAVE_STDLIB_H
20
21/* Define to 1 if you have the <strings.h> header file. */
22#undef HAVE_STRINGS_H
23
24/* Define to 1 if you have the <string.h> header file. */
25#undef HAVE_STRING_H
26
27/* Define to 1 if you have the `strtol' function. */
28#undef HAVE_STRTOL
29
30/* Define to 1 if you have the <sys/stat.h> header file. */
31#undef HAVE_SYS_STAT_H
32
33/* Define to 1 if you have the <sys/types.h> header file. */
34#undef HAVE_SYS_TYPES_H
35
36/* Define to 1 if typeof works with your compiler. */
37#undef HAVE_TYPEOF
38
39/* Define to 1 if you have the <unistd.h> header file. */
40#undef HAVE_UNISTD_H
41
42/* Name of package */
43#undef PACKAGE
44
45/* Define to the address where bug reports for this package should be sent. */
46#undef PACKAGE_BUGREPORT
47
48/* Define to the full name of this package. */
49#undef PACKAGE_NAME
50
51/* Define to the full name and version of this package. */
52#undef PACKAGE_STRING
53
54/* Define to the one symbol short name of this package. */
55#undef PACKAGE_TARNAME
56
57/* Define to the home page for this package. */
58#undef PACKAGE_URL
59
60/* Define to the version of this package. */
61#undef PACKAGE_VERSION
62
63/* Define to 1 if you have the ANSI C header files. */
64#undef STDC_HEADERS
65
66/* Version number of package */
67#undef VERSION
68
69/* Define to __typeof__ if your compiler spells it that way. */
70#undef typeof
diff --git a/configure b/configure
index b4680e9..a232794 100755
--- a/configure
+++ b/configure
@@ -2153,7 +2153,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 2153
2154 2154
2155 2155
2156ac_config_headers="$ac_config_headers config.h" 2156ac_config_headers="$ac_config_headers src/config.h"
2157 2157
2158 2158
2159# Checks for programs. 2159# Checks for programs.
@@ -5239,7 +5239,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5239for ac_config_target in $ac_config_targets 5239for ac_config_target in $ac_config_targets
5240do 5240do
5241 case $ac_config_target in 5241 case $ac_config_target in
5242 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5242 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5243 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 5243 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
5244 "docs/life.6") CONFIG_FILES="$CONFIG_FILES docs/life.6" ;; 5244 "docs/life.6") CONFIG_FILES="$CONFIG_FILES docs/life.6" ;;
5245 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 5245 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 4d8897a..0b1fffd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
4AC_PREREQ([2.69]) 4AC_PREREQ([2.69])
5AC_INIT([life], [1.6.0], [aiden.woodruff@gmail.com]) 5AC_INIT([life], [1.6.0], [aiden.woodruff@gmail.com])
6AC_CONFIG_SRCDIR([src/life.c]) 6AC_CONFIG_SRCDIR([src/life.c])
7AC_CONFIG_HEADERS([config.h]) 7AC_CONFIG_HEADERS([src/config.h])
8 8
9# Checks for programs. 9# Checks for programs.
10AC_PROG_CC 10AC_PROG_CC
diff --git a/docs/Makefile.in b/docs/Makefile.in
index f7fcf82..f21a863 100644
--- a/docs/Makefile.in
+++ b/docs/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile.in generated by automake 1.15 from Makefile.am. 1# Makefile.in generated by automake 1.15.1 from Makefile.am.
2# @configure_input@ 2# @configure_input@
3 3
4# Copyright (C) 1994-2014 Free Software Foundation, Inc. 4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5 5
6# This Makefile.in is free software; the Free Software Foundation 6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it, 7# gives unlimited permission to copy and/or distribute it,
@@ -92,7 +92,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
92 $(ACLOCAL_M4) 92 $(ACLOCAL_M4)
93DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) 93DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
94mkinstalldirs = $(install_sh) -d 94mkinstalldirs = $(install_sh) -d
95CONFIG_HEADER = $(top_builddir)/config.h 95CONFIG_HEADER = $(top_builddir)/src/config.h
96CONFIG_CLEAN_FILES = life.6 96CONFIG_CLEAN_FILES = life.6
97CONFIG_CLEAN_VPATH_FILES = 97CONFIG_CLEAN_VPATH_FILES =
98AM_V_P = $(am__v_P_@AM_V@) 98AM_V_P = $(am__v_P_@AM_V@)
diff --git a/src/Makefile.in b/src/Makefile.in
index 61cc02b..c7d1edc 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile.in generated by automake 1.15 from Makefile.am. 1# Makefile.in generated by automake 1.15.1 from Makefile.am.
2# @configure_input@ 2# @configure_input@
3 3
4# Copyright (C) 1994-2014 Free Software Foundation, Inc. 4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5 5
6# This Makefile.in is free software; the Free Software Foundation 6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it, 7# gives unlimited permission to copy and/or distribute it,
diff --git a/src/life.c b/src/life.c
index 24117fa..e571c79 100644
--- a/src/life.c
+++ b/src/life.c
@@ -21,9 +21,9 @@
21 21
22#ifndef stat_bar_print 22#ifndef stat_bar_print
23// Print text to status bar in the nice way, without erasing or refreshing 23// Print text to status bar in the nice way, without erasing or refreshing
24#define stat_bar_print(win,...) \ 24#define stat_bar_print(win,...) do { \
25 mvwprintw(win, 0, 0, __VA_ARGS__); \ 25 mvwprintw(win, 0, 0, __VA_ARGS__); \
26 for (int _i = getcurx(win); _i < getmaxx(win); _i++) waddch(win, ' '); 26 mvwchgat(stat_bar, 0, 0, -1, A_STANDOUT, COLOR_PAIR(0), NULL); } while (0)
27#endif 27#endif
28 28
29#ifndef CTRL 29#ifndef CTRL
@@ -38,10 +38,10 @@ int main (int argc, char * argv[]) {
38 int livecell = '#'; 38 int livecell = '#';
39 int deadcell = '.'; 39 int deadcell = '.';
40 int timeout_val = 50; 40 int timeout_val = 50;
41 int width = 36; 41 size_t width = 36;
42 int height = 18; 42 size_t height = 18;
43 int x = 0; 43 size_t x = 0;
44 int y = 0; 44 size_t y = 0;
45 int playing = 0; 45 int playing = 0;
46 int delaymax = 10; 46 int delaymax = 10;
47 int delay = 0; 47 int delay = 0;
@@ -121,12 +121,12 @@ int main (int argc, char * argv[]) {
121 keypad(rule_entry, RULE); 121 keypad(rule_entry, RULE);
122 keypad(board, TRUE); 122 keypad(board, TRUE);
123 wstandout(stat_bar); 123 wstandout(stat_bar);
124 map = malloc((height * width)+1); 124 map = malloc(height * width + 1);
125 memset(map, 0, height * width + 1); 125 memset(map, 0, height * width + 1);
126 memset(map, deadcell, height * width); 126 memset(map, deadcell, height * width);
127 x = width >> 2; 127 x = width >> 1; // width / 2
128 y = height >> 2; 128 y = height >> 1; // height / 2
129 while (ch != 'q') { 129 while (ch != 'q' && ch != 'Q') {
130 foreach(werase, stdscr, board, stat_bar, entry); 130 foreach(werase, stdscr, board, stat_bar, entry);
131 if (playing == FALSE) { 131 if (playing == FALSE) {
132 // Numpad and arrow directions 132 // Numpad and arrow directions
@@ -202,9 +202,10 @@ int main (int argc, char * argv[]) {
202 foreach(werase, stdscr, board, stat_bar, entry); 202 foreach(werase, stdscr, board, stat_bar, entry);
203 stat_bar_print(stat_bar, "Press any key to return"); 203 stat_bar_print(stat_bar, "Press any key to return");
204 print_copying_warranty(board); 204 print_copying_warranty(board);
205 foreach(wnoutrefresh, stdscr, entry, stat_bar); 205 foreach(wnoutrefresh, stdscr, entry, stat_bar, board);
206 doupdate(); 206 doupdate();
207 getch(); 207 getch();
208 foreach(werase, stdscr, board, stat_bar, board);
208 wtimeout(board, timeout_val); 209 wtimeout(board, timeout_val);
209 break; 210 break;
210 case CTRL('r'): 211 case CTRL('r'):
@@ -237,10 +238,17 @@ int main (int argc, char * argv[]) {
237 foreach(wclear, stdscr, entry, stat_bar, board); 238 foreach(wclear, stdscr, entry, stat_bar, board);
238 } 239 }
239 for (int i = 0; i < height; ++i) { 240 for (int i = 0; i < height; ++i) {
240 mvwaddnstr(board, i, 0, map + (i * width), width); 241 mvwaddnstr(board, i, 0, (const char*) (map + (i * width)), width);
242 // *(map + (i * width) + x));
241 } 243 }
242 mvwchgat(board, y, x, 1, A_STANDOUT, COLOR_PAIR(0), NULL); 244 if (mvwchgat(board, y, x, 1, A_STANDOUT, COLOR_PAIR(0), NULL) == ERR) fprintf(stderr, "Error (mvwchgat)\n");
243 stat_bar_print(stat_bar, "(%d, %d)\t\tGeneration: %d\t\tDelay Time: %d", x, y, generation, delaymax); 245
246 // Emulate tabs
247 mvwprintw(stat_bar, 0, 0, "(%d, %d)", x, y);
248 mvwprintw(stat_bar, 0, 12, "Generation: %d", generation);
249 mvwprintw(stat_bar, 0, 30, "Delay Time: %d", delaymax);
250 mvwchgat(stat_bar, 0, 0, -1, A_STANDOUT, COLOR_PAIR(0), NULL);
251
244 foreach(wnoutrefresh, stdscr, board, entry, stat_bar); 252 foreach(wnoutrefresh, stdscr, board, entry, stat_bar);
245 doupdate(); 253 doupdate();
246 if (playing == TRUE) { 254 if (playing == TRUE) {
@@ -252,14 +260,14 @@ int main (int argc, char * argv[]) {
252 } 260 }
253 } 261 }
254 ch = wgetch(board); 262 ch = wgetch(board);
255 ch = tolower(ch);
256 } 263 }
264 endwin();
257 foreach(werase, stdscr, board, stat_bar, entry, rule_entry, rule_entry_box); 265 foreach(werase, stdscr, board, stat_bar, entry, rule_entry, rule_entry_box);
258 foreach(delwin, entry, stat_bar, board, rule_entry, rule_entry_box); 266 foreach(delwin, entry, stat_bar, board, rule_entry, rule_entry_box);
259 board = stat_bar = entry = rule_entry = rule_entry_box = NULL; 267 board = stat_bar = entry = rule_entry = rule_entry_box = NULL;
260 endwin();
261 delwin(stdscr); 268 delwin(stdscr);
262 free(map); 269 free(map);
263 map = NULL; 270 map = NULL;
271 fprintf(stdout, "Height: %zu\nWidth: %zu\n", height, width);
264 return 0; 272 return 0;
265} 273}
diff --git a/test/Makefile.in b/test/Makefile.in
index 3036b0f..d5da6ad 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile.in generated by automake 1.15 from Makefile.am. 1# Makefile.in generated by automake 1.15.1 from Makefile.am.
2# @configure_input@ 2# @configure_input@
3 3
4# Copyright (C) 1994-2014 Free Software Foundation, Inc. 4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5 5
6# This Makefile.in is free software; the Free Software Foundation 6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it, 7# gives unlimited permission to copy and/or distribute it,