From dcefa7a144fb35b23d1ca339d58f3b9e58e7faa3 Mon Sep 17 00:00:00 2001 From: Timo Savinen Date: Tue, 15 Nov 2005 18:53:17 +0000 Subject: 0.1.8 --- ChangeLog | 6 +++++ configure | 20 +++++++------- configure.ac | 2 +- doc/bbe.1 | 30 ++++++++++++++------- doc/bbe.html | 35 +++++++++++++++---------- doc/bbe.info | 63 ++++++++++++++++++++++++++++----------------- doc/bbe.texi | 43 ++++++++++++++++++++----------- src/bbe.c | 25 ++++++++++++------ src/bbe.h | 10 +------ src/buffer.c | 44 +++++-------------------------- src/execute.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 11 files changed, 231 insertions(+), 130 deletions(-) diff --git a/ChangeLog b/ChangeLog index 626d962..a6f2b47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-15 Timo Savinen + + * Version 0.1.8 + * block commands < and > added + * block initialize commands u and f added + 2005-11-08 Timo Savinen * Version 0.1.7 diff --git a/configure b/configure index 9119616..26f245d 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for bbe 0.1.7. +# Generated by GNU Autoconf 2.59 for bbe 0.1.8. # # Report bugs to . # @@ -269,8 +269,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='bbe' PACKAGE_TARNAME='bbe' -PACKAGE_VERSION='0.1.7' -PACKAGE_STRING='bbe 0.1.7' +PACKAGE_VERSION='0.1.8' +PACKAGE_STRING='bbe 0.1.8' PACKAGE_BUGREPORT='tjsa@iki.fi' ac_unique_file="src/bbe.c" @@ -780,7 +780,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures bbe 0.1.7 to adapt to many kinds of systems. +\`configure' configures bbe 0.1.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -846,7 +846,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of bbe 0.1.7:";; + short | recursive ) echo "Configuration of bbe 0.1.8:";; esac cat <<\_ACEOF @@ -965,7 +965,7 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -bbe configure 0.1.7 +bbe configure 0.1.8 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. @@ -979,7 +979,7 @@ cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by bbe $as_me 0.1.7, which was +It was created by bbe $as_me 0.1.8, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1623,7 +1623,7 @@ fi # Define the identity of the package. PACKAGE='bbe' - VERSION='0.1.7' + VERSION='0.1.8' cat >>confdefs.h <<_ACEOF @@ -4660,7 +4660,7 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by bbe $as_me 0.1.7, which was +This file was extended by bbe $as_me 0.1.8, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4723,7 +4723,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -bbe config.status 0.1.7 +bbe config.status 0.1.8 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" diff --git a/configure.ac b/configure.ac index 886c6bd..6bf754f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(bbe, 0.1.7, tjsa@iki.fi) +AC_INIT(bbe, 0.1.8, tjsa@iki.fi) AC_CONFIG_SRCDIR(src/bbe.c) AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE diff --git a/doc/bbe.1 b/doc/bbe.1 index 64c67c0..2ce819c 100644 --- a/doc/bbe.1 +++ b/doc/bbe.1 @@ -25,7 +25,7 @@ .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) -.TH "BBE" "1" "2005-10-20" "" "" +.TH "BBE" "1" "2005-11-13" "" "" .SH "NAME" bbe \- binary block editor .SH "SYNOPSIS" @@ -127,6 +127,12 @@ Before printing a block, the input stream offset at the begining of the block is B \fIf\fR Before printing a block, the block number is printed (first block == 1) \fIf\fR can be H, D or O for Hexadecimal, Decimal or Octal format of block number. +.TP +> \fIfile\fR +Before printing a block, the contents of file \fIfile\fR is printed. +.TP +< \fIfile\fR +After printing a block, the contents of file \fIfile\fR is printed. .LP \fBByte commands\fR .TP @@ -170,21 +176,27 @@ w \fIfile\fR Write bytes from the current block to file \fIfile\fR. Commands before w\-command have effect to what will be written. %B or %nB in \fIfile\fR will be replaced by current block number. n in %nB is field length, leading zero in n causes the block number to be left padded with zeroes. .TP -& \fIbyte\fR -Performs binary and with \fIbyte\fR. +& \fIc\fR +Performs binary and with \fIc\fR. .TP -| \fIbyte\fR -Performs binary or with \fIbyte\fR. +| \fIc\fR +Performs binary or with \fIc\fR. .TP -^ \fIbyte\fR -Performs binary xor with \fIbyte\fR. +^ \fIc\fR +Performs binary xor with \fIc\fR. .TP ~ Performs binary negation. +.TP +u \fIn\fR \fIc\fR +All bytes from start of the block to offset \fIn\fR are replaced by \fIc\fR. +.TP +f \fIn\fR \fIc\fR +All bytes starting from offset \fIn\fR to end of the block are replaced by \fIc\fR. .LP Nonvisible characters in strings can be escaped same way as in block definition strings. Character '/' in s and y commands can be any visible character. .LP -Note that the D, A, I, F, B, c, s, i, y, p and d commands cause the length of input and output streams to be different. +Note that the D, A, I, F, B, c, s, i, y, p, <, > and d commands cause the length of input and output streams to be different. .SH "EXAMPLES" .TP @@ -203,4 +215,4 @@ Blocks between strings "\\x2f\\x34\\x6a" and "\\xff\\xff" are written to file /t .BR sed (1). .SH "AUTHOR" -Timo Savinen . +Timo Savinen diff --git a/doc/bbe.html b/doc/bbe.html index 0066ea9..1c3505f 100644 --- a/doc/bbe.html +++ b/doc/bbe.html @@ -7,7 +7,7 @@