aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAiden Woodruff <aiden.woodruff@gmail.com>2018-07-29 20:37:12 -0500
committerAiden Woodruff <aiden.woodruff@gmail.com>2018-07-29 20:37:12 -0500
commitbbfad59ce340ccdca9771c1b35a95e19485478e2 (patch)
treeb7b94b00adab9cee7bbaaae6d7dddcda64392df1
parent8635c9b7bb453846c0a712fca974a224bb219cb3 (diff)
downloadlife-bbfad59ce340ccdca9771c1b35a95e19485478e2.tar.gz
life-bbfad59ce340ccdca9771c1b35a95e19485478e2.tar.bz2
life-bbfad59ce340ccdca9771c1b35a95e19485478e2.zip
Added GPLv3 boilerplate to .c and .h fileslife-1.5.1
Added news for 1.5.0 Signed-off-by: Aiden Woodruff <aiden.woodruff@gmail.com>
-rw-r--r--NEWS4
-rwxr-xr-xconfigure20
-rw-r--r--configure.ac2
-rw-r--r--life-1.5.0.tar.gzbin116064 -> 0 bytes
-rw-r--r--life-1.5.1.tar.gzbin0 -> 117118 bytes
-rw-r--r--life.c30
-rw-r--r--life.h20
-rw-r--r--menus.c19
-rw-r--r--menus.h23
-rw-r--r--updatemap.c19
-rw-r--r--updatemap.h19
11 files changed, 129 insertions, 27 deletions
diff --git a/NEWS b/NEWS
index 7fa41ca..33d2a9d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
12018-07-29T19:58-05:00 Aiden Woodruff
2Version life-1.5.0 released
3Fancy menu for inputting rules
4
12018-07-28T15:34-05:00 Aiden Woodruff 52018-07-28T15:34-05:00 Aiden Woodruff
2Version life-1.4.1 released 6Version life-1.4.1 released
3 7
diff --git a/configure b/configure
index 4561da1..20a362a 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for life 1.5.0. 3# Generated by GNU Autoconf 2.69 for life 1.5.1.
4# 4#
5# Report bugs to <aiden.woodruff@gmail.com>. 5# Report bugs to <aiden.woodruff@gmail.com>.
6# 6#
@@ -580,8 +580,8 @@ MAKEFLAGS=
580# Identity of this package. 580# Identity of this package.
581PACKAGE_NAME='life' 581PACKAGE_NAME='life'
582PACKAGE_TARNAME='life' 582PACKAGE_TARNAME='life'
583PACKAGE_VERSION='1.5.0' 583PACKAGE_VERSION='1.5.1'
584PACKAGE_STRING='life 1.5.0' 584PACKAGE_STRING='life 1.5.1'
585PACKAGE_BUGREPORT='aiden.woodruff@gmail.com' 585PACKAGE_BUGREPORT='aiden.woodruff@gmail.com'
586PACKAGE_URL='' 586PACKAGE_URL=''
587 587
@@ -1277,7 +1277,7 @@ if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing. 1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh. 1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF 1279 cat <<_ACEOF
1280\`configure' configures life 1.5.0 to adapt to many kinds of systems. 1280\`configure' configures life 1.5.1 to adapt to many kinds of systems.
1281 1281
1282Usage: $0 [OPTION]... [VAR=VALUE]... 1282Usage: $0 [OPTION]... [VAR=VALUE]...
1283 1283
@@ -1344,7 +1344,7 @@ fi
1344 1344
1345if test -n "$ac_init_help"; then 1345if test -n "$ac_init_help"; then
1346 case $ac_init_help in 1346 case $ac_init_help in
1347 short | recursive ) echo "Configuration of life 1.5.0:";; 1347 short | recursive ) echo "Configuration of life 1.5.1:";;
1348 esac 1348 esac
1349 cat <<\_ACEOF 1349 cat <<\_ACEOF
1350 1350
@@ -1435,7 +1435,7 @@ fi
1435test -n "$ac_init_help" && exit $ac_status 1435test -n "$ac_init_help" && exit $ac_status
1436if $ac_init_version; then 1436if $ac_init_version; then
1437 cat <<\_ACEOF 1437 cat <<\_ACEOF
1438life configure 1.5.0 1438life configure 1.5.1
1439generated by GNU Autoconf 2.69 1439generated by GNU Autoconf 2.69
1440 1440
1441Copyright (C) 2012 Free Software Foundation, Inc. 1441Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1804,7 +1804,7 @@ cat >config.log <<_ACEOF
1804This file contains any messages produced by compilers while 1804This file contains any messages produced by compilers while
1805running configure, to aid debugging if configure makes a mistake. 1805running configure, to aid debugging if configure makes a mistake.
1806 1806
1807It was created by life $as_me 1.5.0, which was 1807It was created by life $as_me 1.5.1, which was
1808generated by GNU Autoconf 2.69. Invocation command line was 1808generated by GNU Autoconf 2.69. Invocation command line was
1809 1809
1810 $ $0 $@ 1810 $ $0 $@
@@ -4306,7 +4306,7 @@ fi
4306 4306
4307# Define the identity of the package. 4307# Define the identity of the package.
4308 PACKAGE='life' 4308 PACKAGE='life'
4309 VERSION='1.5.0' 4309 VERSION='1.5.1'
4310 4310
4311 4311
4312cat >>confdefs.h <<_ACEOF 4312cat >>confdefs.h <<_ACEOF
@@ -5057,7 +5057,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5057# report actual input values of CONFIG_FILES etc. instead of their 5057# report actual input values of CONFIG_FILES etc. instead of their
5058# values after options handling. 5058# values after options handling.
5059ac_log=" 5059ac_log="
5060This file was extended by life $as_me 1.5.0, which was 5060This file was extended by life $as_me 1.5.1, which was
5061generated by GNU Autoconf 2.69. Invocation command line was 5061generated by GNU Autoconf 2.69. Invocation command line was
5062 5062
5063 CONFIG_FILES = $CONFIG_FILES 5063 CONFIG_FILES = $CONFIG_FILES
@@ -5123,7 +5123,7 @@ _ACEOF
5123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5124ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5124ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5125ac_cs_version="\\ 5125ac_cs_version="\\
5126life config.status 1.5.0 5126life config.status 1.5.1
5127configured by $0, generated by GNU Autoconf 2.69, 5127configured by $0, generated by GNU Autoconf 2.69,
5128 with options \\"\$ac_cs_config\\" 5128 with options \\"\$ac_cs_config\\"
5129 5129
diff --git a/configure.ac b/configure.ac
index e8776fa..14d78b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
2# Process this file with autoconf to produce a configure script. 2# Process this file with autoconf to produce a configure script.
3 3
4AC_PREREQ([2.69]) 4AC_PREREQ([2.69])
5AC_INIT([life], [1.5.0], [aiden.woodruff@gmail.com]) 5AC_INIT([life], [1.5.1], [aiden.woodruff@gmail.com])
6AC_CONFIG_SRCDIR([life.c]) 6AC_CONFIG_SRCDIR([life.c])
7AC_CONFIG_HEADERS([config.h]) 7AC_CONFIG_HEADERS([config.h])
8 8
diff --git a/life-1.5.0.tar.gz b/life-1.5.0.tar.gz
deleted file mode 100644
index b975fd9..0000000
--- a/life-1.5.0.tar.gz
+++ /dev/null
Binary files differ
diff --git a/life-1.5.1.tar.gz b/life-1.5.1.tar.gz
new file mode 100644
index 0000000..5a4222e
--- /dev/null
+++ b/life-1.5.1.tar.gz
Binary files differ
diff --git a/life.c b/life.c
index 2bf9733..4c698b2 100644
--- a/life.c
+++ b/life.c
@@ -1,33 +1,33 @@
1/* 1/*
2 2
3 * An arbitrary cellular automata model using ncurses 3 * An arbitrary cellular automata model using ncurses
4 * Copyright (C) 2018 Aiden Woodruff 4 * Copyright (C) 2018 Aiden Woodruff
5 5
6 * This program is free software: you can redistribute it and/or modify 6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or 8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version. 9 * (at your option) any later version.
10 10
11 * This program is distributed in the hope that it will be useful, 11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 14 * GNU General Public License for more details.
15 15
16 * You should have received a copy of the GNU General Public License 16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19 */ 19 */
20#include "life.h" 20#include "life.h"
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, fmt,...) \ 24#define stat_bar_print(win, fmt,...) \
25 wprintw(win, fmt, ##__VA_ARGS__); \ 25 wprintw(win, fmt, ##__VA_ARGS__); \
26 for (int _i = getcurx(win); _i < COLS; _i++) waddch(win, ' '); 26 for (int _i = getcurx(win); _i < COLS; _i++) waddch(win, ' ');
27#endif 27#endif
28 28
29#ifndef foreach 29#ifndef foreach
30#define foreach(func, count, first,...) \ 30#define foreach(func, count, first,...) \
31 {typeof(first) things[] = {__VA_ARGS__}; \ 31 {typeof(first) things[] = {__VA_ARGS__}; \
32 func(first); \ 32 func(first); \
33 for (int _i = 0; _i < count - 1; _i++) func(things[_i]);} 33 for (int _i = 0; _i < count - 1; _i++) func(things[_i]);}
diff --git a/life.h b/life.h
index 8303f68..ecde3aa 100644
--- a/life.h
+++ b/life.h
@@ -1,3 +1,23 @@
1/*
2
3 * An arbitrary cellular automata model using ncurses
4 * Copyright (C) 2018 Aiden Woodruff
5
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
1// C standard libraries 21// C standard libraries
2#include <stdlib.h> 22#include <stdlib.h>
3#include <string.h> 23#include <string.h>
diff --git a/menus.c b/menus.c
index e29e084..1c1414a 100644
--- a/menus.c
+++ b/menus.c
@@ -1,3 +1,22 @@
1/*
2
3 * An arbitrary cellular automata model using ncurses
4 * Copyright (C) 2018 Aiden Woodruff
5
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 */
1#include "menus.h" 20#include "menus.h"
2 21
3#ifndef has 22#ifndef has
diff --git a/menus.h b/menus.h
index e507ad8..ad385e2 100644
--- a/menus.h
+++ b/menus.h
@@ -1,7 +1,28 @@
1#include <ncurses.h> 1/*
2
3 * An arbitrary cellular automata model using ncurses
4 * Copyright (C) 2018 Aiden Woodruff
5
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
2#include <string.h> 21#include <string.h>
3#include <stdlib.h> 22#include <stdlib.h>
4 23
24#include <ncurses.h>
25
5#ifndef LIFE_MENUS_H_ 26#ifndef LIFE_MENUS_H_
6#define LIFE_MENUS_H_ 27#define LIFE_MENUS_H_
7 28
diff --git a/updatemap.c b/updatemap.c
index fdf9769..d965a53 100644
--- a/updatemap.c
+++ b/updatemap.c
@@ -1,3 +1,22 @@
1/*
2
3 * An arbitrary cellular automata model using ncurses
4 * Copyright (C) 2018 Aiden Woodruff
5
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 */
1#include "updatemap.h" 20#include "updatemap.h"
2 21
3#ifndef has 22#ifndef has
diff --git a/updatemap.h b/updatemap.h
index 59e4a6e..32331b0 100644
--- a/updatemap.h
+++ b/updatemap.h
@@ -1,3 +1,22 @@
1/*
2
3 * An arbitrary cellular automata model using ncurses
4 * Copyright (C) 2018 Aiden Woodruff
5
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 */
1#include <stdlib.h> 20#include <stdlib.h>
2#include <string.h> 21#include <string.h>
3 22