Skip to content

Commit 1d6233b

Browse files
committed
fix build with c99
see #104
1 parent 8bdb145 commit 1d6233b

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

ChangeLog

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
started 8.9.1 15/2/23
2+
- fix build with --std=c99 [Schamschula]
3+
14
started 8.9.0 10/4/20
25
- add find_trim
36

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Process this file with autoconf to produce a configure script.
22

3-
AC_INIT([nip2], [8.9.0], [[email protected]])
3+
AC_INIT([nip2], [8.9.1], [[email protected]])
44

55
# foreign stops complaints about a missing README (we use README.md instead)
66
# and missing INSTALL (the standard Gnu INSTALL is not very useful)
@@ -17,7 +17,7 @@ dnl
1717

1818
m4_define([nip_major_version], [8])
1919
m4_define([nip_minor_version], [9])
20-
m4_define([nip_micro_version], [0])
20+
m4_define([nip_micro_version], [1])
2121
m4_define([nip_version],
2222
[nip_major_version.nip_minor_version.nip_micro_version])
2323

src/compile.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ compile_graph( Compile *compile, ParseNode *pn, PElement *out )
815815
break;
816816

817817
case PARSE_CONST_BOOL:
818-
PEPUTP( out, ELEMENT_BOOL, pn->con.val.boolean );
818+
PEPUTP( out, ELEMENT_BOOL, pn->con.val.bol );
819819
break;
820820

821821
case PARSE_CONST_ELIST:
@@ -2523,7 +2523,7 @@ compile_pattern_condition( Compile *compile,
25232523
int i;
25242524

25252525
n.type = PARSE_CONST_BOOL;
2526-
n.val.boolean = TRUE;
2526+
n.val.bol = TRUE;
25272527
node = tree_const_new( compile, n );
25282528

25292529
for( i = depth - 1; i >= 0; i-- ) {

src/lex.l

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ TRUE {
207207
BEGIN BINARY;
208208

209209
yylval.yy_const.type = PARSE_CONST_BOOL;
210-
yylval.yy_const.val.boolean = TRUE;
210+
yylval.yy_const.val.bol = TRUE;
211211

212212
return( TK_CONST );
213213
}
@@ -216,7 +216,7 @@ FALSE {
216216
BEGIN BINARY;
217217

218218
yylval.yy_const.type = PARSE_CONST_BOOL;
219-
yylval.yy_const.val.boolean = FALSE;
219+
yylval.yy_const.val.bol = FALSE;
220220

221221
return( TK_CONST );
222222
}

src/tree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct _ParseConst {
126126
union {
127127
double num;
128128
char *str;
129-
gboolean boolean;
129+
gboolean bol;
130130
int ch;
131131
} val;
132132
};

0 commit comments

Comments
 (0)