bool 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/bool_ext/lexer.c +26 -20
- data/ext/bool_ext/lexer.h +9 -5
- metadata +3 -3
data/ext/bool_ext/lexer.c
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#define FLEX_SCANNER
|
10
10
|
#define YY_FLEX_MAJOR_VERSION 2
|
11
11
|
#define YY_FLEX_MINOR_VERSION 5
|
12
|
-
#define YY_FLEX_SUBMINOR_VERSION
|
12
|
+
#define YY_FLEX_SUBMINOR_VERSION 37
|
13
13
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
14
14
|
#define FLEX_BETA
|
15
15
|
#endif
|
@@ -47,7 +47,6 @@ typedef int16_t flex_int16_t;
|
|
47
47
|
typedef uint16_t flex_uint16_t;
|
48
48
|
typedef int32_t flex_int32_t;
|
49
49
|
typedef uint32_t flex_uint32_t;
|
50
|
-
typedef uint64_t flex_uint64_t;
|
51
50
|
#else
|
52
51
|
typedef signed char flex_int8_t;
|
53
52
|
typedef short int flex_int16_t;
|
@@ -55,7 +54,6 @@ typedef int flex_int32_t;
|
|
55
54
|
typedef unsigned char flex_uint8_t;
|
56
55
|
typedef unsigned short int flex_uint16_t;
|
57
56
|
typedef unsigned int flex_uint32_t;
|
58
|
-
#endif /* ! C99 */
|
59
57
|
|
60
58
|
/* Limits of integral types. */
|
61
59
|
#ifndef INT8_MIN
|
@@ -86,6 +84,8 @@ typedef unsigned int flex_uint32_t;
|
|
86
84
|
#define UINT32_MAX (4294967295U)
|
87
85
|
#endif
|
88
86
|
|
87
|
+
#endif /* ! C99 */
|
88
|
+
|
89
89
|
#endif /* ! FLEXINT_H */
|
90
90
|
|
91
91
|
#ifdef __cplusplus
|
@@ -189,7 +189,7 @@ typedef size_t yy_size_t;
|
|
189
189
|
*/
|
190
190
|
#define YY_LESS_LINENO(n) \
|
191
191
|
do { \
|
192
|
-
|
192
|
+
int yyl;\
|
193
193
|
for ( yyl = n; yyl < yyleng; ++yyl )\
|
194
194
|
if ( yytext[yyl] == '\n' )\
|
195
195
|
--yylineno;\
|
@@ -339,7 +339,7 @@ void yyfree (void * ,yyscan_t yyscanner );
|
|
339
339
|
|
340
340
|
/* Begin user sect3 */
|
341
341
|
|
342
|
-
#define yywrap(
|
342
|
+
#define yywrap(yyscanner) 1
|
343
343
|
#define YY_SKIP_YYWRAP
|
344
344
|
|
345
345
|
typedef unsigned char YY_CHAR;
|
@@ -358,7 +358,7 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
|
|
358
358
|
*/
|
359
359
|
#define YY_DO_BEFORE_ACTION \
|
360
360
|
yyg->yytext_ptr = yy_bp; \
|
361
|
-
yyleng = (
|
361
|
+
yyleng = (size_t) (yy_cp - yy_bp); \
|
362
362
|
yyg->yy_hold_char = *yy_cp; \
|
363
363
|
*yy_cp = '\0'; \
|
364
364
|
yyg->yy_c_buf_p = yy_cp;
|
@@ -559,6 +559,10 @@ int yyget_lineno (yyscan_t yyscanner );
|
|
559
559
|
|
560
560
|
void yyset_lineno (int line_number ,yyscan_t yyscanner );
|
561
561
|
|
562
|
+
int yyget_column (yyscan_t yyscanner );
|
563
|
+
|
564
|
+
void yyset_column (int column_no ,yyscan_t yyscanner );
|
565
|
+
|
562
566
|
YYSTYPE * yyget_lval (yyscan_t yyscanner );
|
563
567
|
|
564
568
|
void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
|
@@ -607,7 +611,7 @@ static int input (yyscan_t yyscanner );
|
|
607
611
|
/* This used to be an fputs(), but since the string might contain NUL's,
|
608
612
|
* we now use fwrite().
|
609
613
|
*/
|
610
|
-
#define ECHO fwrite( yytext, yyleng, 1, yyout )
|
614
|
+
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
|
611
615
|
#endif
|
612
616
|
|
613
617
|
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
@@ -618,7 +622,7 @@ static int input (yyscan_t yyscanner );
|
|
618
622
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
619
623
|
{ \
|
620
624
|
int c = '*'; \
|
621
|
-
|
625
|
+
size_t n; \
|
622
626
|
for ( n = 0; n < max_size && \
|
623
627
|
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
624
628
|
buf[n] = (char) c; \
|
@@ -706,7 +710,7 @@ YY_DECL
|
|
706
710
|
#line 20 "lexer.l"
|
707
711
|
|
708
712
|
|
709
|
-
#line
|
713
|
+
#line 714 "lexer.c"
|
710
714
|
|
711
715
|
yylval = yylval_param;
|
712
716
|
|
@@ -780,8 +784,8 @@ yy_find_action:
|
|
780
784
|
|
781
785
|
if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
|
782
786
|
{
|
783
|
-
|
784
|
-
for ( yyl = 0; yyl < yyleng; ++yyl )
|
787
|
+
int yyl;
|
788
|
+
for ( yyl = 0; yyl < (int)yyleng; ++yyl )
|
785
789
|
if ( yytext[yyl] == '\n' )
|
786
790
|
|
787
791
|
do{ yylineno++;
|
@@ -852,7 +856,7 @@ YY_RULE_SETUP
|
|
852
856
|
#line 32 "lexer.l"
|
853
857
|
ECHO;
|
854
858
|
YY_BREAK
|
855
|
-
#line
|
859
|
+
#line 860 "lexer.c"
|
856
860
|
case YY_STATE_EOF(INITIAL):
|
857
861
|
yyterminate();
|
858
862
|
|
@@ -1047,7 +1051,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1047
1051
|
{ /* Not enough room in the buffer - grow it. */
|
1048
1052
|
|
1049
1053
|
/* just a shorter name for the current buffer */
|
1050
|
-
YY_BUFFER_STATE b =
|
1054
|
+
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
|
1051
1055
|
|
1052
1056
|
int yy_c_buf_p_offset =
|
1053
1057
|
(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
|
@@ -1182,6 +1186,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1182
1186
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
1183
1187
|
yy_is_jam = (yy_current_state == 17);
|
1184
1188
|
|
1189
|
+
(void)yyg;
|
1185
1190
|
return yy_is_jam ? 0 : yy_current_state;
|
1186
1191
|
}
|
1187
1192
|
|
@@ -1234,7 +1239,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1234
1239
|
case EOB_ACT_END_OF_FILE:
|
1235
1240
|
{
|
1236
1241
|
if ( yywrap(yyscanner ) )
|
1237
|
-
return
|
1242
|
+
return EOF;
|
1238
1243
|
|
1239
1244
|
if ( ! yyg->yy_did_buffer_switch_on_eof )
|
1240
1245
|
YY_NEW_FILE;
|
@@ -1590,8 +1595,8 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
|
|
1590
1595
|
|
1591
1596
|
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
|
1592
1597
|
* scan from a @e copy of @a bytes.
|
1593
|
-
* @param
|
1594
|
-
* @param
|
1598
|
+
* @param yybytes the byte buffer to scan
|
1599
|
+
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
|
1595
1600
|
* @param yyscanner The scanner object.
|
1596
1601
|
* @return the newly allocated buffer state object.
|
1597
1602
|
*/
|
@@ -1599,7 +1604,8 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
|
|
1599
1604
|
{
|
1600
1605
|
YY_BUFFER_STATE b;
|
1601
1606
|
char *buf;
|
1602
|
-
yy_size_t n
|
1607
|
+
yy_size_t n;
|
1608
|
+
int i;
|
1603
1609
|
|
1604
1610
|
/* Get memory for full buffer, including space for trailing EOB's. */
|
1605
1611
|
n = _yybytes_len + 2;
|
@@ -1607,7 +1613,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
|
|
1607
1613
|
if ( ! buf )
|
1608
1614
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|
1609
1615
|
|
1610
|
-
for ( i = 0; i < _yybytes_len; ++i )
|
1616
|
+
for ( i = 0; i < (int)_yybytes_len; ++i )
|
1611
1617
|
buf[i] = yybytes[i];
|
1612
1618
|
|
1613
1619
|
buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
|
@@ -1745,7 +1751,7 @@ void yyset_lineno (int line_number , yyscan_t yyscanner)
|
|
1745
1751
|
|
1746
1752
|
/* lineno is only valid if an input buffer exists. */
|
1747
1753
|
if (! YY_CURRENT_BUFFER )
|
1748
|
-
|
1754
|
+
YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
|
1749
1755
|
|
1750
1756
|
yylineno = line_number;
|
1751
1757
|
}
|
@@ -1760,7 +1766,7 @@ void yyset_column (int column_no , yyscan_t yyscanner)
|
|
1760
1766
|
|
1761
1767
|
/* column is only valid if an input buffer exists. */
|
1762
1768
|
if (! YY_CURRENT_BUFFER )
|
1763
|
-
|
1769
|
+
YY_FATAL_ERROR( "yyset_column called with no buffer" );
|
1764
1770
|
|
1765
1771
|
yycolumn = column_no;
|
1766
1772
|
}
|
data/ext/bool_ext/lexer.h
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
#define FLEX_SCANNER
|
14
14
|
#define YY_FLEX_MAJOR_VERSION 2
|
15
15
|
#define YY_FLEX_MINOR_VERSION 5
|
16
|
-
#define YY_FLEX_SUBMINOR_VERSION
|
16
|
+
#define YY_FLEX_SUBMINOR_VERSION 37
|
17
17
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
18
18
|
#define FLEX_BETA
|
19
19
|
#endif
|
@@ -51,7 +51,6 @@ typedef int16_t flex_int16_t;
|
|
51
51
|
typedef uint16_t flex_uint16_t;
|
52
52
|
typedef int32_t flex_int32_t;
|
53
53
|
typedef uint32_t flex_uint32_t;
|
54
|
-
typedef uint64_t flex_uint64_t;
|
55
54
|
#else
|
56
55
|
typedef signed char flex_int8_t;
|
57
56
|
typedef short int flex_int16_t;
|
@@ -59,7 +58,6 @@ typedef int flex_int32_t;
|
|
59
58
|
typedef unsigned char flex_uint8_t;
|
60
59
|
typedef unsigned short int flex_uint16_t;
|
61
60
|
typedef unsigned int flex_uint32_t;
|
62
|
-
#endif /* ! C99 */
|
63
61
|
|
64
62
|
/* Limits of integral types. */
|
65
63
|
#ifndef INT8_MIN
|
@@ -90,6 +88,8 @@ typedef unsigned int flex_uint32_t;
|
|
90
88
|
#define UINT32_MAX (4294967295U)
|
91
89
|
#endif
|
92
90
|
|
91
|
+
#endif /* ! C99 */
|
92
|
+
|
93
93
|
#endif /* ! FLEXINT_H */
|
94
94
|
|
95
95
|
#ifdef __cplusplus
|
@@ -214,7 +214,7 @@ void yyfree (void * ,yyscan_t yyscanner );
|
|
214
214
|
|
215
215
|
/* Begin user sect3 */
|
216
216
|
|
217
|
-
#define yywrap(
|
217
|
+
#define yywrap(yyscanner) 1
|
218
218
|
#define YY_SKIP_YYWRAP
|
219
219
|
|
220
220
|
#define yytext_ptr yytext_r
|
@@ -269,6 +269,10 @@ int yyget_lineno (yyscan_t yyscanner );
|
|
269
269
|
|
270
270
|
void yyset_lineno (int line_number ,yyscan_t yyscanner );
|
271
271
|
|
272
|
+
int yyget_column (yyscan_t yyscanner );
|
273
|
+
|
274
|
+
void yyset_column (int column_no ,yyscan_t yyscanner );
|
275
|
+
|
272
276
|
YYSTYPE * yyget_lval (yyscan_t yyscanner );
|
273
277
|
|
274
278
|
void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
|
@@ -341,6 +345,6 @@ extern int yylex \
|
|
341
345
|
#line 32 "lexer.l"
|
342
346
|
|
343
347
|
|
344
|
-
#line
|
348
|
+
#line 349 "lexer.h"
|
345
349
|
#undef yyIN_HEADER
|
346
350
|
#endif /* yyHEADER_H */
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 1.8.
|
101
|
+
rubygems_version: 1.8.24
|
102
102
|
signing_key:
|
103
103
|
specification_version: 3
|
104
104
|
summary: Boolean expression evaluator
|