File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#include "./main.auto.h"
2
2
#include <stdio.h>
3
3
4
- #define BOOK ae2f_MAC_KEYWORD "("
4
+ #define BOOK ( ae2f_MAC_KEYWORD "(")
5
5
6
6
#if CMT_REQUIRED
7
7
#define dbg_printf (s , ...) fprintf(stdout, s, __VA_ARGS__)
11
11
#define dbg_puts (s )
12
12
#endif
13
13
14
- #define SZBOOK (sizeof(BOOK) - 1 )
14
+ #define SZBOOK (sizeof(BOOK))
15
15
16
16
char SEE [sizeof (BOOK )] = {
17
17
0 ,
@@ -66,17 +66,17 @@ int main() {
66
66
67
67
puts ("#define __ae2f_MACRO_GENERATED\n\n" );
68
68
while ((c = fgetc (stdin )) != EOF ) {
69
- if (c != 'a' ) {
69
+ if (c != ( BOOK )[ 0 ] ) {
70
70
l = fputc (c , stdout );
71
71
if (l < 0 )
72
72
return 1 ;
73
73
} else {
74
- SEE [0 ] = 'a' ;
74
+ SEE [0 ] = ( BOOK )[ 0 ] ;
75
75
size_t i = 1 ;
76
76
for (; i < SZBOOK ; i ++ ) {
77
77
SEE [i ] = fgetc (stdin );
78
78
79
- if (SEE [i ] != BOOK [i ]) {
79
+ if (SEE [i ] != ( BOOK ) [i ]) {
80
80
SEE [i + 1 ] = 0 ;
81
81
break ;
82
82
}
You can’t perform that action at this time.
0 commit comments