@@ -169,9 +169,9 @@ case 2:
169
169
#line 153 "parser.rl"
170
170
{
171
171
char * np ;
172
- json -> parsing_name = 1 ;
172
+ json -> parsing_name = true ;
173
173
np = JSON_parse_string (json , p , pe , & last_name );
174
- json -> parsing_name = 0 ;
174
+ json -> parsing_name = false ;
175
175
if (np == NULL ) { p -- ; {p ++ ; cs = 3 ; goto _out ;} } else {p = (( np ))- 1 ;}
176
176
}
177
177
goto st3 ;
@@ -1816,29 +1816,29 @@ static void parser_init(JSON_Parser *json, VALUE source, VALUE opts)
1816
1816
if (option_given_p (opts , tmp )) {
1817
1817
json -> allow_nan = RTEST (rb_hash_aref (opts , tmp )) ? 1 : 0 ;
1818
1818
} else {
1819
- json -> allow_nan = 0 ;
1819
+ json -> allow_nan = false ;
1820
1820
}
1821
1821
tmp = ID2SYM (i_symbolize_names );
1822
1822
if (option_given_p (opts , tmp )) {
1823
1823
json -> symbolize_names = RTEST (rb_hash_aref (opts , tmp )) ? 1 : 0 ;
1824
1824
} else {
1825
- json -> symbolize_names = 0 ;
1825
+ json -> symbolize_names = false ;
1826
1826
}
1827
1827
tmp = ID2SYM (i_freeze );
1828
1828
if (option_given_p (opts , tmp )) {
1829
1829
json -> freeze = RTEST (rb_hash_aref (opts , tmp )) ? 1 : 0 ;
1830
1830
} else {
1831
- json -> freeze = 0 ;
1831
+ json -> freeze = false ;
1832
1832
}
1833
1833
tmp = ID2SYM (i_create_additions );
1834
1834
if (option_given_p (opts , tmp )) {
1835
1835
tmp = rb_hash_aref (opts , tmp );
1836
1836
if (NIL_P (tmp )) {
1837
- json -> create_additions = 1 ;
1838
- json -> deprecated_create_additions = 1 ;
1837
+ json -> create_additions = true ;
1838
+ json -> deprecated_create_additions = true ;
1839
1839
} else {
1840
1840
json -> create_additions = RTEST (tmp );
1841
- json -> deprecated_create_additions = 0 ;
1841
+ json -> deprecated_create_additions = false ;
1842
1842
}
1843
1843
}
1844
1844
0 commit comments