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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d3fa7d3a1b922bb9896e01e72d120241bf45af9e
4
- data.tar.gz: 59d62d402059410cc60537316d74fbdb885f0df8
2
+ SHA256:
3
+ metadata.gz: 43712bea8ef41a3c8ad505b3e62f6bbaccbc49abc59e65ac06b5b44ef8a27362
4
+ data.tar.gz: e309be311504639c49ba215866e77d7ac43a6ca7d573f279f4702f8475c38f76
5
5
  SHA512:
6
- metadata.gz: 45f872c0b249b174267ebfe998b09fe54979c74fde293d0701ce4006ccaa11a534f996d03452ac8c47c6598a7e4ec2f97c972d381e101d4a4bbaf18eab25ca83
7
- data.tar.gz: b28567344263130cd777c5b3d3b3ae323284a59b93537b68f6262107f5f7c00f3f92dae904d6925e6d9fb3d45b6f308a9dc65b65ab2a239e7f8059511c5b07a3
6
+ metadata.gz: aeb80123bdfd0223a9998a00d55c92a82ecc16aaa8a58165c55f3b6eacd8bdd77cd2bebaba01b740a13ee581895f9d2ecc5950ebb6b429a82132921021291053
7
+ data.tar.gz: c903b0272b735d155516af736571f46d058cf9d54ff9af411a45278c25416e1be413fd3118fed344c08ecef827f59c96ca09cc1645e5f3bbe3ee0928796632e9
data/.gitignore CHANGED
@@ -3,6 +3,8 @@
3
3
  /ext/Makefile
4
4
  /ext/*.bundle
5
5
  /ext/*.o
6
+ /ext/*.so
6
7
  /ext/yylex.c
8
+ /lib/cast/cast.so
7
9
  /lib/cast/c.tab.rb
8
10
  /lib/cast/cast.bundle
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
@@ -1,6 +1,8 @@
1
1
  require 'ritual'
2
2
  require 'rake/testtask'
3
3
 
4
+ task default: :test
5
+
4
6
  Rake::TestTask.new(test: [:ext, 'lib/cast/c.tab.rb']) do |t|
5
7
  t.libs << "test"
6
8
  t.test_files = FileList['test/*_test.rb']
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"));