cast 0.3.0 → 0.4.0
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.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/CHANGELOG +12 -0
- data/Rakefile +2 -0
- data/ext/cast.h +1 -0
- data/ext/parser.c +2 -0
- data/ext/yylex.c +4346 -5767
- data/ext/yylex.re +3 -0
- data/lib/cast/c.tab.rb +2070 -1415
- data/lib/cast/c.y +12 -3
- data/lib/cast/node.rb +0 -14
- data/lib/cast/node_list.rb +0 -33
- data/lib/cast/preprocessor.rb +4 -2
- data/lib/cast/version.rb +1 -1
- data/lib/cast.rb +1 -0
- data/test/c_nodes_test.rb +2 -2
- data/test/node_list_test.rb +1 -1
- data/test/parse_test.rb +3 -1
- data/test/parser_test.rb +60 -0
- data/test/preprocessor_test.rb +2 -2
- data/test/test_helper.rb +0 -6
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 43712bea8ef41a3c8ad505b3e62f6bbaccbc49abc59e65ac06b5b44ef8a27362
|
4
|
+
data.tar.gz: e309be311504639c49ba215866e77d7ac43a6ca7d573f279f4702f8475c38f76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeb80123bdfd0223a9998a00d55c92a82ecc16aaa8a58165c55f3b6eacd8bdd77cd2bebaba01b740a13ee581895f9d2ecc5950ebb6b429a82132921021291053
|
7
|
+
data.tar.gz: c903b0272b735d155516af736571f46d058cf9d54ff9af411a45278c25416e1be413fd3118fed344c08ecef827f59c96ca09cc1645e5f3bbe3ee0928796632e9
|
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
== 0.4.0 2025-01-19
|
2
|
+
|
3
|
+
* Add support for GCC's __extension__ keyword. [Alex Dowad]
|
4
|
+
* Preprocessor creates temp file in system temp directory, not same directory
|
5
|
+
as source file. [Patrick Plenefisch]
|
6
|
+
* Fix potential preprocessing error due to race condition. [Brice Videau]
|
7
|
+
* Remove #assert_invariants methods. [Anatoly Chernov]
|
8
|
+
|
9
|
+
== 0.3.1 2020-07-15
|
10
|
+
|
11
|
+
* Support struct/union member declarations with no declarators. [Brice Videau]
|
12
|
+
|
1
13
|
== 0.3.0 2016-03-21
|
2
14
|
|
3
15
|
* Fix popping & shifting from an empty NodeList.
|
data/Rakefile
CHANGED
data/ext/cast.h
CHANGED
@@ -84,6 +84,7 @@ extern VALUE cast_sym_RESTRICT;
|
|
84
84
|
extern VALUE cast_sym_BOOL;
|
85
85
|
extern VALUE cast_sym_COMPLEX;
|
86
86
|
extern VALUE cast_sym_IMAGINARY;
|
87
|
+
extern VALUE cast_sym_EXTENSION; /* GCC extension: __extension__ */
|
87
88
|
|
88
89
|
extern VALUE cast_sym_FCON;
|
89
90
|
extern VALUE cast_sym_ICON;
|
data/ext/parser.c
CHANGED
@@ -45,6 +45,7 @@ VALUE cast_sym_RESTRICT;
|
|
45
45
|
VALUE cast_sym_BOOL;
|
46
46
|
VALUE cast_sym_COMPLEX;
|
47
47
|
VALUE cast_sym_IMAGINARY;
|
48
|
+
VALUE cast_sym_EXTENSION; /* GCC extension: __extension__ */
|
48
49
|
|
49
50
|
VALUE cast_sym_FCON;
|
50
51
|
VALUE cast_sym_ICON;
|
@@ -229,6 +230,7 @@ void cast_init_parser(void) {
|
|
229
230
|
cast_sym_BOOL = ID2SYM(rb_intern("BOOL"));
|
230
231
|
cast_sym_COMPLEX = ID2SYM(rb_intern("COMPLEX"));
|
231
232
|
cast_sym_IMAGINARY = ID2SYM(rb_intern("IMAGINARY"));
|
233
|
+
cast_sym_EXTENSION = ID2SYM(rb_intern("EXTENSION")); /* GCC extension: __extension__ */
|
232
234
|
|
233
235
|
cast_sym_FCON = ID2SYM(rb_intern("FCON"));
|
234
236
|
cast_sym_ICON = ID2SYM(rb_intern("ICON"));
|