From 2fbd82e27e1ee70e95f00cdefdad82ce0e283a37 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Sun, 4 Aug 2013 12:22:44 +0000 Subject: [PATCH] Add alternate version of 9 digit (lower horizontal segment not set). Reported by Tim Fardell. Bump version number to 2.14.0 for this new feature. --- defines.h | 3 ++- ssocr.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defines.h b/defines.h index 5c38d09..faa6d69 100644 --- a/defines.h +++ b/defines.h @@ -20,7 +20,7 @@ #define SSOCR2_DEFINES_H /* version number */ -#define VERSION "2.13.4" +#define VERSION "2.14.0" /* states */ #define FIND_DARK 0 @@ -63,6 +63,7 @@ #define D_ALTSEVEN (VERT_LEFT_UP | D_SEVEN) #define D_EIGHT ALL_SEGS #define D_NINE (ALL_SEGS & ~VERT_LEFT_DOWN) +#define D_ALTNINE (ALL_SEGS & ~(VERT_LEFT_DOWN | HORIZ_DOWN)) #define D_DECIMAL DECIMAL #define D_HEX_A (ALL_SEGS & ~HORIZ_DOWN) #define D_HEX_b (ALL_SEGS & ~(HORIZ_UP | VERT_RIGHT_UP)) diff --git a/ssocr.c b/ssocr.c index 7cbb96c..847e1c9 100644 --- a/ssocr.c +++ b/ssocr.c @@ -1176,7 +1176,8 @@ int main(int argc, char **argv) case D_SEVEN: /* fallthrough */ case D_ALTSEVEN: putchar('7'); break; case D_EIGHT: putchar('8'); break; - case D_NINE: putchar('9'); break; + case D_NINE: /* fallthrough */ + case D_ALTNINE: putchar('9'); break; case D_DECIMAL: putchar('.'); break; case D_HEX_A: putchar('a'); break; case D_HEX_b: putchar('b'); break;