sizes 1.1.0 → 1.1.1
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/VERSION +1 -1
- data/ext/sizes/sizes.c +12 -0
- data/sizes.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/ext/sizes/sizes.c
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
#include "ruby.h"
|
2
2
|
|
3
|
+
#if HAVE_STDDEF_H
|
4
|
+
#include <stddef.h>
|
5
|
+
#endif
|
6
|
+
|
7
|
+
#if HAVE_STDLIB_H
|
8
|
+
#include <stdlib.h>
|
9
|
+
#endif
|
10
|
+
|
11
|
+
#if HAVE_INTTYPES_H
|
12
|
+
#include <inttypes.h>
|
13
|
+
#endif
|
14
|
+
|
3
15
|
/* I almost wonder if I should have just generated this file with Ruby. Ah, well... */
|
4
16
|
|
5
17
|
static VALUE sizeof_char(VALUE self) { return INT2FIX(sizeof(char)); }
|
data/sizes.gemspec
CHANGED