T.83.4: Handle auto_non_billable in entry_new().

This commit is contained in:
Felicity Tarnell 2014-03-05 16:32:04 +00:00
parent 4cdd1caf46
commit 4ba7155d78
3 changed files with 13 additions and 18 deletions

18
configure vendored
View file

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for RT/TTS T.83.3. # Generated by GNU Autoconf 2.69 for RT/TTS T.83.4.
# #
# Report bugs to <felicity@loreley.flyingparchment.org.uk>. # Report bugs to <felicity@loreley.flyingparchment.org.uk>.
# #
@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='RT/TTS' PACKAGE_NAME='RT/TTS'
PACKAGE_TARNAME='rt-tts' PACKAGE_TARNAME='rt-tts'
PACKAGE_VERSION='T.83.3' PACKAGE_VERSION='T.83.4'
PACKAGE_STRING='RT/TTS T.83.3' PACKAGE_STRING='RT/TTS T.83.4'
PACKAGE_BUGREPORT='felicity@loreley.flyingparchment.org.uk' PACKAGE_BUGREPORT='felicity@loreley.flyingparchment.org.uk'
PACKAGE_URL='' PACKAGE_URL=''
@ -1232,7 +1232,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures RT/TTS T.83.3 to adapt to many kinds of systems. \`configure' configures RT/TTS T.83.4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1293,7 +1293,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of RT/TTS T.83.3:";; short | recursive ) echo "Configuration of RT/TTS T.83.4:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1380,7 +1380,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
RT/TTS configure T.83.3 RT/TTS configure T.83.4
generated by GNU Autoconf 2.69 generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc. Copyright (C) 2012 Free Software Foundation, Inc.
@ -1749,7 +1749,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by RT/TTS $as_me T.83.3, which was It was created by RT/TTS $as_me T.83.4, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@ $ $0 $@
@ -4766,7 +4766,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by RT/TTS $as_me T.83.3, which was This file was extended by RT/TTS $as_me T.83.4, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -4828,7 +4828,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\ ac_cs_version="\\
RT/TTS config.status T.83.3 RT/TTS config.status T.83.4
configured by $0, generated by GNU Autoconf 2.69, configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"

View file

@ -1,5 +1,5 @@
AC_PREREQ([2.69]) AC_PREREQ([2.69])
AC_INIT([RT/TTS], [T.83.3], [felicity@loreley.flyingparchment.org.uk]) AC_INIT([RT/TTS], [T.83.4], [felicity@loreley.flyingparchment.org.uk])
AC_CONFIG_SRCDIR([tts.c]) AC_CONFIG_SRCDIR([tts.c])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])

11
tts.c
View file

@ -784,10 +784,6 @@ entry_t *en;
return; return;
} }
en = entry_new(name); en = entry_new(name);
if (auto_nonbillable && STRSTR(name, auto_nonbillable))
en->en_flags.efl_nonbillable = 1;
entry_start(en); entry_start(en);
curent = en; curent = en;
save(); save();
@ -806,10 +802,6 @@ entry_t *en;
} }
en = entry_new(name); en = entry_new(name);
if (auto_nonbillable && STRSTR(name, auto_nonbillable))
en->en_flags.efl_nonbillable = 1;
curent = en; curent = en;
kedtime(); kedtime();
save(); save();
@ -2000,6 +1992,9 @@ entry_t *en;
if ((en = calloc(1, sizeof(*en))) == NULL) if ((en = calloc(1, sizeof(*en))) == NULL)
return NULL; return NULL;
if (auto_nonbillable && STRSTR(desc, auto_nonbillable))
en->en_flags.efl_nonbillable = 1;
TAILQ_INSERT_HEAD(&entries, en, en_entries); TAILQ_INSERT_HEAD(&entries, en, en_entries);
en->en_desc = STRDUP(desc); en->en_desc = STRDUP(desc);