diff options
| author | Aiden Woodruff <aiden.woodruff@gmail.com> | 2018-07-29 20:37:12 -0500 |
|---|---|---|
| committer | Aiden Woodruff <aiden.woodruff@gmail.com> | 2018-07-29 20:37:12 -0500 |
| commit | bbfad59ce340ccdca9771c1b35a95e19485478e2 (patch) | |
| tree | b7b94b00adab9cee7bbaaae6d7dddcda64392df1 | |
| parent | 8635c9b7bb453846c0a712fca974a224bb219cb3 (diff) | |
| download | life-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-- | NEWS | 4 | ||||
| -rwxr-xr-x | configure | 20 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | life-1.5.0.tar.gz | bin | 116064 -> 0 bytes | |||
| -rw-r--r-- | life-1.5.1.tar.gz | bin | 0 -> 117118 bytes | |||
| -rw-r--r-- | life.c | 30 | ||||
| -rw-r--r-- | life.h | 20 | ||||
| -rw-r--r-- | menus.c | 19 | ||||
| -rw-r--r-- | menus.h | 23 | ||||
| -rw-r--r-- | updatemap.c | 19 | ||||
| -rw-r--r-- | updatemap.h | 19 |
11 files changed, 129 insertions, 27 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2018-07-29T19:58-05:00 Aiden Woodruff | ||
| 2 | Version life-1.5.0 released | ||
| 3 | Fancy menu for inputting rules | ||
| 4 | |||
| 1 | 2018-07-28T15:34-05:00 Aiden Woodruff | 5 | 2018-07-28T15:34-05:00 Aiden Woodruff |
| 2 | Version life-1.4.1 released | 6 | Version life-1.4.1 released |
| 3 | 7 | ||
| @@ -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. |
| 581 | PACKAGE_NAME='life' | 581 | PACKAGE_NAME='life' |
| 582 | PACKAGE_TARNAME='life' | 582 | PACKAGE_TARNAME='life' |
| 583 | PACKAGE_VERSION='1.5.0' | 583 | PACKAGE_VERSION='1.5.1' |
| 584 | PACKAGE_STRING='life 1.5.0' | 584 | PACKAGE_STRING='life 1.5.1' |
| 585 | PACKAGE_BUGREPORT='aiden.woodruff@gmail.com' | 585 | PACKAGE_BUGREPORT='aiden.woodruff@gmail.com' |
| 586 | PACKAGE_URL='' | 586 | PACKAGE_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 | ||
| 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1283 | 1283 | ||
| @@ -1344,7 +1344,7 @@ fi | |||
| 1344 | 1344 | ||
| 1345 | if test -n "$ac_init_help"; then | 1345 | if 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 | |||
| 1435 | test -n "$ac_init_help" && exit $ac_status | 1435 | test -n "$ac_init_help" && exit $ac_status |
| 1436 | if $ac_init_version; then | 1436 | if $ac_init_version; then |
| 1437 | cat <<\_ACEOF | 1437 | cat <<\_ACEOF |
| 1438 | life configure 1.5.0 | 1438 | life configure 1.5.1 |
| 1439 | generated by GNU Autoconf 2.69 | 1439 | generated by GNU Autoconf 2.69 |
| 1440 | 1440 | ||
| 1441 | Copyright (C) 2012 Free Software Foundation, Inc. | 1441 | Copyright (C) 2012 Free Software Foundation, Inc. |
| @@ -1804,7 +1804,7 @@ cat >config.log <<_ACEOF | |||
| 1804 | This file contains any messages produced by compilers while | 1804 | This file contains any messages produced by compilers while |
| 1805 | running configure, to aid debugging if configure makes a mistake. | 1805 | running configure, to aid debugging if configure makes a mistake. |
| 1806 | 1806 | ||
| 1807 | It was created by life $as_me 1.5.0, which was | 1807 | It was created by life $as_me 1.5.1, which was |
| 1808 | generated by GNU Autoconf 2.69. Invocation command line was | 1808 | generated 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 | ||
| 4312 | cat >>confdefs.h <<_ACEOF | 4312 | cat >>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. |
| 5059 | ac_log=" | 5059 | ac_log=" |
| 5060 | This file was extended by life $as_me 1.5.0, which was | 5060 | This file was extended by life $as_me 1.5.1, which was |
| 5061 | generated by GNU Autoconf 2.69. Invocation command line was | 5061 | generated 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 | |||
| 5123 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 5123 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5124 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 5124 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 5125 | ac_cs_version="\\ | 5125 | ac_cs_version="\\ |
| 5126 | life config.status 1.5.0 | 5126 | life config.status 1.5.1 |
| 5127 | configured by $0, generated by GNU Autoconf 2.69, | 5127 | configured 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 | ||
| 4 | AC_PREREQ([2.69]) | 4 | AC_PREREQ([2.69]) |
| 5 | AC_INIT([life], [1.5.0], [aiden.woodruff@gmail.com]) | 5 | AC_INIT([life], [1.5.1], [aiden.woodruff@gmail.com]) |
| 6 | AC_CONFIG_SRCDIR([life.c]) | 6 | AC_CONFIG_SRCDIR([life.c]) |
| 7 | AC_CONFIG_HEADERS([config.h]) | 7 | AC_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 | |||
| @@ -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]);} |
| @@ -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> |
| @@ -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 |
| @@ -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 | ||
