cattle-1.2.2/ 0000755 0001750 0001750 00000000000 13035533415 007773 5 0000000 0000000 cattle-1.2.2/depcomp 0000755 0001750 0001750 00000056016 13006223057 011274 0000000 0000000 #! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2013-05-30.07; # UTC
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva .
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.
Environment variables:
depmode Dependency tracking mode.
source Source file read by 'PROGRAMS ARGS'.
object Object file output by 'PROGRAMS ARGS'.
DEPDIR directory where to store dependencies.
depfile Dependency file to output.
tmpdepfile Temporary file to use when outputting dependencies.
libtool Whether libtool is used (yes/no).
Report bugs to .
EOF
exit $?
;;
-v | --v*)
echo "depcomp $scriptversion"
exit $?
;;
esac
# Get the directory component of the given path, and save it in the
# global variables '$dir'. Note that this directory component will
# be either empty or ending with a '/' character. This is deliberate.
set_dir_from ()
{
case $1 in
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
*) dir=;;
esac
}
# Get the suffix-stripped basename of the given path, and save it the
# global variable '$base'.
set_base_from ()
{
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
}
# If no dependency file was actually created by the compiler invocation,
# we still have to create a dummy depfile, to avoid errors with the
# Makefile "include basename.Plo" scheme.
make_dummy_depfile ()
{
echo "#dummy" > "$depfile"
}
# Factor out some common post-processing of the generated depfile.
# Requires the auxiliary global variable '$tmpdepfile' to be set.
aix_post_process_depfile ()
{
# If the compiler actually managed to produce a dependency file,
# post-process it.
if test -f "$tmpdepfile"; then
# Each line is of the form 'foo.o: dependency.h'.
# Do two passes, one to just change these to
# $object: dependency.h
# and one to simply output
# dependency.h:
# which is needed to avoid the deleted-header problem.
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
} > "$depfile"
rm -f "$tmpdepfile"
else
make_dummy_depfile
fi
}
# A tabulation character.
tab=' '
# A newline character.
nl='
'
# Character ranges might be problematic outside the C locale.
# These definitions help.
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
lower=abcdefghijklmnopqrstuvwxyz
digits=0123456789
alpha=${upper}${lower}
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
fi
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
depfile=${depfile-`echo "$object" |
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Avoid interferences from the environment.
gccflag= dashmflag=
# Some modes work just like other modes, but use different flags. We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write. Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
# HP compiler uses -M and no extra arg.
gccflag=-M
depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
# This is just like dashmstdout with a different argument.
dashmflag=-xM
depmode=dashmstdout
fi
cygpath_u="cygpath -u -f -"
if test "$depmode" = msvcmsys; then
# This is just like msvisualcpp but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvisualcpp
fi
if test "$depmode" = msvc7msys; then
# This is just like msvc7 but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvc7
fi
if test "$depmode" = xlc; then
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
gccflag=-qmakedep=gcc,-MF
depmode=gcc
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff. Hmm.
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
## the command line argument order; so add the flags where they
## appear in depend2.am. Note that the slowdown incurred here
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
for arg
do
case $arg in
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
*) set fnord "$@" "$arg" ;;
esac
shift # fnord
shift # $arg
done
"$@"
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
## (see the conditional assignment to $gccflag above).
## There are various ways to get dependency output from gcc. Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
## up in a subdir. Having to rename by hand is ugly.
## (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
## -MM, not -M (despite what the docs say). Also, it might not be
## supported by the other compilers which use the 'gcc' depmode.
## - Using -M directly means running the compiler twice (even worse
## than renaming).
if test -z "$gccflag"; then
gccflag=-MD,
fi
"$@" -Wp,"$gccflag$tmpdepfile"
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# The second -e expression handles DOS-style file names with drive
# letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the "deleted header file" problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
## Some versions of gcc put a space before the ':'. On the theory
## that the space means something, we add a space to the output as
## well. hp depmode also adds that space, but also prefixes the VPATH
## to the object. Take care to not repeat it in the output.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
sgi)
if test "$libtool" = yes; then
"$@" "-Wp,-MDupdate,$tmpdepfile"
else
"$@" -MDupdate "$tmpdepfile"
fi
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
echo "$object : \\" > "$depfile"
# Clip off the initial element (the dependent). Don't try to be
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
# the IRIX cc adds comments like '#:fec' to the end of the
# dependency line.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
| tr "$nl" ' ' >> "$depfile"
echo >> "$depfile"
# The second pass generates a dummy entry for each header file.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> "$depfile"
else
make_dummy_depfile
fi
rm -f "$tmpdepfile"
;;
xlc)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the
# current directory. Also, the AIX compiler puts '$object:' at the
# start of each line; $object doesn't have directory information.
# Version 6 uses the directory in both cases.
set_dir_from "$object"
set_base_from "$object"
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.u
tmpdepfile2=$base.u
tmpdepfile3=$dir.libs/$base.u
"$@" -Wc,-M
else
tmpdepfile1=$dir$base.u
tmpdepfile2=$dir$base.u
tmpdepfile3=$dir$base.u
"$@" -M
fi
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
aix_post_process_depfile
;;
tcc)
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
# FIXME: That version still under development at the moment of writing.
# Make that this statement remains true also for stable, released
# versions.
# It will wrap lines (doesn't matter whether long or short) with a
# trailing '\', as in:
#
# foo.o : \
# foo.c \
# foo.h \
#
# It will put a trailing '\' even on the last line, and will use leading
# spaces rather than leading tabs (at least since its commit 0394caf7
# "Emit spaces for -MD").
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
# We have to change lines of the first kind to '$object: \'.
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
# And for each line of the second kind, we have to emit a 'dep.h:'
# dummy dependency, to avoid the deleted-header problem.
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
rm -f "$tmpdepfile"
;;
## The order of this option in the case statement is important, since the
## shell code in configure will try each of these formats in the order
## listed in this file. A plain '-MD' option would be understood by many
## compilers, so we must ensure this comes after the gcc and icc options.
pgcc)
# Portland's C compiler understands '-MD'.
# Will always output deps to 'file.d' where file is the root name of the
# source file under compilation, even if file resides in a subdirectory.
# The object file name does not affect the name of the '.d' file.
# pgcc 10.2 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using '\' :
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
set_dir_from "$object"
# Use the source, not the object, to determine the base name, since
# that's sadly what pgcc will do too.
set_base_from "$source"
tmpdepfile=$base.d
# For projects that build the same source file twice into different object
# files, the pgcc approach of using the *source* file root name can cause
# problems in parallel builds. Use a locking strategy to avoid stomping on
# the same $tmpdepfile.
lockdir=$base.d-lock
trap "
echo '$0: caught signal, cleaning up...' >&2
rmdir '$lockdir'
exit 1
" 1 2 13 15
numtries=100
i=$numtries
while test $i -gt 0; do
# mkdir is a portable test-and-set.
if mkdir "$lockdir" 2>/dev/null; then
# This process acquired the lock.
"$@" -MD
stat=$?
# Release the lock.
rmdir "$lockdir"
break
else
# If the lock is being held by a different process, wait
# until the winning process is done or we timeout.
while test -d "$lockdir" && test $i -gt 0; do
sleep 1
i=`expr $i - 1`
done
fi
i=`expr $i - 1`
done
trap - 1 2 13 15
if test $i -le 0; then
echo "$0: failed to acquire lock after $numtries attempts" >&2
echo "$0: check lockdir '$lockdir'" >&2
exit 1
fi
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each line is of the form `foo.o: dependent.h',
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp2)
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
# compilers, which have integrated preprocessors. The correct option
# to use with these is +Maked; it writes dependencies to a file named
# 'foo.d', which lands next to the object file, wherever that
# happens to be.
# Much of this is similar to the tru64 case; see comments there.
set_dir_from "$object"
set_base_from "$object"
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir.libs/$base.d
"$@" -Wc,+Maked
else
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir$base.d
"$@" +Maked
fi
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile1" "$tmpdepfile2"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
# Add 'dependent.h:' lines.
sed -ne '2,${
s/^ *//
s/ \\*$//
s/$/:/
p
}' "$tmpdepfile" >> "$depfile"
else
make_dummy_depfile
fi
rm -f "$tmpdepfile" "$tmpdepfile2"
;;
tru64)
# The Tru64 compiler uses -MD to generate dependencies as a side
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in 'foo.d' instead, so we check for that too.
# Subdirectories are respected.
set_dir_from "$object"
set_base_from "$object"
if test "$libtool" = yes; then
# Libtool generates 2 separate objects for the 2 libraries. These
# two compilations output dependencies in $dir.libs/$base.o.d and
# in $dir$base.o.d. We have to check for both files, because
# one of the two compilations can be disabled. We should prefer
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
# automatically cleaned when .libs/ is deleted, while ignoring
# the former would cause a distcleancheck panic.
tmpdepfile1=$dir$base.o.d # libtool 1.5
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
"$@" -Wc,-MD
else
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir$base.d
tmpdepfile3=$dir$base.d
"$@" -MD
fi
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
# Same post-processing that is required for AIX mode.
aix_post_process_depfile
;;
msvc7)
if test "$libtool" = yes; then
showIncludes=-Wc,-showIncludes
else
showIncludes=-showIncludes
fi
"$@" $showIncludes > "$tmpdepfile"
stat=$?
grep -v '^Note: including file: ' "$tmpdepfile"
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# The first sed program below extracts the file names and escapes
# backslashes for cygpath. The second sed program outputs the file
# name when reading, but also accumulates all include files in the
# hold buffer in order to output them again at the end. This only
# works with sed implementations that can handle large buffers.
sed < "$tmpdepfile" -n '
/^Note: including file: *\(.*\)/ {
s//\1/
s/\\/\\\\/g
p
}' | $cygpath_u | sort -u | sed -n '
s/ /\\ /g
s/\(.*\)/'"$tab"'\1 \\/p
s/.\(.*\) \\/\1:/
H
$ {
s/.*/'"$tab"'/
G
p
}' >> "$depfile"
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
rm -f "$tmpdepfile"
;;
msvc7msys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout, regardless of -o.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove '-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
test -z "$dashmflag" && dashmflag=-M
# Require at least two characters before searching for ':'
# in the target name. This is to cope with DOS-style filenames:
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
"$@" $dashmflag |
sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this sed invocation
# correctly. Breaking it into two sed invocations is a workaround.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
dashXmstdout)
# This case only exists to satisfy depend.m4. It is never actually
# run, as this mode is specially recognized in the preamble.
exit 1
;;
makedepend)
"$@" || exit $?
# Remove any Libtool call
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# X makedepend
shift
cleared=no eat=no
for arg
do
case $cleared in
no)
set ""; shift
cleared=yes ;;
esac
if test $eat = yes; then
eat=no
continue
fi
case "$arg" in
-D*|-I*)
set fnord "$@" "$arg"; shift ;;
# Strip any option that makedepend may not understand. Remove
# the object too, otherwise makedepend will parse it as a source file.
-arch)
eat=yes ;;
-*|$object)
;;
*)
set fnord "$@" "$arg"; shift ;;
esac
done
obj_suffix=`echo "$object" | sed 's/^.*\././'`
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$depfile"
# makedepend may prepend the VPATH from the source file name to the object.
# No need to regex-escape $object, excess matching of '.' is harmless.
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process the last invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed '1,2d' "$tmpdepfile" \
| tr ' ' "$nl" \
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile" "$tmpdepfile".bak
;;
cpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove '-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
"$@" -E \
| sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
| sed '$ s: \\$::' > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
cat < "$tmpdepfile" >> "$depfile"
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvisualcpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
IFS=" "
for arg
do
case "$arg" in
-o)
shift
;;
$object)
shift
;;
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
set fnord "$@"
shift
shift
;;
*)
set fnord "$@" "$arg"
shift
shift
;;
esac
done
"$@" -E 2>/dev/null |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
echo "$tab" >> "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvcmsys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
none)
exec "$@"
;;
*)
echo "Unknown depmode $depmode" 1>&2
exit 1
;;
esac
exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
cattle-1.2.2/ChangeLog 0000644 0001750 0001750 00000313274 13035533411 011473 0000000 0000000 commit a61b186a3809e32d9d460b43c5de7f8090fba7e0
Author: Andrea Bolognani
Date: Wed Jan 11 23:50:42 2017 +0100
=== Cattle 1.2.2 ===
commit 5e782fdce587f83d1b8e9daeea077f5f19713efb
Author: Andrea Bolognani
Date: Tue Jan 10 23:58:37 2017 +0100
Bump version number
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 1fbb9b751df987f0d81e1b50b92675a3c86bbbd9
Author: Andrea Bolognani
Date: Tue Jan 10 23:58:00 2017 +0100
Update copyright years
cattle/cattle-buffer.c | 2 +-
cattle/cattle-buffer.h | 2 +-
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-constants.c | 2 +-
cattle/cattle-constants.h | 2 +-
cattle/cattle-error.c | 2 +-
cattle/cattle-error.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle-version.c | 2 +-
cattle/cattle-version.h.in | 2 +-
cattle/cattle.h | 2 +-
examples/common.c | 2 +-
examples/common.h | 2 +-
examples/indent.c | 2 +-
examples/minimize.c | 2 +-
examples/run.c | 2 +-
tests/buffer.c | 2 +-
tests/interpreter.c | 2 +-
tests/program.c | 2 +-
tests/references.c | 2 +-
tests/tape.c | 2 +-
29 files changed, 29 insertions(+), 29 deletions(-)
commit ed970a39b965b6885db5b9cb54d5751cf491f44c
Author: Andrea Bolognani
Date: Wed Jan 11 23:46:25 2017 +0100
Add release dates to NEWS file
NEWS.markdown | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
commit 3a7802e7a11f2a04f4d55e0578082f4a24d8e6b0
Author: Andrea Bolognani
Date: Tue Jan 10 22:40:33 2017 +0100
Update NEWS.markdown
NEWS.markdown | 8 ++++++++
1 file changed, 8 insertions(+)
commit dd5c81d80f2e07f597706c456d07e9abd836dc42
Author: Andrea Bolognani
Date: Sat Dec 31 13:12:05 2016 +0100
Enable compilation warnings
Always compile with -Wall -Wextra to prevent code quality
issues from slipping through the cracks during development.
cattle/Makefile.am | 4 ++++
configure.ac | 8 ++++++++
examples/Makefile.am | 4 ++++
tests/Makefile.am | 4 ++++
4 files changed, 20 insertions(+)
commit 46d075a3bf603b3a1f9b524b8f32d7bbd9861af6
Author: Andrea Bolognani
Date: Sat Dec 31 12:00:27 2016 +0100
Don't use G_DISABLE_SINGLE_INCLUDES
Support for this compilation flag has been removed in modern
GLib versions.
cattle/Makefile.am | 1 -
1 file changed, 1 deletion(-)
commit 30fcf5cbddd889cdb43807e088f1ee9c5d10ad88
Author: Andrea Bolognani
Date: Fri Dec 30 19:45:59 2016 +0100
Fix type mismatch
tests/program.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
commit f9873cb59eebec2136614ba5a6c36d9819e9e35b
Author: Andrea Bolognani
Date: Fri Dec 30 19:33:53 2016 +0100
Fix indentation issues
cattle/cattle-interpreter.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
commit e87ec06094ddc30fde263349883bcaf72cf88422
Author: Andrea Bolognani
Date: Fri Dec 30 19:26:37 2016 +0100
Use correct type for input_offset
input_offset needs to be able to represent an arbitrary
offset inside a CattleBuffer, so it should be gulong rather
than gint.
cattle/cattle-interpreter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit b5a16e2c6451cd21aec00a329c7d28810648c2ce
Author: Andrea Bolognani
Date: Fri Dec 30 19:20:30 2016 +0100
Silence compiler warnings
Remove unused variables and functions, mark unused
arguments with G_GNUC_UNUSED and initialize variables
that gcc thinks might end up being used uninitialized.
cattle/cattle-interpreter.c | 10 ++---
cattle/cattle-tape.c | 4 +-
tests/interpreter.c | 93 ++++++++++++++++++---------------------------
tests/tape.c | 2 -
4 files changed, 44 insertions(+), 65 deletions(-)
commit 967580541e9af6411ab9f0fc9b6274b1142b068a
Author: Andrea Bolognani
Date: Thu Dec 1 17:33:20 2016 +0100
Distribute INSTALL.markdown
Makefile.am | 4 ++++
1 file changed, 4 insertions(+)
commit 8af9f0d6c60ff4c96e8ee5766aecae8e49caf522
Author: Andrea Bolognani
Date: Tue Oct 4 00:22:57 2016 +0200
Add Resources section to README
It's been pointed out that GitHub considers every tag in a
repository to be a "release", and automatically lists it in
a specific section on the project's page.
Additionaly, for each such "release", it provide links that
can be used to download the contents of the repository at the
time the tag was created.
However, those contents are neither enough to build Cattle
directly (generated files have, rightfully, never been checked
into Git) nor to initialize the build system properly, which
makes the archives created this way all but useless.
Include a new section in the README that explains where to get
proper release archives, plus other information about
obtaining Cattle.
At the same time get rid of the Contacts section, which was
never very useful.
README.markdown | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
commit 338a34f7abc35334afd378f305c6e1fb0d0abd7d
Author: Andrea Bolognani
Date: Sun Sep 11 21:55:46 2016 +0200
=== Cattle 1.2.1 ===
commit 064636ba743f38fa6fdcabea002f53ae57c5c0fc
Author: Andrea Bolognani
Date: Sun Sep 11 21:49:20 2016 +0200
Bump version number
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 0bf7fbbf36359132793340e287e3fe6dec792364
Author: Andrea Bolognani
Date: Sun Sep 11 21:48:39 2016 +0200
Update NEWS.markdown
NEWS.markdown | 10 ++++++++++
1 file changed, 10 insertions(+)
commit 82e15ddf9fbbf0949bc70c1c3c4f2fdd009d5c8c
Author: Andrea Bolognani
Date: Sun Sep 11 22:45:38 2016 +0200
Install docs in $(datarootdir)/doc/cattle-1.0
This ensures that future major versions will be installable
side by side without conflicts.
Makefile.am | 1 +
1 file changed, 1 insertion(+)
commit 0d4f3e8791a8bf413a6ac7aae4439a2cc268cdf8
Author: Andrea Bolognani
Date: Fri Sep 9 00:13:46 2016 +0200
Remove /references/program-owns-instructions test
Calling G_IS_OBJECT() on an instance that has already been
finalized is clearly wrong; surprisingly, it doesn't seem to
cause failures anywhere except for Fedora rawhide.
Since that final G_IS_OBJECT() call was the whole point of
the test, remove it altogether.
tests/references.c | 37 -------------------------------------
1 file changed, 37 deletions(-)
commit 9b0a666e31eea5eb1c214a932a5aed88d6b9b31e
Author: Andrea Bolognani
Date: Thu Sep 8 23:11:05 2016 +0200
Use @basename@ in cattle-enums.h
Replace uses of @filename@ to avoid leaking build directory
information and to look a bit nicer.
cattle/cattle-enums.h.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 72143958dc8b1513d9711338a3502107de5454ca
Author: Andrea Bolognani
Date: Thu Sep 8 23:10:13 2016 +0200
Add direct include guard to cattle-enums.h
As with other headers, we want to avoid it being included
directly. Applications should include only.
cattle/cattle-enums.h.tmpl | 4 ++++
1 file changed, 4 insertions(+)
commit b12f17c0f37e088c53a9ffe11ecfb46ae72df9d0
Author: Andrea Bolognani
Date: Thu Sep 8 23:06:36 2016 +0200
Include cattle-enums.h from cattle.h
cattle/cattle.h | 1 +
1 file changed, 1 insertion(+)
commit 2ab42f652703717468f5903b338ad3c05f8b0c36
Author: Andrea Bolognani
Date: Wed Sep 7 00:34:36 2016 +0200
Update copyright years
cattle/cattle-buffer.c | 2 +-
cattle/cattle-buffer.h | 2 +-
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-constants.c | 2 +-
cattle/cattle-constants.h | 2 +-
cattle/cattle-error.c | 2 +-
cattle/cattle-error.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle-version.c | 2 +-
cattle/cattle-version.h.in | 2 +-
cattle/cattle.h | 2 +-
examples/common.c | 2 +-
examples/common.h | 2 +-
examples/indent.c | 2 +-
examples/minimize.c | 2 +-
examples/run.c | 2 +-
tests/buffer.c | 2 +-
tests/interpreter.c | 2 +-
tests/program.c | 2 +-
tests/references.c | 2 +-
tests/tape.c | 2 +-
29 files changed, 29 insertions(+), 29 deletions(-)
commit 0a11d31c1e93ea731324db4c8b98adbaea791dc9
Author: Andrea Bolognani
Date: Wed Sep 7 00:36:59 2016 +0200
Get rid of remaining double dashes
examples/common.c | 2 +-
examples/common.h | 2 +-
examples/indent.c | 2 +-
examples/minimize.c | 2 +-
examples/run.c | 2 +-
tests/buffer.c | 2 +-
tests/interpreter.c | 2 +-
tests/program.c | 2 +-
tests/references.c | 2 +-
tests/tape.c | 2 +-
10 files changed, 10 insertions(+), 10 deletions(-)
commit 2a0aa221c7e2370a26ea001bb562876b45be47ba
Author: Andrea Bolognani
Date: Wed Sep 7 00:25:43 2016 +0200
Remove the useless 'test' rule
We can override check-local directly instead.
tests/Makefile.am | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
commit 729d5daee56806c85e8859f02d6c2243c54f34b6
Author: Andrea Bolognani
Date: Wed Sep 7 00:22:31 2016 +0200
Shuffle rules around
Try to follow consistent patterns where possible
Makefile.am | 10 +++----
cattle/Makefile.am | 84 ++++++++++++++++++++++++++--------------------------
examples/Makefile.am | 4 +--
tests/Makefile.am | 2 +-
4 files changed, 50 insertions(+), 50 deletions(-)
commit 0c3f6df62e9e6763026bef7cda015481d08aa104
Author: Andrea Bolognani
Date: Wed Sep 7 00:03:25 2016 +0200
Remove EXTRA_DIST use
We don't have $(pkgconfig_DATA) anymore, so clearly we
don't want to distribute it; as for $(doc_DATA), we can get
it distributed automatically by simply changing it to
$(dist_doc_DATA), which allows us to get rid of EXTRA_DIST.
Makefile.am | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
commit 28e5856e25f96841d985d51f37b69918b99924dc
Author: Andrea Bolognani
Date: Tue Sep 6 23:56:20 2016 +0200
Improve AM_GEN rules
Get rid of useless extra shell invocations, make sure the rules
fail on error, and remove some quoting as well.
The quoting would be nice to keep around, but since the
gobject-introspection rules already break horribly if eg. any
whitespace is present in $(srcdir), might as well go with it.
Makefile.am | 21 ++++++++++-----------
cattle/Makefile.am | 28 +++++++++++++++-------------
2 files changed, 25 insertions(+), 24 deletions(-)
commit 5cd14df6a88fe8328dec754ad6d6907a52604586
Author: Andrea Bolognani
Date: Mon Sep 5 23:56:56 2016 +0200
Have gtk-doc look in $(top_builddir)
Some files are generated at build time, and gtk-doc should
not only take them into account but run again when they change.
This fixes building the docs out-of-tree.
docs/reference/Makefile.am | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
commit 4745231f2e5d87980c7b53d345ba5a5ad712d199
Author: Andrea Bolognani
Date: Tue Sep 6 23:24:42 2016 +0200
Don't distribute cattle-version.h
Shuffle things around a bit so that generated headers and
sources are clearly marked as such and handled differently
than regular headers and sources.
cattle/Makefile.am | 35 ++++++++++++++++++++++++-----------
1 file changed, 24 insertions(+), 11 deletions(-)
commit 2d3faa4457254a77a6f9d558ae4682967ef6a707
Author: Andrea Bolognani
Date: Tue Sep 6 00:45:55 2016 +0200
Don't distribute cattle-1.0.pc
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 753ab42e0ff385f716e7082021e5b5350e197abf
Author: Andrea Bolognani
Date: Tue Sep 6 00:29:10 2016 +0200
Don't distribute cattle-enums.{h,c}
We want to rebuild these every single time, so that builds made
from a git clone and those made from a release tarball behave
the same.
cattle/Makefile.am | 3 +++
1 file changed, 3 insertions(+)
commit 6fda62fdddf346f4476c890ddb74f5a4e01a12bd
Author: Andrea Bolognani
Date: Mon Sep 5 23:47:49 2016 +0200
Merge INCLUDES into AM_CPPFLAGS
INCLUDES is the deprecated version of AM_CPPFLAGS, get rid
of it.
cattle/Makefile.am | 5 +----
examples/Makefile.am | 5 +----
tests/Makefile.am | 5 +----
3 files changed, 3 insertions(+), 12 deletions(-)
commit 49e4817dfcb02e79effe450d93f6b7205bdd3f7c
Author: Andrea Bolognani
Date: Mon Sep 5 00:24:31 2016 +0200
Rename *.md -> *.markdown
AUTHORS.md => AUTHORS.markdown | 0
INSTALL.md => INSTALL.markdown | 0
Makefile.am | 8 ++++----
NEWS.md => NEWS.markdown | 0
README.md => README.markdown | 0
TODO.md => TODO.markdown | 0
6 files changed, 4 insertions(+), 4 deletions(-)
commit ea46a72a6470b7db97100dbc37e3582152faed50
Author: Andrea Bolognani
Date: Mon Sep 5 00:18:31 2016 +0200
Reorder listings
Makefile.am | 6 +++---
cattle/Makefile.am | 30 +++++++++++++++---------------
examples/Makefile.am | 30 +++++++++++++++++++-----------
tests/Makefile.am | 12 ++++++------
4 files changed, 43 insertions(+), 35 deletions(-)
commit 8768fca90b4234fb8bad1a1ca8f200f0f1235590
Author: Andrea Bolognani
Date: Mon Sep 5 00:22:14 2016 +0200
Improve gtester invocation
tests/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit fec0f0194f6d19c5225c8fc492ed77338b6b2956
Author: Andrea Bolognani
Date: Sun Sep 4 23:46:46 2016 +0200
Improve ChangeLog generation
Don't do anything unless we're building from a git checkout,
and consider any failure in generating a ChangeLog severe enough
that the entire build has to be stopped.
Makefile.am | 32 ++++++++++++--------------------
1 file changed, 12 insertions(+), 20 deletions(-)
commit 569174aff8d5461e58f8886628bd2741da2e2e96
Author: Andrea Bolognani
Date: Sun Sep 4 23:17:01 2016 +0200
Use --color=never when generating ChangeLog
We want to make sure the ChangeLog contains plain text only;
passing --color=never to git log ensures no funny escape
sequences will end up in the resulting file.
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 9c6774ade6eebd541d39c56df7cca575455ffb7d
Author: Andrea Bolognani
Date: Sun Sep 4 23:05:35 2016 +0200
Update ignore patterns
.gitignore | 1 +
cattle/.gitignore | 2 ++
docs/reference/.gitignore | 2 ++
3 files changed, 5 insertions(+)
commit 980a9130df1b9cdafbc0c87079e1a1f52f203b1e
Author: Andrea Bolognani
Date: Sun Sep 4 23:05:49 2016 +0200
Disable maintainer mode
configure.ac | 1 -
1 file changed, 1 deletion(-)
commit 7c40ca6c00fc87cb59e66e08ac59c81e3d716f12
Author: Andrea Bolognani
Date: Sun Sep 4 22:55:10 2016 +0200
Use correct types
cattle/cattle-interpreter.c | 4 ++--
tests/buffer.c | 2 +-
tests/interpreter.c | 20 ++++++++++----------
tests/program.c | 10 +++++-----
tests/references.c | 4 ++--
5 files changed, 20 insertions(+), 20 deletions(-)
commit 3e6f44b2baaa663924ab48df23ea538d4386cec4
Author: Baptiste Fontaine
Date: Fri Feb 27 00:04:48 2015 +0100
Fix compilation with Clang
cattle/cattle-buffer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 2c5d05a30e00140e3cddc4267f5d194899ebd2da
Author: Andrea Bolognani
Date: Tue Oct 21 21:58:17 2014 +0200
=== Cattle 1.2.0 ===
commit 175f6bfe294c6ec2e7fb77328b1d2343b1fc5406
Author: Andrea Bolognani
Date: Tue Oct 21 21:56:23 2014 +0200
Use --enable-introspection=yes on distcheck.
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 321aed5a73631f24b46cb9b35faac59586732ad4
Author: Andrea Bolognani
Date: Tue Oct 21 00:55:24 2014 +0200
More introspection improvements.
cattle/cattle-buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit eb2737c5351b34551f25fd4e61e004b56a2b7709
Author: Andrea Bolognani
Date: Tue Oct 21 00:31:52 2014 +0200
Add comment to CATTLE_EOF definition.
cattle/cattle-constants.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit e1f339d7183ee2ba2cdabf2552bef48c88de91b4
Author: Andrea Bolognani
Date: Tue Oct 21 00:26:11 2014 +0200
Bump minimum version for requirements.
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 6b77a20ac488a96c489d3f3d1e498526726e3c17
Author: Andrea Bolognani
Date: Tue Oct 21 00:21:33 2014 +0200
Improve introspection annotations.
cattle/cattle-buffer.c | 4 ++--
cattle/cattle-instruction.c | 8 ++++----
cattle/cattle-interpreter.c | 8 ++++----
cattle/cattle-program.c | 6 +++---
4 files changed, 13 insertions(+), 13 deletions(-)
commit 19cb7c03ebd9393207a36789c441ff0f07ff3111
Author: Andrea Bolognani
Date: Tue Oct 21 00:01:02 2014 +0200
Remove CATTLE_ERROR_BAD_UTF8.
cattle/cattle-error.c | 11 ++++-------
cattle/cattle-error.h | 1 -
tests/interpreter.c | 24 ++++++++++++------------
3 files changed, 16 insertions(+), 20 deletions(-)
commit ea2fa18aafa837232e8787db5f51c0f3ecc5ac8a
Author: Andrea Bolognani
Date: Mon Oct 20 23:55:07 2014 +0200
Rename CattleOnEOFAction to CattleEndOfInputAction.
cattle/cattle-configuration.c | 66 +++++++++++++++++-----------------
cattle/cattle-configuration.h | 24 ++++++-------
cattle/cattle-interpreter.c | 15 ++++----
docs/reference/cattle-1.0-sections.txt | 10 +++---
4 files changed, 57 insertions(+), 58 deletions(-)
commit 1366bbdf1ac7b7485e1e47780f1242816e033027
Author: Andrea Bolognani
Date: Mon Oct 20 23:33:55 2014 +0200
Add CattleBuffer.set_contents_full() for bindings.
cattle/cattle-buffer.c | 46 +++++++++++++++++++++++++---------
cattle/cattle-buffer.h | 23 +++++++++--------
docs/reference/cattle-1.0-sections.txt | 1 +
3 files changed, 48 insertions(+), 22 deletions(-)
commit c82f2f7fa06f363cda878110457ee75cff2d75bb
Author: Andrea Bolognani
Date: Sun Oct 19 23:41:11 2014 +0200
Nitpicks.
README.md | 4 ++--
cattle/cattle-buffer.c | 2 +-
cattle/cattle-buffer.h | 2 +-
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-constants.c | 2 +-
cattle/cattle-constants.h | 2 +-
cattle/cattle-error.c | 2 +-
cattle/cattle-error.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle-version.c | 2 +-
cattle/cattle-version.h.in | 2 +-
cattle/cattle.h | 2 +-
20 files changed, 21 insertions(+), 21 deletions(-)
commit 5bfee557870c0519dfd17c9db4a0cc801c17aba3
Author: Andrea Bolognani
Date: Sun Oct 19 23:40:42 2014 +0200
Remove spurious file.
cattle/cattle-program.c.debug | 659 ------------------------------------------
1 file changed, 659 deletions(-)
commit a2fa56f20d6a9d2c118c8c2a72fd95dd51f8cb85
Author: Andrea Bolognani
Date: Sun Oct 19 21:42:53 2014 +0200
Clean up enumerations.
cattle/cattle-instruction.h | 20 ++++++++++----------
cattle/cattle-program.c | 5 ++---
2 files changed, 12 insertions(+), 13 deletions(-)
commit 2b14029b0394e88dcb48a956239363f1811c0623
Author: Andrea Bolognani
Date: Sun Oct 19 16:56:58 2014 +0200
Update API reference.
cattle/cattle-tape.c | 4 +-
docs/reference/cattle-1.0-docs.xml | 19 ++++----
docs/reference/io-handling.xml | 97 +++++++++++++++++++++-----------------
3 files changed, 68 insertions(+), 52 deletions(-)
commit 6af513d4cdea911322585eac0289eb49fad5fb87
Author: Andrea Bolognani
Date: Sun Oct 19 16:25:17 2014 +0200
Fix build system issues.
Makefile.am | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit 7ca5b1bcccd6ae75033c8924fce3bb002a8ea402
Author: Andrea Bolognani
Date: Sun Oct 19 16:18:52 2014 +0200
Bump version number.
configure.ac | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
commit 30584f7590bd781e7111fa56c198bd6b6c979147
Author: Andrea Bolognani
Date: Sun Oct 19 16:17:17 2014 +0200
Update autogen.sh.
autogen.sh | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
commit 6a47b77e9067a48aab393416c449847f3daca33a
Author: Andrea Bolognani
Date: Sun Oct 19 16:13:23 2014 +0200
Update pointers to documentation.
Makefile.am | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
commit 34dd9778e777c984d7d4f1347e6a0c6dd35346fb
Author: Andrea Bolognani
Date: Sun Oct 19 15:39:09 2014 +0200
Update documentation.
AUTHORS | 10 ----
AUTHORS.md | 4 ++
INSTALL | 15 ------
INSTALL.md | 14 +++++
NEWS | 108 -------------------------------------
NEWS.md | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++
README => README.md | 19 +++++--
TODO => TODO.md | 10 ++--
8 files changed, 191 insertions(+), 141 deletions(-)
commit 94419961b4a97da3455b1d3aec2846066d12a0fa
Author: Andrea Bolognani
Date: Sun Oct 19 15:31:30 2014 +0200
Reorder headers.
cattle/Makefile.am | 6 +++---
cattle/cattle.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
commit ce5121e4606d72942160b66b7d7e39fa85635b54
Author: Andrea Bolognani
Date: Sun Oct 19 15:28:17 2014 +0200
Update ignore file.
tests/.gitignore | 1 +
1 file changed, 1 insertion(+)
commit 9981fe6924c211d4569932f11b678940e5aeda54
Merge: e3934d8 f0b2a92
Author: Andrea Bolognani
Date: Sun Oct 19 15:19:13 2014 +0200
Rebuild everything on top of CattleBuffer.
commit f0b2a925c1cdd679f141187d5aeb35d69b979a88
Author: Andrea Bolognani
Date: Sun Oct 19 15:12:48 2014 +0200
Update reference count tests.
tests/references.c | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
commit caed34349dae4ba0322476531cc83793ba5ae125
Author: Andrea Bolognani
Date: Sun Oct 19 15:07:50 2014 +0200
Update interpreter tests.
tests/interpreter.c | 161 +++++++++++++++++++++++++++++++++-------------------
1 file changed, 103 insertions(+), 58 deletions(-)
commit 2393c36d340e5792967bb5439ac823c158504d62
Author: Andrea Bolognani
Date: Sun Oct 19 14:22:34 2014 +0200
Style changes.
cattle/cattle-buffer.c | 32 ++---
cattle/cattle-configuration.c | 119 +++++++++++------
cattle/cattle-instruction.c | 291 ++++++++++++++++++++++++++----------------
cattle/cattle-instruction.h | 4 +-
cattle/cattle-interpreter.c | 267 ++++++++++++++++++++++++--------------
cattle/cattle-program.c | 36 ++++--
cattle/cattle-tape.c | 54 ++++----
7 files changed, 502 insertions(+), 301 deletions(-)
commit fdf6182eb20a4422e1bfd5c6e912b5bac33b9d80
Author: Andrea Bolognani
Date: Sun Oct 19 13:26:04 2014 +0200
Restore functionality to the default debug handler.
cattle/cattle-interpreter.c | 16 +-
cattle/cattle-program.c.debug | 659 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 668 insertions(+), 7 deletions(-)
commit 7ee4ead095353f70dc1276627258c1f30d92548f
Author: Andrea Bolognani
Date: Sat Oct 18 17:28:42 2014 +0200
Cleanup input right after run.
cattle/cattle-interpreter.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
commit 140fa0278838689d00e476f8b6a9693a7dacb309
Author: Andrea Bolognani
Date: Sat Oct 18 17:05:09 2014 +0200
Feed an empty buffer instead of NULL on end of input.
cattle/cattle-interpreter.c | 21 +++------------------
1 file changed, 3 insertions(+), 18 deletions(-)
commit be59ac0951f09ce2247e133fa6eb0d3a59bfe9fe
Author: Andrea Bolognani
Date: Sat Oct 18 16:37:51 2014 +0200
Update comments and unify default I/O handlers.
cattle/cattle-interpreter.c | 199 +++++++++++++++++++++-----------------------
1 file changed, 96 insertions(+), 103 deletions(-)
commit e3ea3828bece7c3fe8efb04493e4798a23edb55f
Author: Andrea Bolognani
Date: Sat Oct 18 00:25:21 2014 +0200
Implement CattleInterpreter using CattleBuffer.
cattle/cattle-interpreter.c | 452 ++++++++++++++++++++++++--------------------
cattle/cattle-interpreter.h | 3 +-
2 files changed, 246 insertions(+), 209 deletions(-)
commit 8144794c2b29d97aaa7c82150d740fe223a60e0a
Author: Andrea Bolognani
Date: Fri Oct 17 21:57:36 2014 +0200
Buffers can have zero size.
cattle/cattle-buffer.c | 28 ++++++++++---------
cattle/cattle-program.c | 71 +++++++++++++------------------------------------
examples/common.c | 8 ++----
examples/indent.c | 15 +++--------
examples/minimize.c | 17 ++++--------
examples/run.c | 15 +++--------
tests/buffer.c | 18 +++++++++++++
tests/program.c | 7 +++--
8 files changed, 71 insertions(+), 108 deletions(-)
commit 2bd8245840f6ccbb56165130e1d6d2594547c6e3
Author: Andrea Bolognani
Date: Thu Oct 16 22:28:38 2014 +0200
Handle input in example programs.
examples/indent.c | 19 +++++++++++++++++++
examples/minimize.c | 19 +++++++++++++++++++
2 files changed, 38 insertions(+)
commit e9b2f8895412146f8fe700696ff86d63b1397836
Author: Andrea Bolognani
Date: Thu Oct 16 22:20:43 2014 +0200
Properly handle comments and empty programs.
cattle/cattle-program.c | 33 +++++++++++++++++++++++++++------
examples/common.c | 13 +++++++++++--
examples/indent.c | 12 +++++++++---
examples/minimize.c | 12 +++++++++---
examples/run.c | 15 ++++++++++++---
5 files changed, 68 insertions(+), 17 deletions(-)
commit 5abd7f1ced542ade8da956dad9e1149cd8740cf5
Author: Andrea Bolognani
Date: Thu Oct 16 00:55:37 2014 +0200
Implement CattleProgram using CattleBuffer.
cattle/cattle-program.c | 435 ++++++++++++++++++++++++++++--------------------
cattle/cattle-program.h | 7 +-
examples/common.c | 42 ++---
examples/common.h | 5 +-
examples/indent.c | 65 ++++----
examples/minimize.c | 57 ++++---
examples/run.c | 37 ++--
tests/program.c | 120 ++++++++-----
8 files changed, 446 insertions(+), 322 deletions(-)
commit 66040af6ad9a1d5132f2c252a75f3a896a56a13f
Author: Andrea Bolognani
Date: Tue Oct 14 23:11:17 2014 +0200
Add a new test for CattleBuffer.
tests/buffer.c | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)
commit 4cdc2e0f5f0f847e5e36699133419739b93acd92
Author: Andrea Bolognani
Date: Tue Oct 14 21:23:47 2014 +0200
Implement CattleTape using CattleBuffer.
cattle/cattle-tape.c | 258 ++++++++++++++++++++++++++++++++-------------------
1 file changed, 164 insertions(+), 94 deletions(-)
commit 10d76d8faf0c50cdde85cdcba9c14da49850fa33
Author: Andrea Bolognani
Date: Tue Oct 14 20:40:21 2014 +0200
Valid UTF-8 input should be accepted.
tests/interpreter.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
commit 0b727d3a6855cc358f44ecddd6a288550b6b0029
Author: Andrea Bolognani
Date: Tue Oct 14 20:35:15 2014 +0200
Add more tests for CattleBuffer.
tests/buffer.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
commit e3934d848ce6335bcf265f9fcda3533792aa3351
Author: Andrea Bolognani
Date: Mon Oct 13 00:41:19 2014 +0200
Enable warnings for g-ir-scanner.
cattle/Makefile.am | 1 +
1 file changed, 1 insertion(+)
commit 97c29406f6a2c9cd7e90ab8ae28fb6535d4a7967
Author: Andrea Bolognani
Date: Mon Oct 13 00:40:22 2014 +0200
Implement more CattleBuffer features.
cattle/cattle-buffer.c | 75 ++++++++++++++++++++++++++++++----
cattle/cattle-buffer.h | 22 +++++-----
docs/reference/cattle-1.0-sections.txt | 4 +-
tests/buffer.c | 21 +++++++++-
4 files changed, 98 insertions(+), 24 deletions(-)
commit 72489ccb7861e104a3082da69faddb15a8b99574
Author: Andrea Bolognani
Date: Mon Oct 13 00:29:29 2014 +0200
Allocate memory in cattle_buffer_constructed().
cattle/cattle-buffer.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
commit ace8275054d498f5c9752d07395c2faffd9b7092
Author: Andrea Bolognani
Date: Mon Oct 13 00:28:47 2014 +0200
NULL is not a valid input for cattle_buffer_set_data().
cattle/cattle-buffer.c | 1 +
1 file changed, 1 insertion(+)
commit e4efb10758309dc5517be51eec7ebe2285d97c1a
Author: Andrea Bolognani
Date: Mon Oct 13 00:28:10 2014 +0200
Make 1 the mininmum size for a CattleBuffer.
cattle/cattle-buffer.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
commit bf9558209a7ed2eff795ed779dab2852014e4a98
Author: Andrea Bolognani
Date: Sun Oct 12 17:26:18 2014 +0200
Add cattle_buffer_set_data().
cattle/cattle-buffer.c | 97 ++++++++++++++++++++--------------
cattle/cattle-buffer.h | 2 +-
docs/reference/cattle-1.0-sections.txt | 1 +
tests/buffer.c | 10 ++--
4 files changed, 64 insertions(+), 46 deletions(-)
commit 70fa708e43c6977c088885d5c1af36646fe28b5b
Author: Andrea Bolognani
Date: Sat Oct 11 20:00:12 2014 +0200
Include CattleBuffer in the API reference.
cattle/cattle-buffer.h | 6 ++++--
docs/reference/cattle-1.0-docs.xml | 1 +
docs/reference/cattle-1.0-sections.txt | 18 ++++++++++++++++++
3 files changed, 23 insertions(+), 2 deletions(-)
commit 6cb971eab0e42e1552fa842a908f04b2dbbaf6a2
Author: Andrea Bolognani
Date: Sat Oct 11 19:47:42 2014 +0200
Add tests for CattleBuffer.
tests/Makefile.am | 5 +++++
tests/buffer.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
commit 3406f8eef68692f32d7d76800ee2647d6417e989
Author: Andrea Bolognani
Date: Sat Oct 11 19:47:10 2014 +0200
CattleBuffer:size is writable.
cattle/cattle-buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit b5c841bd5a07f968ea2e0b65bb5b9ae681d837cf
Author: Andrea Bolognani
Date: Sat Oct 11 19:39:37 2014 +0200
Remove unused code.
tests/tape.c | 15 ---------------
1 file changed, 15 deletions(-)
commit 4159efeaee97c72a346c7ef4002cc880b73dbb7a
Author: Andrea Bolognani
Date: Sat Oct 11 19:38:21 2014 +0200
Fix CattleBuffer.
cattle/cattle-buffer.c | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
commit 8fc0d404d15caffd15ccaf40dea9250e678d8fb8
Author: Andrea Bolognani
Date: Sat Oct 11 19:33:23 2014 +0200
Add CattleBuffer.
cattle/Makefile.am | 2 +
cattle/cattle-buffer.c | 250 +++++++++++++++++++++++++++++++++++++++++++++++++
cattle/cattle-buffer.h | 69 ++++++++++++++
cattle/cattle.h | 1 +
4 files changed, 322 insertions(+)
commit ffd6d73e30f1f119e43c8f214757e6ca42f0f4c6
Author: Andrea Bolognani
Date: Sat Oct 11 13:55:33 2014 +0200
Fix and improve all tape tests.
tests/tape.c | 91 +++++++++++++++++++++++++++++++++---------------------------
1 file changed, 50 insertions(+), 41 deletions(-)
commit b8b3ccfe650dc0483c3771cb4f71ae0c239a0da5
Author: Andrea Bolognani
Date: Sat Oct 11 13:41:59 2014 +0200
Use gulong for all offsets.
cattle/cattle-tape.c | 34 +++++++++++++++++++++++-----------
cattle/cattle-tape.h | 8 ++++----
2 files changed, 27 insertions(+), 15 deletions(-)
commit 28f72e59f887eef758ced88c2940972bcacb0a18
Author: Andrea Bolognani
Date: Fri Oct 10 22:51:20 2014 +0200
Rewrite some tape tests.
tests/tape.c | 166 +++++++++++++++++++++++++++++++++--------------------------
1 file changed, 93 insertions(+), 73 deletions(-)
commit ff6abb301299811ec810648daf24a189313ddeaf
Author: Andrea Bolognani
Date: Fri Oct 10 00:10:56 2014 +0200
Update copyright years.
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-constants.c | 2 +-
cattle/cattle-constants.h | 2 +-
cattle/cattle-error.c | 2 +-
cattle/cattle-error.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle-version.c | 2 +-
cattle/cattle-version.h.in | 2 +-
cattle/cattle.h | 2 +-
examples/common.c | 2 +-
examples/common.h | 2 +-
examples/indent.c | 2 +-
examples/minimize.c | 2 +-
examples/run.c | 2 +-
tests/interpreter.c | 2 +-
tests/program.c | 2 +-
tests/references.c | 2 +-
tests/tape.c | 2 +-
26 files changed, 26 insertions(+), 26 deletions(-)
commit 698869181ebc86d4cf54bbce28561579997de00a
Author: Andrea Bolognani
Date: Thu Oct 9 23:59:34 2014 +0200
Fix documentation pointer to CATTLE_EOF.
cattle/cattle-configuration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit db89f2f0ec33707a4b3b1b9b6059f3f10e3d5fd2
Author: Andrea Bolognani
Date: Thu Oct 9 23:56:30 2014 +0200
Include constants in API reference.
docs/reference/cattle-1.0-docs.xml | 1 +
docs/reference/cattle-1.0-sections.txt | 6 ++++++
2 files changed, 7 insertions(+)
commit 12ecdaa832d7473e85018380e96da77cf4c718f0
Author: Andrea Bolognani
Date: Thu Oct 9 23:56:13 2014 +0200
Reorder includes.
cattle/Makefile.am | 4 ++--
cattle/cattle-constants.c | 2 +-
cattle/cattle-interpreter.c | 1 +
cattle/cattle.h | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
commit c6c91d0972e0d5e60e363da6cfd0f1d3f24e8ef6
Author: Andrea Bolognani
Date: Thu Oct 9 23:42:22 2014 +0200
Define and use CATTLE_EOF.
cattle/Makefile.am | 2 ++
cattle/cattle-configuration.c | 18 ++++++++----------
cattle/{cattle.h => cattle-constants.c} | 28 ++++++++++++++--------------
cattle/{cattle.h => cattle-constants.h} | 24 ++++++++++++------------
cattle/cattle-interpreter.c | 14 +++++++-------
cattle/cattle.h | 1 +
6 files changed, 44 insertions(+), 43 deletions(-)
commit 55eb96e764258c597bd114855ad876a1aca95082
Author: Andrea Bolognani
Date: Thu Oct 9 00:28:17 2014 +0200
Switch tape cells from gchar to gint8.
cattle/cattle-interpreter.c | 56 ++++++++++++++--------------
cattle/cattle-interpreter.h | 4 +-
cattle/cattle-tape.c | 90 ++++++++++++++-------------------------------
cattle/cattle-tape.h | 4 +-
tests/interpreter.c | 12 +++---
5 files changed, 66 insertions(+), 100 deletions(-)
commit a096b23519df934d741d7af34c462c13b1f6afe7
Author: Andrea Bolognani
Date: Wed Oct 8 21:56:42 2014 +0200
Don't call deprecated g_type_init() on recent GLib.
examples/indent.c | 3 +++
examples/minimize.c | 3 +++
examples/run.c | 3 +++
tests/interpreter.c | 3 +++
tests/program.c | 3 +++
tests/references.c | 3 +++
tests/tape.c | 23 ++++++++++++-----------
7 files changed, 30 insertions(+), 11 deletions(-)
commit c48fbf6872bd941a5ebda78de0d7338688c56f3a
Author: Andrea Bolognani
Date: Thu Feb 9 19:44:31 2012 +0100
Add API version to DOC_MODULE.
docs/reference/.gitignore | 23 +++++++++++-----------
docs/reference/Makefile.am | 2 +-
.../{cattle-docs.xml => cattle-1.0-docs.xml} | 0
...ttle-overrides.txt => cattle-1.0-overrides.txt} | 0
...cattle-sections.txt => cattle-1.0-sections.txt} | 0
5 files changed, 12 insertions(+), 13 deletions(-)
commit 62ef7cb6cff27d1fc5ec790ee926a16761f5fceb
Author: Andrea Bolognani
Date: Thu Feb 9 19:39:36 2012 +0100
Fix indentation.
tests/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 643c089dfa6bbdfee07786f403ee4a7af5ea13e0
Author: Andrea Bolognani
Date: Thu Feb 9 19:19:10 2012 +0100
Add generated entries to sections file.
docs/reference/cattle-sections.txt | 7 +++++++
1 file changed, 7 insertions(+)
commit b6be71057cf7a5ea9d6e83d8cb90d65af51c64f0
Author: Andrea Bolognani
Date: Thu Feb 9 19:18:23 2012 +0100
Remove spurious tag.
docs/reference/cattle-sections.txt | 1 -
1 file changed, 1 deletion(-)
commit 0fc7f556b1a013b31b1e1db98915c036b9e581c0
Author: Andrea Bolognani
Date: Thu Feb 9 19:17:43 2012 +0100
Remove marshallers.
cattle/Makefile.am | 16 ----------------
cattle/cattle-interpreter.c | 1 -
cattle/cattle-marshal.list | 2 --
docs/reference/Makefile.am | 4 +---
4 files changed, 1 insertion(+), 22 deletions(-)
commit de0fdb9ceff208293a114d53396dea18ef53e7ac
Author: Andrea Bolognani
Date: Sun Mar 27 19:11:35 2011 +0200
=== Release 1.0.1 ===
commit 0c0f76776881fd2bad17816a6263f3ca6a894707
Author: Andrea Bolognani
Date: Sun Mar 27 19:11:22 2011 +0200
Bump version number.
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 5c42adc5fe4413de7caefe481fe9a9a812b2c03e
Author: Andrea Bolognani
Date: Sun Mar 27 19:05:26 2011 +0200
Require GTK-Doc 1.15.
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit d100b1de82e1bc773219ff781065bb19ddf2ab6c
Author: Andrea Bolognani
Date: Sun Mar 27 19:01:37 2011 +0200
Move contents file to avoid distcheck errors.
docs/reference/Makefile.am | 4 ++--
docs/reference/cattle-docs.xml | 4 ++--
docs/reference/{contents => }/io-handling.xml | 0
docs/reference/{contents => }/overview.xml | 0
4 files changed, 4 insertions(+), 4 deletions(-)
commit 405823c46d3f3cc109afac095133e57dcc74ccdd
Author: Andrea Bolognani
Date: Sun Mar 27 18:24:03 2011 +0200
Don't leak instruction stack on unbalanced brackets.
cattle/cattle-interpreter.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
commit 9b079f17c50126bbbeed07a09226209dd629a22e
Author: Andrea Bolognani
Date: Sun Mar 27 18:29:47 2011 +0200
Fix double free bug.
NEWS | 7 +++++++
cattle/cattle-interpreter.c | 2 ++
2 files changed, 9 insertions(+)
commit 43c46b3227d6f3de8527c0c3ce7e2a94038043c0
Author: Andrea Bolognani
Date: Sun Feb 27 22:23:16 2011 +0100
=== Release 1.0.0 ===
commit 56921fc087927639bc189f333fdc169fd598c722
Author: Andrea Bolognani
Date: Sun Feb 27 22:22:37 2011 +0100
Bump version number.
configure.ac | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
commit fc07423f9d9697a1f053a6bb2e64b71187b449cc
Author: Andrea Bolognani
Date: Sun Feb 27 22:21:42 2011 +0100
Fix Overview contents being repeated two times.
docs/reference/cattle-docs.xml | 5 +----
docs/reference/contents/overview.xml | 10 ++++++----
2 files changed, 7 insertions(+), 8 deletions(-)
commit deed4b09cf2a43faabd246e9f852a472f0225834
Author: Andrea Bolognani
Date: Sun Feb 27 22:03:43 2011 +0100
Update online documentation URL.
docs/reference/cattle-docs.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit b499dd3bed3c2bd9e06865cc202881e59c5c2ebf
Author: Andrea Bolognani
Date: Sun Feb 27 21:00:58 2011 +0100
Stylistic changes to configure.ac.
configure.ac | 50 ++++++++++++++++++++++++--------------------------
1 file changed, 24 insertions(+), 26 deletions(-)
commit 9b772191f76f23addda9d963ec5d4e30a0d4d512
Author: Andrea Bolognani
Date: Sun Feb 27 20:17:23 2011 +0100
Drop all Since: annotations.
All Cattle releases so far were tech previews, so this
information is of little interest for developers.
cattle/cattle-interpreter.c | 2 --
cattle/cattle-tape.c | 16 ----------------
cattle/cattle-version.c | 16 ----------------
3 files changed, 34 deletions(-)
commit 0a5c239b45e1d0f3e0681f4a09064ef57e066d60
Author: Andrea Bolognani
Date: Sun Feb 27 20:15:46 2011 +0100
Update NEWS.
NEWS | 4 ++++
1 file changed, 4 insertions(+)
commit 6e209797dfcbb215ae40387817f9c092b3c2f95f
Author: Andrea Bolognani
Date: Sun Feb 27 20:12:07 2011 +0100
Update README and INSTALL.
INSTALL | 23 ++++-------------------
README | 53 +++++++++++++++++++++++++++++++++--------------------
2 files changed, 37 insertions(+), 39 deletions(-)
commit 0a810bf7f62795217c018feec42040dfe179be00
Author: Andrea Bolognani
Date: Sun Feb 27 18:46:42 2011 +0100
Change description to Brainfuck language toolkit.
README | 4 ++--
cattle-1.0.pc.in | 2 +-
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-error.c | 2 +-
cattle/cattle-error.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle-version.c | 2 +-
cattle/cattle-version.h.in | 2 +-
cattle/cattle.h | 2 +-
17 files changed, 18 insertions(+), 18 deletions(-)
commit 2917af2de52b6dc4bc30ed9f18257799e6e1cf6d
Author: Andrea Bolognani
Date: Sat Feb 26 12:17:18 2011 +0100
Simplify file loading in examples.
examples/common.c | 63 +++++++++++++++++++------------------------------------
1 file changed, 21 insertions(+), 42 deletions(-)
commit cd8d3f37086ec7a4eb837bcdc4abf0ae662ca63b
Author: Andrea Bolognani
Date: Sat Feb 26 11:52:55 2011 +0100
Update Copyright years.
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-error.c | 2 +-
cattle/cattle-error.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle-version.c | 2 +-
cattle/cattle-version.h.in | 2 +-
cattle/cattle.h | 2 +-
examples/common.c | 2 +-
examples/common.h | 2 +-
examples/indent.c | 2 +-
examples/minimize.c | 2 +-
examples/run.c | 2 +-
tests/interpreter.c | 2 +-
tests/program.c | 2 +-
tests/references.c | 2 +-
tests/tape.c | 2 +-
24 files changed, 24 insertions(+), 24 deletions(-)
commit 98524c97a28f38b7715c34c2b819b484a824bf2d
Author: Andrea Bolognani
Date: Sat Feb 26 11:48:24 2011 +0100
Update TODO.
TODO | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
commit fc424e81eac44897f0786628094d2bfdee74640e
Author: Andrea Bolognani
Date: Sat Feb 26 11:39:36 2011 +0100
Add CattleTape:current-value property.
NEWS | 3 ++
cattle/cattle-tape.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
commit c7f256c09c2520943de76428e08ab4330c40b261
Author: Andrea Bolognani
Date: Fri Feb 25 17:47:37 2011 +0100
Update and improve API reference.
cattle/cattle-configuration.c | 28 +++++-----
cattle/cattle-error.c | 10 ++--
cattle/cattle-instruction.c | 48 ++++++++---------
cattle/cattle-interpreter.c | 93 ++++++++++++++++++++++++---------
cattle/cattle-program.c | 37 +++++++------
cattle/cattle-tape.c | 26 ++++-----
cattle/cattle-version.c | 4 +-
docs/reference/cattle-docs.xml | 6 +--
docs/reference/cattle-sections.txt | 6 +++
docs/reference/contents/io-handling.xml | 90 ++++++++++++++++---------------
docs/reference/contents/overview.xml | 19 +++----
11 files changed, 205 insertions(+), 162 deletions(-)
commit 3849aed5b4d16ec73072347a684b17ed7361c965
Author: Andrea Bolognani
Date: Thu Feb 24 14:58:39 2011 +0100
Check error even for succesful handlers.
cattle/cattle-interpreter.c | 3 ++
tests/interpreter.c | 79 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
commit 620b0c4858879b9ded0d69b2496a10993e767526
Author: Andrea Bolognani
Date: Tue Feb 22 21:48:28 2011 +0100
Fix scope annotations for I/O handlers.
cattle/cattle-interpreter.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit f967ea608ba22a72047753b55b7224c809cdeef8
Author: Andrea Bolognani
Date: Mon Feb 21 23:34:15 2011 +0100
Use standard name for the user_data parameter.
cattle/cattle-interpreter.c | 18 +++++++++---------
cattle/cattle-interpreter.h | 6 +++---
2 files changed, 12 insertions(+), 12 deletions(-)
commit cdbca5119db8d0501c9ff9a77dc2fd785a89883f
Author: Andrea Bolognani
Date: Mon Feb 21 01:13:36 2011 +0100
Replace signals with callbacks.
cattle/cattle-interpreter.c | 633 +++++++++++++++++++++-----------------------
cattle/cattle-interpreter.h | 48 +++-
tests/interpreter.c | 294 +++++++++-----------
3 files changed, 457 insertions(+), 518 deletions(-)
commit 60885129262f689bc65ad8c83768a86a553371da
Author: Andrea Bolognani
Date: Sun Feb 20 18:13:21 2011 +0100
Mark the input of CattleInterpreter.feed() as const.
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit a0067fb762094137e6368a10c932fdf493100893
Author: Andrea Bolognani
Date: Sat Feb 19 20:13:16 2011 +0100
Check input for non-ASCII characters.
NEWS | 3 ++-
cattle/cattle-error.c | 1 +
cattle/cattle-error.h | 3 ++-
cattle/cattle-interpreter.c | 19 ++++++++++++++---
tests/interpreter.c | 52 ++++++++++++++++++++++++++++++++++++++++++++-
5 files changed, 72 insertions(+), 6 deletions(-)
commit 1f041ac8d2c51d1798bd20eb8819578baf5053d3
Author: Andrea Bolognani
Date: Fri Feb 18 10:55:45 2011 +0100
Fix distcheck.
Building the API reference out-of-tree is still broken, but it
seems like there is no way of fixing it without rewriting a good
chunk of gtk-doc.make, which I'm not interested in doing..
At least now make fails when building the API reference
out-of-tree, instead of silently replacing cattle-docs.xml.
configure.ac | 2 +-
docs/reference/Makefile.am | 7 +++++--
docs/reference/{cattle-docs.xml.in => cattle-docs.xml} | 5 +++--
docs/reference/version.xml.in | 1 +
4 files changed, 10 insertions(+), 5 deletions(-)
commit 90905857a6a327835fffc04e6d7473fb16549d03
Author: Andrea Bolognani
Date: Thu Feb 17 23:47:58 2011 +0100
Modernize doc templates.
docs/reference/cattle-docs.xml.in | 63 ++++++++++++++++-----------------
docs/reference/contents/io-handling.xml | 5 +++
docs/reference/contents/overview.xml | 50 ++++++++++++++++----------
3 files changed, 66 insertions(+), 52 deletions(-)
commit d80c085c43d33c3b707a8adee56f7e98e3f58335
Author: Andrea Bolognani
Date: Thu Feb 17 20:58:07 2011 +0100
Add GObject Introspection annotations.
cattle/cattle-configuration.c | 8 ++++----
cattle/cattle-error.c | 2 +-
cattle/cattle-instruction.c | 34 +++++++++++++++++-----------------
cattle/cattle-interpreter.c | 33 ++++++++++++++++-----------------
cattle/cattle-program.c | 13 ++++++-------
cattle/cattle-tape.c | 12 +++++-------
cattle/cattle-version.c | 6 +++---
7 files changed, 52 insertions(+), 56 deletions(-)
commit 3ae982483bb00ea789b6b0203911729d8ac24b4c
Author: Andrea Bolognani
Date: Thu Feb 17 18:41:11 2011 +0100
Release the old input when new input is retrieved.
cattle/cattle-interpreter.c | 43 +++++++++++++++++--------------------------
tests/interpreter.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+), 26 deletions(-)
commit 375892cd895975f660bbff72561c928ab585ddf0
Author: Andrea Bolognani
Date: Thu Feb 17 17:42:02 2011 +0100
Update documentation.
cattle/cattle-interpreter.c | 2 +-
docs/reference/cattle-sections.txt | 1 +
docs/reference/contents/io-handling.xml | 54 +++++++++++----------------------
3 files changed, 19 insertions(+), 38 deletions(-)
commit d390fb86cb61b54a5ca2d010c6291d90d0024254
Author: Andrea Bolognani
Date: Thu Feb 17 17:19:38 2011 +0100
Remove the unused parameter from input-request.
cattle/cattle-interpreter.c | 9 ++-------
cattle/cattle-marshal.list | 1 -
tests/interpreter.c | 4 ----
3 files changed, 2 insertions(+), 12 deletions(-)
commit 48817235141816f17009fab242ab575d7b642607
Author: Andrea Bolognani
Date: Thu Feb 17 16:46:02 2011 +0100
Add CattleInterpreter.feed() method.
Instead of returning the input to a specified location, an
input handler is now requested to explicitly feed the
interpreter using this new method.
This change makes the Cattle API easier to understand and
bind; it also makes it possible to release the input when
the interpreter is finalized.
cattle/cattle-interpreter.c | 121 +++++++++++++++++++++++++++++++-------------
cattle/cattle-interpreter.h | 2 +
tests/interpreter.c | 6 ++-
3 files changed, 93 insertions(+), 36 deletions(-)
commit adb1f1290400e20e4ce4b58bb068a37d3e184f00
Author: Andrea Bolognani
Date: Wed Feb 16 11:02:53 2011 +0100
Fix gir file generation.
cattle/Makefile.am | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
commit d15b4652fb218a06ebc094440469a7c3d767323c
Author: Andrea Bolognani
Date: Tue Feb 15 15:48:27 2011 +0100
Enable GObject Introspection support.
INSTALL | 2 ++
Makefile.am | 1 +
NEWS | 2 ++
TODO | 1 -
cattle/Makefile.am | 25 +++++++++++++++++++++++++
configure.ac | 8 +++++++-
6 files changed, 37 insertions(+), 2 deletions(-)
commit f4f3952365d5d82a8b3d3d79854d202344dedf80
Author: Andrea Bolognani
Date: Tue Feb 15 13:45:11 2011 +0100
Install docs.
Makefile.am | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
commit 1775bb804fcd1f2c1f456b63f4cbf98672f3396e
Author: Andrea Bolognani
Date: Tue Feb 15 13:22:52 2011 +0100
Remove redundant files from EXTRA_DIST.
Makefile.am | 2 --
1 file changed, 2 deletions(-)
commit d5d7032a945a759cd440a2e53bbfed33d641c433
Author: Andrea Bolognani
Date: Tue Feb 15 12:50:10 2011 +0100
Install .pc file.
Makefile.am | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
commit a86c96495fc8dcafafc2f63fef8e3f8745385ea5
Author: Andrea Bolognani
Date: Tue Feb 15 12:47:30 2011 +0100
Install library and headers.
cattle/Makefile.am | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 48e2bf086989a53ff92553c0c930aaea12eec997
Author: Andrea Bolognani
Date: Tue Feb 15 12:40:17 2011 +0100
Update ignore patterns.
.gitignore | 3 ++-
docs/reference/.gitignore | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
commit faa2f581f7a6ac4805c1adaf1e589572dc1fd40f
Author: Andrea Bolognani
Date: Tue Feb 15 12:32:28 2011 +0100
Drop gkt-doc.make and run gtkdocize in autogen.sh.
autogen.sh | 2 +-
gtk-doc.make | 177 -----------------------------------------------------------
2 files changed, 1 insertion(+), 178 deletions(-)
commit 134a38748d03ac23a7da4dd6e1d2778fd4f0e22a
Author: Andrea Bolognani
Date: Mon Feb 14 23:46:36 2011 +0100
Improve and clean up Makefiles.
Makefile.am | 36 ++++++++------
cattle/Makefile.am | 137 +++++++++++++++++++++++++++++----------------------
docs/Makefile.am | 6 ++-
examples/Makefile.am | 65 ++++++++++++++++--------
tests/Makefile.am | 68 +++++++++++++++----------
5 files changed, 189 insertions(+), 123 deletions(-)
commit 58fbf98184fc1f0e1ef1b03ea326d9afcdcba2a7
Author: Andrea Bolognani
Date: Mon Feb 14 22:54:11 2011 +0100
Simplify Makefile.am for examples and tests.
examples/Makefile.am | 17 ++++++-----------
tests/Makefile.am | 12 ++++--------
2 files changed, 10 insertions(+), 19 deletions(-)
commit fdab1522cfbce5015ad5e14475748099b18b9cba
Author: Andrea Bolognani
Date: Mon Feb 14 22:52:29 2011 +0100
Unbreak gtk-doc in out-of-tree builds.
configure.ac | 2 +-
docs/reference/Makefile.am | 13 ++++++-------
docs/reference/{cattle-docs.sgml => cattle-docs.xml.in} | 2 +-
docs/reference/version.xml.in | 1 -
4 files changed, 8 insertions(+), 10 deletions(-)
commit 36891b44778deaae145ba02ebb22f237acb59bd0
Author: Andrea Bolognani
Date: Mon Feb 14 22:23:18 2011 +0100
Point gtk-doc to the versioned library.
docs/reference/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit fdf94a9acbabe40754f9cbc3d42f5bac1d3b4716
Author: Andrea Bolognani
Date: Mon Feb 14 22:18:35 2011 +0100
Correctly point to the missing script.
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit f4ce3888196637856f8c51e6e97687f7678af6e4
Author: Andrea Bolognani
Date: Tue Feb 8 23:13:11 2011 +0100
Make the library versioned.
cattle/Makefile.am | 32 ++++++++++++++++----------------
examples/Makefile.am | 12 ++++++------
tests/Makefile.am | 16 ++++++++--------
3 files changed, 30 insertions(+), 30 deletions(-)
commit 3a3b0451f2ae6d5abb23f6881c571af3e79a8c41
Author: Andrea Bolognani
Date: Tue Feb 8 23:04:16 2011 +0100
Make .pc file versioned.
Makefile.am | 2 +-
cattle.pc.in => cattle-1.0.pc.in | 4 ++--
configure.ac | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
commit 92b5ab870273876ec622a241ed663691b2d6790d
Author: Andrea Bolognani
Date: Tue Feb 8 22:56:03 2011 +0100
Remove two empty lines at the end of file.
cattle/cattle-error.c | 2 --
1 file changed, 2 deletions(-)
commit 8a526f8e128abc9f59207bb8b63c7e422ee0715b
Author: Andrea Bolognani
Date: Tue Feb 8 22:53:50 2011 +0100
Don't scan cattle-version.h for enums.
cattle/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 66c34747dde08655b5fbfb0788b76f80be63c25b
Author: Andrea Bolognani
Date: Sat Dec 11 19:28:17 2010 +0100
Simplify test cases.
tests/interpreter.c | 24 +++-
tests/program.c | 120 ++++++++-----------
tests/tape.c | 336 +++++++++++++++++++++++++---------------------------
3 files changed, 235 insertions(+), 245 deletions(-)
commit 46bad5a82434aba5250bac9e2516e8b0fd83fe68
Author: Andrea Bolognani
Date: Mon Dec 6 12:44:39 2010 +0100
Re-enable some program tests.
tests/program.c | 2 --
1 file changed, 2 deletions(-)
commit 0ce7be0e9edd68b47c1bc62f01db698f1a50f025
Author: Andrea Bolognani
Date: Mon Dec 6 12:44:09 2010 +0100
Simplify interpreter tests.
tests/interpreter.c | 376 +++++++++++++++++++++-------------------------------
1 file changed, 150 insertions(+), 226 deletions(-)
commit aada051908c2bdf03d7ec875aab2c2776d9344ae
Author: Andrea Bolognani
Date: Mon Dec 6 12:12:29 2010 +0100
Check input for UTF-8 correctness.
NEWS | 6 +++++-
cattle/cattle-interpreter.c | 13 +++++++++++++
tests/interpreter.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 62 insertions(+), 1 deletion(-)
commit 51b1976c49173d7b2588a0ceba2dd5cd650dd3ff
Author: Andrea Bolognani
Date: Mon Dec 6 11:45:10 2010 +0100
Improve signal handlers error handling.
If a signal handler misbehaves and doesn't set the error
on failure, raise a generic I/O error instead of aborting.
cattle/cattle-interpreter.c | 77 ++++++++++++---
tests/interpreter.c | 233 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 297 insertions(+), 13 deletions(-)
commit f4f76712857c7a521a13a873a935ce15b63b8df2
Author: Andrea Bolognani
Date: Mon Dec 6 10:19:24 2010 +0100
Handle unbalanced loop begin instructions as well.
cattle/cattle-interpreter.c | 29 +++++++++++++++++++----------
tests/interpreter.c | 33 +++++++++++++++++++++++++++++++--
2 files changed, 50 insertions(+), 12 deletions(-)
commit d90df8cd0a7c918c87045620a1654b633a764f51
Author: Andrea Bolognani
Date: Sun Dec 5 16:15:03 2010 +0100
Check for unbalanced brackets at runtime.
NEWS | 2 ++
cattle/cattle-interpreter.c | 14 +++++++++++++-
tests/interpreter.c | 37 +++++++++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+), 1 deletion(-)
commit 1e3615134b652a1da1f7571e48c5135a22c2253f
Author: Andrea Bolognani
Date: Sun Dec 5 15:33:47 2010 +0100
Merge CattleProgramError and CattleInterpreterError.
Since errors from both enumerations can happen both at load time
and at runtime, it makes sense to have a single enumeration
containing all error codes.
NEWS | 6 ++++
cattle/Makefile.am | 2 ++
cattle/cattle-error.c | 59 +++++++++++++++++++++++++++++++++++
cattle/{cattle.h => cattle-error.h} | 33 +++++++++++++-------
cattle/cattle-interpreter.c | 61 +++++++++++++------------------------
cattle/cattle-interpreter.h | 8 -----
cattle/cattle-program.c | 38 +++++------------------
cattle/cattle-program.h | 9 ------
cattle/cattle.h | 1 +
docs/reference/cattle-docs.sgml | 2 ++
docs/reference/cattle-sections.txt | 42 +++++++++++++------------
tests/interpreter.c | 12 ++++----
tests/program.c | 4 +--
13 files changed, 151 insertions(+), 126 deletions(-)
commit 1b6482275eb431f8d40f8ee37295283eb8968dae
Author: Andrea Bolognani
Date: Sun Dec 5 12:32:09 2010 +0100
Use tabs for indentation.
Rewrite the indent() function to make use of an instruction
stack instead of recursion.
examples/indent.c | 102 +++++++++++++++++++++++++++++++++---------------------
1 file changed, 62 insertions(+), 40 deletions(-)
commit 8a0241a9f20bc796f6149827e7ebe08f6fe23d5e
Author: Andrea Bolognani
Date: Sat Dec 4 17:26:42 2010 +0100
== Release 0.9.4 ==
commit d1434869466b644ee50d95b3cd12e4f158f3f40f
Author: Andrea Bolognani
Date: Sat Dec 4 17:25:21 2010 +0100
Bump version number.
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit bd6b4c6bfe977628a13140159c5d5f3f0e4f50ea
Author: Andrea Bolognani
Date: Sat Dec 4 17:24:53 2010 +0100
Let Gtk-Doc scan for types.
docs/reference/.gitignore | 1 +
docs/reference/Makefile.am | 2 +-
docs/reference/cattle.types | 8 --------
3 files changed, 2 insertions(+), 9 deletions(-)
commit 82e8bc9b17f021439823931f2e48f15381e6364f
Author: Andrea Bolognani
Date: Sat Dec 4 16:26:07 2010 +0100
Modernize configure.ac a bit.
configure.ac | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
commit 5cffca62bb59eb777bc76448ec01fdbe535196ca
Author: Andrea Bolognani
Date: Sat Dec 4 15:27:12 2010 +0100
Fix indentation error.
NEWS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 82c88df64732698fabd3e76b4e5487adc3b3344c
Author: Andrea Bolognani
Date: Sat Dec 4 12:44:10 2010 +0100
Don't link the library to GIO.
GIO is only used by the example programs, the library doesn't
use it so it's better not to link it in.
configure.ac | 7 ++++++-
examples/Makefile.am | 12 ++++++------
2 files changed, 12 insertions(+), 7 deletions(-)
commit a919e92ebd1ee67ab8593d8730cbbd9ccfdf78a8
Author: Andrea Bolognani
Date: Fri Dec 3 17:47:41 2010 +0100
Rename examples/interpreter to examples/run.
README | 2 +-
examples/.gitignore | 2 +-
examples/Makefile.am | 14 +++++++-------
examples/{interpreter.c => run.c} | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
commit cf83a77a3b493ad56bce28771e8e0fb4c098c4ec
Author: Andrea Bolognani
Date: Fri Dec 3 17:39:06 2010 +0100
Add a simple Brainfuck source code minimizer.
NEWS | 5 +-
examples/.gitignore | 1 +
examples/Makefile.am | 9 ++-
examples/minimize.c | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 170 insertions(+), 2 deletions(-)
commit 89462fb0e5872e097554bf34abbb4ba04f77bf3b
Author: Andrea Bolognani
Date: Thu Dec 2 14:26:51 2010 +0100
Distribute old (pre 0.9.2) ChangeLog.
ChangeLog.pre-0.9.2 | 222 ++++++++++++++++++++++++++++++++++++++++++++++++++++
Makefile.am | 3 +-
2 files changed, 224 insertions(+), 1 deletion(-)
commit 3308dca0bd8df9c4c423a948c16fd02bbc1e8877
Author: Andrea Bolognani
Date: Thu Dec 2 13:56:46 2010 +0100
Wrap current value on increase/decrease.
NEWS | 7 ++-
cattle/cattle-tape.c | 49 ++++++++++++++++++--
tests/tape.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 176 insertions(+), 7 deletions(-)
commit bbcdab5cff111f1d404c6ce97d38083eb1b311bb
Author: Andrea Bolognani
Date: Wed Dec 1 10:08:19 2010 +0100
Ignore first line if magic bytes are present.
NEWS | 2 ++
examples/common.c | 14 ++++++++++++++
2 files changed, 16 insertions(+)
commit c45454cd5e106f22136b07593393330fa53df95b
Author: Andrea Bolognani
Date: Tue Nov 30 20:06:48 2010 +0100
Automate ChangeLog creation at dist time.
.gitignore | 2 +-
Makefile.am | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletion(-)
commit 02b4f4a82a4480df4350775d6c10467c15b4e8ed
Author: Andrea Bolognani
Date: Tue Nov 30 18:42:13 2010 +0100
Fix indentation problems here and there.
AUTHORS | 10 +++---
INSTALL | 21 +++++------
Makefile.am | 12 +++----
NEWS | 66 +++++++++++++++++------------------
README | 13 +++----
TODO | 15 ++++----
cattle/Makefile.am | 99 +++++++++++++++++++++++++++-------------------------
configure.ac | 2 +-
examples/Makefile.am | 6 ++--
tests/Makefile.am | 2 +-
10 files changed, 126 insertions(+), 120 deletions(-)
commit 265e2ef58c6f35b2da67198b9651a33e9d61ca00
Author: Andrea Bolognani
Date: Tue Nov 30 18:20:27 2010 +0100
Fix a typo in signal name.
cattle/cattle-interpreter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit f576b2f397c836ed141c2178fadd7bd8928ce223
Author: Andrea Bolognani
Date: Tue Nov 30 18:19:23 2010 +0100
Rename DUMP_TAPE enum value to DEBUG.
NEWS | 5 +++++
cattle/cattle-configuration.c | 4 ++--
cattle/cattle-instruction.c | 8 ++++----
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-program.c | 2 +-
6 files changed, 14 insertions(+), 9 deletions(-)
commit e2a7da97b781621f5c4b8a91cf606e1762ff95ef
Author: Andrea Bolognani
Date: Tue Nov 30 16:27:38 2010 +0100
Clean up and improve documentation.
cattle/cattle-configuration.c | 39 ++--
cattle/cattle-instruction.c | 45 +++--
cattle/cattle-interpreter.c | 25 ++-
cattle/cattle-program.c | 11 +-
cattle/cattle-tape.c | 44 ++---
docs/reference/Makefile.am | 3 +-
docs/reference/cattle-docs.sgml | 67 +++----
docs/reference/cattle-sections.txt | 4 +-
docs/reference/contents/io-handling.xml | 329 ++++++++++++++++++++++++++++++++
docs/reference/contents/overview.xml | 19 ++
docs/reference/io-handling.xml | 157 ---------------
11 files changed, 460 insertions(+), 283 deletions(-)
commit 00f57f3e63639b677a9797a1968266c58b400285
Author: Andrea Bolognani
Date: Sun Nov 28 16:00:13 2010 +0100
Add examples/common.h to EXTRA_DIST.
examples/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
commit 559c4c183a03adb155a1f1a20d2f613706cee9d3
Author: Andrea Bolognani
Date: Sun Nov 28 15:56:43 2010 +0100
Add version information.
NEWS | 2 +
cattle/.gitignore | 1 +
cattle/Makefile.am | 4 +-
cattle/cattle-version.c | 138 +++++++++++++++++++++++++++++++++++++
cattle/cattle-version.h.in | 51 ++++++++++++++
cattle/cattle.h | 1 +
configure.ac | 1 +
docs/reference/cattle-docs.sgml | 8 ++-
docs/reference/cattle-sections.txt | 13 ++++
9 files changed, 217 insertions(+), 2 deletions(-)
commit 5d8e786ad725b14403918a8a9f332cb9e528f1b8
Author: Andrea Bolognani
Date: Tue Nov 23 11:29:46 2010 +0100
Rewrite the CattleProgram.load() internal logic.
The new routine is way more linear than the previous one; moreover,
it doesn't append a useless NOP to the program.
Add some more test cases.
cattle/cattle-program.c | 213 ++++++++++++++++++++++----------------------
tests/program.c | 232 +++++++++++++++++++++++++++++++++++++++++++-----
tests/references.c | 2 +-
3 files changed, 321 insertions(+), 126 deletions(-)
commit 735fb55af9c9f537885fb1dd5499e12f000e6e19
Author: Andrea Bolognani
Date: Mon Nov 22 15:47:48 2010 +0100
Mark I/O errors as unlikely.
cattle/cattle-interpreter.c | 38 ++++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)
commit 84d5266e918201e68c3678fe490e1468fcb3f6bb
Author: Andrea Bolognani
Date: Mon Nov 22 14:04:19 2010 +0100
Don't include internal stuff in documentation.
docs/reference/Makefile.am | 4 +++-
docs/reference/cattle-sections.txt | 17 -----------------
2 files changed, 3 insertions(+), 18 deletions(-)
commit eb359fb54470874d31b3c0ebe8279223c837f053
Author: Andrea Bolognani
Date: Mon Nov 22 12:43:24 2010 +0100
Fix a memory leak in CattleInterpreter.run().
Cache the results of method call like CattleInstruction.get_quantity();
the speed increase obtained is not enough to offset the speed penalty
caused by the fact g_object_unref is called more often.
cattle/cattle-interpreter.c | 70 ++++++++++++++++++++++++++++-----------------
1 file changed, 43 insertions(+), 27 deletions(-)
commit dec2215af6ed0ec9c2e800e86a08e017f35b0949
Author: Andrea Bolognani
Date: Sat Nov 20 21:44:52 2010 +0100
Add a couple of ignore patterns.
.gitignore | 1 +
docs/reference/.gitignore | 1 +
2 files changed, 2 insertions(+)
commit 5149f6d8d0e8855252e6e73b7e93f13237355b80
Author: Andrea Bolognani
Date: Sat Nov 20 21:42:30 2010 +0100
Remove CattleProgram.load_from_file().
The file reading stuff is best implemented outside of the library;
use GIO to read files in the example programs.
cattle/cattle-program.c | 119 ++++---------------------------------
cattle/cattle-program.h | 5 +-
configure.ac | 2 +-
docs/reference/cattle-sections.txt | 3 +-
examples/Makefile.am | 8 +--
examples/common.c | 81 +++++++++++++++++++++++++
examples/common.h | 34 +++++++++++
examples/indent.c | 21 ++++++-
examples/interpreter.c | 23 ++++++-
tests/interpreter.c | 6 +-
tests/program.c | 4 +-
tests/references.c | 4 +-
12 files changed, 181 insertions(+), 129 deletions(-)
commit 464b59ceae2568dde4a27cb27ba57b4fd469aa60
Author: Andrea Bolognani
Date: Sat Nov 20 12:35:32 2010 +0100
Check for disposed objects with g_return_if_fail.
cattle/cattle-configuration.c | 111 ++++++++-------
cattle/cattle-instruction.c | 210 ++++++++++++++--------------
cattle/cattle-interpreter.c | 153 ++++++++++----------
cattle/cattle-program.c | 316 ++++++++++++++++++++----------------------
cattle/cattle-tape.c | 177 +++++++++++------------
5 files changed, 459 insertions(+), 508 deletions(-)
commit 1af70a2bd84ae512943ed5a413de599310499df4
Author: Andrea Bolognani
Date: Fri Nov 19 19:16:47 2010 +0100
Cosmetic changes.
cattle/cattle-configuration.c | 291 ++++----
cattle/cattle-configuration.h | 34 +-
cattle/cattle-instruction.c | 551 +++++++--------
cattle/cattle-instruction.h | 72 +-
cattle/cattle-interpreter.c | 1551 +++++++++++++++++++++--------------------
cattle/cattle-interpreter.h | 55 +-
cattle/cattle-program.c | 916 ++++++++++++------------
cattle/cattle-program.h | 58 +-
cattle/cattle-tape.c | 301 ++++----
cattle/cattle-tape.h | 66 +-
examples/indent.c | 145 ++--
examples/interpreter.c | 60 +-
tests/interpreter.c | 304 ++++----
tests/program.c | 115 ++-
tests/references.c | 78 +--
tests/tape.c | 168 +++--
16 files changed, 2403 insertions(+), 2362 deletions(-)
commit af33c23b20255d5fdeee8f9703eb41334ca9c033
Author: Andrea Bolognani
Date: Thu Nov 18 18:09:42 2010 +0100
Add some tape test cases.
tests/tape.c | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 153 insertions(+)
commit c711c7486ec7d6aaad372ee82fc9e150686f80cd
Author: Andrea Bolognani
Date: Sat Nov 13 12:39:31 2010 +0100
Rename test programs.
tests/.gitignore | 8 ++--
tests/Makefile.am | 56 ++++++++++++++--------------
tests/{interpreter-tests.c => interpreter.c} | 2 +-
tests/{program-tests.c => program.c} | 2 +-
tests/{references-tests.c => references.c} | 2 +-
tests/{tape-tests.c => tape.c} | 2 +-
6 files changed, 36 insertions(+), 36 deletions(-)
commit 1327caeb5254ada055accf3052059f7885f69af1
Author: Andrea Bolognani
Date: Sat Nov 13 12:32:40 2010 +0100
Increase STEPS in tape limits tests.
tests/tape-tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 64f1096d9f2a8d2edd57ae635c9f202ebd2f014b
Author: Andrea Bolognani
Date: Sat Nov 13 12:31:53 2010 +0100
Silently call gtester on noinst_PROGRAMS.
tests/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 5aee0657c05bd5c27bc3769cc142e9db151d7748
Author: Andrea Bolognani
Date: Mon Nov 8 18:20:40 2010 +0100
Add fast bulk operations.
NEWS | 8 ++
cattle/cattle-interpreter.c | 21 ++--
cattle/cattle-tape.c | 219 +++++++++++++++++++++++++++----------
cattle/cattle-tape.h | 32 ++++--
docs/reference/cattle-docs.sgml | 3 +
docs/reference/cattle-sections.txt | 6 +
6 files changed, 206 insertions(+), 83 deletions(-)
commit 11829edbee8acbba6bea462dee1c2036d26f70b7
Author: Andrea Bolognani
Date: Fri Nov 5 19:46:16 2010 +0100
Remove leftover calls to unref().
cattle/cattle-interpreter.c | 14 --------------
1 file changed, 14 deletions(-)
commit 4887d1026a4204cb9f5f82de4b7cda27675f0426
Author: Andrea Bolognani
Date: Fri Nov 5 19:28:48 2010 +0100
Reduce use of accessor method inside class implementation.
cattle/cattle-interpreter.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
commit 9bc3fa77088b68c34687a2d9807e762871911cc8
Author: Andrea Bolognani
Date: Fri Nov 5 19:20:40 2010 +0100
Use an instruction stack in CattleInterpreter.run().
cattle/cattle-interpreter.c | 51 +++++++++++++++++++++++++--------------------
1 file changed, 28 insertions(+), 23 deletions(-)
commit 756665554d6f6ee20d8c7042f657af91ef334f6b
Author: Andrea Bolognani
Date: Fri Nov 5 17:43:51 2010 +0100
Add some ignore patterns.
.gitignore | 2 ++
1 file changed, 2 insertions(+)
commit 7241f032793745965eb7355fea4946ca31694585
Author: Andrea Bolognani
Date: Mon Jan 4 11:12:29 2010 +0100
Don't copy autotools files.
autogen.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 6a03f4dd4ec8287ddf430eb98be8e3da6fa4c91f
Author: Andrea Bolognani
Date: Sun Jan 3 15:27:35 2010 +0100
Silent rules for glib-mkenums and glib-genmarshal.
cattle/Makefile.am | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
commit d2a5cd39744ac95fcb610e85aaca9322f722c541
Author: Andrea Bolognani
Date: Sat Jan 2 19:32:04 2010 +0100
Update copyright years.
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle.h | 2 +-
examples/indent.c | 2 +-
examples/interpreter.c | 2 +-
tests/interpreter-tests.c | 2 +-
tests/program-tests.c | 2 +-
tests/references-tests.c | 2 +-
tests/tape-tests.c | 2 +-
17 files changed, 17 insertions(+), 17 deletions(-)
commit aade932784bb8015c3b1fbbd31cbd68e2d0945af
Author: Andrea Bolognani
Date: Sat Jan 2 17:57:06 2010 +0100
Show support to the no-www campaign.
cattle.pc.in | 2 +-
cattle/cattle-configuration.c | 2 +-
cattle/cattle-configuration.h | 2 +-
cattle/cattle-instruction.c | 2 +-
cattle/cattle-instruction.h | 2 +-
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-interpreter.h | 2 +-
cattle/cattle-program.c | 2 +-
cattle/cattle-program.h | 2 +-
cattle/cattle-tape.c | 2 +-
cattle/cattle-tape.h | 2 +-
cattle/cattle.h | 2 +-
examples/indent.c | 2 +-
examples/interpreter.c | 2 +-
tests/interpreter-tests.c | 2 +-
tests/program-tests.c | 2 +-
tests/references-tests.c | 2 +-
tests/tape-tests.c | 2 +-
18 files changed, 18 insertions(+), 18 deletions(-)
commit 090e74d2ec8e0ae4111db537876c8134c958a3b2
Author: Andrea Bolognani
Date: Mon Nov 9 20:06:47 2009 +0100
Don't run gtkdocize in autogen.sh.
There is a small customization in gtk-doc.make (don't install API
Reference), calling gtkdocize removes it.
Remember to make autogen.sh call gtkdocize and to drop gtk-doc.make from
the repository once we hit 1.0.0, which is supposed to install stuff.
autogen.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 4a62c09a608b48b807755cb761fdfe454199e3ac
Author: Andrea Bolognani
Date: Mon Nov 9 12:48:26 2009 +0100
Enable silent rules.
Custom rules, as well as Gtk-Doc rules, are still verbose, but a good
chunk of the original make output is hidden.
configure.ac | 1 +
1 file changed, 1 insertion(+)
commit 547512fa89503a232fac1452d8c9f1ea61c0c86a
Author: Andrea Bolognani
Date: Sun Nov 8 10:41:33 2009 +0100
Steal improved autogen.sh from Abnormalize.
autogen.sh | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
commit 2ca93544c1c2742079127aa4ab8af3ba7f087467
Author: Andrea Bolognani
Date: Sat Nov 7 23:43:48 2009 +0100
Split .bzrignore into multiple .gitignore.
.bzrignore | 57 -----------------------------------------------
.gitignore | 27 ++++++++++++++++++++++
cattle/.gitignore | 4 ++++
docs/reference/.gitignore | 17 ++++++++++++++
examples/.gitignore | 2 ++
tests/.gitignore | 4 ++++
6 files changed, 54 insertions(+), 57 deletions(-)
commit cf83fa537bd58aeccfa887ebb8f146332e315a4b
Author: Andrea Bolognani
Date: Tue May 5 11:28:02 2009 +0200
=== Released 0.9.3 ===
commit 9852e26e2321d3aae1f7ac68c93d35896852b269
Author: Andrea Bolognani
Date: Tue May 5 11:25:46 2009 +0200
Bump version number.
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 6eaa1233debc8d40b01616069cfc68587cb8444c
Author: Andrea Bolognani
Date: Tue May 5 11:11:25 2009 +0200
List all the changes from the previous release.
NEWS | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
commit c63ae7b6a520ac40f897b1dbb7c103e1625badd3
Author: Andrea Bolognani
Date: Sun May 3 18:58:15 2009 +0200
Add signal handler prototypes to the documentation.
docs/reference/io-handling.xml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
commit 158ea3194d655a9bf6a1e7e05c24b3bad21bdf34
Author: Andrea Bolognani
Date: Sun May 3 16:12:16 2009 +0200
Split the single handler test case into separate test
cases for the different I/O operations.
tests/interpreter-tests.c | 166 ++++++++++++++++++++++++++++------------------
1 file changed, 102 insertions(+), 64 deletions(-)
commit e297b6717c277912d48cec28a8a0e9ae15dfc1f5
Author: Andrea Bolognani
Date: Sun May 3 15:23:19 2009 +0200
Exit with a non-zero return value on failure.
tests/interpreter-tests.c | 4 +---
tests/program-tests.c | 4 +---
tests/references-tests.c | 4 +---
tests/tape-tests.c | 4 +---
4 files changed, 4 insertions(+), 12 deletions(-)
commit e2e63568552d92a771df568859c1d1386ef0fa06
Author: Andrea Bolognani
Date: Sun May 3 15:11:19 2009 +0200
Run the test suite on make check.
tests/Makefile.am | 9 +++++++++
1 file changed, 9 insertions(+)
commit 0be919f142981a97e430c48080b84ed284cb2fa9
Author: Andrea Bolognani
Date: Sun May 3 15:01:38 2009 +0200
Update GTK-Doc rules.
gtk-doc.make | 46 +++++++++++++++++++++++++++++++++++-----------
1 file changed, 35 insertions(+), 11 deletions(-)
commit a05da76391e3f777567209e1ee37c738986e847e
Author: Andrea Bolognani
Date: Sat May 2 17:03:42 2009 +0200
Expand overview.
docs/reference/cattle-docs.sgml | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
commit d06a020f3107209a594e1f927e64c43ed5cedd0f
Author: Andrea Bolognani
Date: Sat May 2 15:01:49 2009 +0200
Update documentation and fix some typos.
INSTALL | 18 +++++++++---------
README | 22 +++++++++++-----------
2 files changed, 20 insertions(+), 20 deletions(-)
commit f4921b5d39351411ced47754fad3209d4169a871
Author: Andrea Bolognani
Date: Sat May 2 13:06:31 2009 +0200
Remove @see_also from classes' documentation, it doesn't
seem to work anymore as of GTK-Doc V1.11.
cattle/cattle-configuration.c | 1 -
cattle/cattle-instruction.c | 1 -
cattle/cattle-interpreter.c | 1 -
cattle/cattle-program.c | 1 -
cattle/cattle-tape.c | 1 -
5 files changed, 5 deletions(-)
commit 14332928950f6dd7a7f6b665442ae8742204f8c8
Author: Andrea Bolognani
Date: Sat May 2 12:50:26 2009 +0200
Clean up example programs.
examples/indent.c | 8 ++++++--
examples/interpreter.c | 9 ++-------
2 files changed, 8 insertions(+), 9 deletions(-)
commit 3cb2e6fb982c533e4661dd993a2195acf6df912e
Author: Andrea Bolognani
Date: Sat May 2 12:39:18 2009 +0200
Updated and re-formatted TODO list.
TODO | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
commit b1ce0d522210788229cb48a9e7d74b333daf7f08
Author: Andrea Bolognani
Date: Sat May 2 12:20:42 2009 +0200
Use CPPFLAGS instead of CFLAGS.
examples/Makefile.am | 4 ++--
tests/Makefile.am | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
commit 50d44d278e56cc43c7fdffe17aa539eb837113bf
Author: Andrea Bolognani
Date: Sat May 2 12:07:55 2009 +0200
Make sure we don't use any deprecated GLib function.
cattle/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
commit a39fe77d13fe135f0a9ac714e1e248e104c148ce
Author: Andrea Bolognani
Date: Sat Apr 25 13:42:50 2009 +0200
Enforce single header includes via compile-time checks.
cattle/Makefile.am | 3 ++-
cattle/cattle-configuration.h | 4 ++++
cattle/cattle-instruction.h | 4 ++++
cattle/cattle-interpreter.h | 4 ++++
cattle/cattle-program.h | 4 ++++
cattle/cattle-tape.h | 4 ++++
cattle/cattle.h | 4 ++++
7 files changed, 26 insertions(+), 1 deletion(-)
commit ed4e7ed936f8aa6788501831125344886ab691bf
Author: Andrea Bolognani
Date: Tue Apr 21 23:14:23 2009 +0200
Update and expand I/O handling documentation.
docs/reference/io-handling.xml | 46 +++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 9 deletions(-)
commit 6cad26757371724449227af27123150e095ee84e
Author: Andrea Bolognani
Date: Tue Apr 21 15:25:54 2009 +0200
Fix some compiler warnings.
cattle/cattle-interpreter.c | 2 +-
cattle/cattle-tape.c | 1 -
tests/references-tests.c | 1 -
3 files changed, 1 insertion(+), 3 deletions(-)
commit e89a7a4350d0ab085661482defb3344430901c77
Author: Andrea Bolognani
Date: Tue Apr 21 15:15:19 2009 +0200
Remove a couple unneeded checks.
cattle/cattle-interpreter.c | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
commit e75cc43c82e71b9fb84bbb75dd744cc2c388c523
Author: Andrea Bolognani
Date: Mon Apr 20 18:42:13 2009 +0200
Check the return value of every I/O call.
cattle/cattle-interpreter.c | 82 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 73 insertions(+), 9 deletions(-)
commit 63ad5df50a1105ea694fd23b58ea39a966aa0cb7
Author: Andrea Bolognani
Date: Mon Apr 20 18:20:20 2009 +0200
Use the error message returned by strerror(3) when
reporting I/O errors.
cattle/cattle-interpreter.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
commit 10d1106f9c8b1197eee1e97c4a1b4b7b9675c58f
Author: Andrea Bolognani
Date: Mon Apr 20 17:24:36 2009 +0200
Update documentation to reflect reality.
cattle/cattle-interpreter.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
commit e78b2b71bd3b72f260134a457920aabbd29b5ffd
Author: Andrea Bolognani
Date: Mon Apr 20 16:42:09 2009 +0200
Implement default handlers for the output-request and
debug-request signals.
cattle/cattle-interpreter.c | 106 ++++++++++++++++++++++++++++++++++++++++--
examples/interpreter.c | 109 --------------------------------------------
2 files changed, 102 insertions(+), 113 deletions(-)
commit 52562663acab43a5b411a46e69db733575cbe0f0
Author: Andrea Bolognani
Date: Mon Apr 20 13:17:46 2009 +0200
Add a default handler for the input-request signal.
cattle/cattle-interpreter.c | 47 ++++++++++++++++++++++++++++++++-
examples/interpreter.c | 64 ++-------------------------------------------
2 files changed, 48 insertions(+), 63 deletions(-)
commit b5fd2b4f1ef98a0ef73043903ba6fa1a479b4c34
Author: Andrea Bolognani
Date: Mon Apr 20 12:24:21 2009 +0200
Move error domains off the top of the page.
docs/reference/cattle-sections.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
commit 829a89bf414bf868cdbdbbb27c7199c26c2d690a
Author: Andrea Bolognani
Date: Mon Apr 20 12:20:17 2009 +0200
Add an error domain for runtime errors.
cattle/cattle-interpreter.c | 19 +++++++++++++++++++
cattle/cattle-interpreter.h | 8 ++++++++
docs/reference/cattle-sections.txt | 3 +++
3 files changed, 30 insertions(+)
commit 80c4e897190e3aa12d72763171ed8dbf9b8a107d
Author: Andrea Bolognani
Date: Sun Apr 19 19:06:11 2009 +0200
Finish the single handler test case. Make it UNIX-only,
because it uses g_test_trap_fork().
tests/interpreter-tests.c | 103 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 100 insertions(+), 3 deletions(-)
commit fdb25320911cd197c0cbbb63689a3312635f0748
Author: Andrea Bolognani
Date: Tue Apr 14 18:58:19 2009 +0200
Add an incomplete test case for the single handler behaviour.
.bzrignore | 1 +
tests/Makefile.am | 7 +++
tests/interpreter-tests.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 125 insertions(+)
commit c7072f5db689124a8ba2850bc7d492458eed8432
Author: Andrea Bolognani
Date: Tue Apr 14 17:15:16 2009 +0200
Use a custom accumulator so only the first handler is called
when a I/O signal is emitted.
cattle/cattle-interpreter.c | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
commit f87149988d6c02d9769301742bea5c527557dbaf
Author: Andrea Bolognani
Date: Mon Apr 13 18:51:54 2009 +0200
Remove CATTLE_PROGRAM_ERROR_UNMATCHED_BRACKET, it is enough
to have a single error code for unbalanced brackets,
.bzrignore | 1 +
cattle/cattle-program.c | 15 ++-------------
cattle/cattle-program.h | 1 -
tests/program-tests.c | 44 --------------------------------------------
4 files changed, 3 insertions(+), 58 deletions(-)
commit 5ad401808f066a224a6a19b42d23979bb699b28a
Author: Andrea Bolognani
Date: Mon Apr 13 17:25:08 2009 +0200
Move the signals to the implementation file.
cattle/cattle-interpreter.c | 68 ++++++++++++++++++++++++---------------------
cattle/cattle-interpreter.h | 9 ------
2 files changed, 36 insertions(+), 41 deletions(-)
commit 71861c908ed956bb149c72e88a8dce185bc1a580
Author: Andrea Bolognani
Date: Mon Apr 13 16:36:33 2009 +0200
Abort early if an error occurs during program load.
cattle/cattle-program.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
commit f328d9d6be36d8c053e212db213b9e147d053daa
Author: Andrea Bolognani
Date: Sun Apr 12 15:55:37 2009 +0200
Correctly handle errors when recursively loading a program.
cattle/cattle-program.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
commit 122d08bdd8d56979810bdaed392dbc307caf3ed0
Author: Andrea Bolognani
Date: Sun Apr 5 19:01:48 2009 +0200
Minor style tweaks.
cattle/cattle-configuration.c | 8 +++++---
cattle/cattle-configuration.h | 9 ++++++---
cattle/cattle-instruction.c | 9 ++++++---
cattle/cattle-instruction.h | 9 ++++++---
cattle/cattle-interpreter.c | 11 +++++++----
cattle/cattle-interpreter.h | 7 +++++--
cattle/cattle-program.c | 8 +++++---
cattle/cattle-program.h | 12 ++++++++----
cattle/cattle-tape.c | 20 +++++++++++---------
cattle/cattle-tape.h | 6 ++++--
10 files changed, 63 insertions(+), 36 deletions(-)
commit 8b5d29b9087a7ff575e0699d45cce102b2bf2049
Author: Andrea Bolognani
Date: Sun Apr 5 18:43:12 2009 +0200
Remove more redundant type checks.
cattle/cattle-interpreter.c | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
commit 1459850609cf767d78992b3a58f29904635df176
Author: Andrea Bolognani
Date: Sun Apr 5 16:48:11 2009 +0200
Add an extra assertion.
tests/references-tests.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
commit 861587b35a937596ca7d01d2e8f6f27a04132f79
Author: Andrea Bolognani
Date: Sun Apr 5 16:30:26 2009 +0200
Remove some redundant type checks.
cattle/cattle-instruction.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
commit 94e179a29a43b11c476261f2dcc98298692ff682
Author: Andrea Bolognani
Date: Sun Apr 5 14:18:29 2009 +0200
Unref objects when they are no longer needed.
tests/program-tests.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
commit 00fb263f6a14c2e680e98a6cf544cc762c50ff72
Author: Andrea Bolognani
Date: Sun Feb 22 23:52:45 2009 +0100
Return immediately on I/O signal handler failure.
cattle/cattle-interpreter.c | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
commit eaefda65edd891615b002a6d6a0a632113aa0934
Author: Andrea Bolognani
Date: Mon Feb 16 10:04:46 2009 +0100
Update the required GLib version in the INSTALL file.
INSTALL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 1a518234c0548cfe84df0b02bf1f855e1feef956
Author: Andrea Bolognani
Date: Mon Feb 16 10:03:01 2009 +0100
Better reference handling during program load.
cattle/cattle-program.c | 6 +++++-
tests/references-tests.c | 3 ++-
2 files changed, 7 insertions(+), 2 deletions(-)
commit cb9bbef9ab1a285e21d4733e0309a42157b09bbc
Author: Andrea Bolognani
Date: Mon Feb 16 09:43:41 2009 +0100
Improve debug output for non-printable chars.
examples/interpreter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 1c0d3425936637617675e252a977644065e0f2f6
Author: Andrea Bolognani
Date: Mon Feb 16 09:34:24 2009 +0100
Make a copy of the input of a CattleProgram before returning it.
cattle/cattle-interpreter.c | 11 ++++++++---
cattle/cattle-program.c | 8 ++++----
cattle/cattle-program.h | 2 +-
3 files changed, 13 insertions(+), 8 deletions(-)
commit c15f1b8dca5057cb87ad4ac6ffd97c76bd3d62ed
Author: Andrea Bolognani
Date: Mon Feb 16 09:17:12 2009 +0100
Moved configure.in to configure.ac, bumped version number to
0.9.3, and increased GLib required version to 2.16 (needed
for GTest).
configure.in => configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 78c9cd918d13c97b8828bcf95f5f25fd911d387e
Author: Andrea Bolognani