From 6c76ee16e1d4f1057ce37166001e95a87c5acb39 Mon Sep 17 00:00:00 2001 From: Timo Savinen Date: Sun, 5 Nov 2006 12:05:17 +0000 Subject: 0.2.2 --- src/bbe.c | 3 ++- src/buffer.c | 2 +- src/execute.c | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bbe.c b/src/bbe.c index 39505a8..a91e4be 100644 --- a/src/bbe.c +++ b/src/bbe.c @@ -75,7 +75,7 @@ char *convert_strings[] = { #define BLOCK_START_COMMANDS "DIJLFBN>" /* commands to be executed for each byte */ -#define BYTE_COMMANDS "acdirsywjpl&|^~uf" +#define BYTE_COMMANDS "acdirsywjpl&|^~ufx" /* commands to be executed at end of buffer */ #define BLOCK_END_COMMANDS "A<" @@ -575,6 +575,7 @@ parse_command(char *command_string) if(new->s1_len != 1) panic("Error in command",command_string,NULL); break; case '~': + case 'x': if(i != 1 || strlen(token[0]) > 1) panic("Error in command",command_string,NULL); break; case 'u': diff --git a/src/buffer.c b/src/buffer.c index 99d0ee6..f7163ba 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -20,7 +20,7 @@ * */ -/* $Id: buffer.c,v 1.36 2006-10-24 16:50:54 timo Exp $ */ +/* $Id: buffer.c,v 1.37 2006-11-02 17:11:36 timo Exp $ */ #include "bbe.h" #include diff --git a/src/execute.c b/src/execute.c index 79891cd..826bb25 100644 --- a/src/execute.c +++ b/src/execute.c @@ -438,6 +438,9 @@ execute_commands(struct command_list *c) break; case 'w': break; + case 'x': + put_byte(((*out_buffer.write_pos << 4) & 0xf0) | ((*out_buffer.write_pos >> 4) & 0x0f)); + break; } c = c->next; } -- cgit v1.2.3