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;