prometheus-client-mmap 0.7.0.beta31 → 0.7.0.beta32
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 +4 -4
- data/ext/fast_mmaped_file/fast_mmaped_file.c +11 -4
- data/lib/fast_mmaped_file.bundle +0 -0
- data/lib/prometheus/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 668eeb5bd066bb7495b10016c900f346c5826ffb
|
4
|
+
data.tar.gz: 9598055345b26e3d67bcaa251353740b456ca061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c925441a2a99af473762ba79e83cff1ef109b1e3445726b75b1fe72fc66ceb1072cae5efd89a3eca93b95a43cfba7db8147da53bd938d5a9b734addab2bdd13
|
7
|
+
data.tar.gz: 0adac7c568db0af448674d293dc95b3b44ac20c3ade3ebc5b477e82a0ef5522cff96696dab1f060c1a9122d3f67ab8c685ab40bbbfcf6fecbf02ab7724db19e9
|
@@ -7,6 +7,15 @@
|
|
7
7
|
|
8
8
|
#include "mmap.h"
|
9
9
|
|
10
|
+
#ifdef UNUSED
|
11
|
+
#elif defined(__GNUC__)
|
12
|
+
#define UNUSED(x) UNUSED_ ## x __attribute__((unused))
|
13
|
+
#elif defined(__LCLINT__)
|
14
|
+
#define UNUSED(x) /*@unused@*/ x
|
15
|
+
#else
|
16
|
+
#define UNUSED(x) x
|
17
|
+
#endif
|
18
|
+
|
10
19
|
VALUE MMAPED_FILE = Qnil;
|
11
20
|
|
12
21
|
#define START_POSITION 8
|
@@ -184,16 +193,14 @@ VALUE fast_json_parse(char* json, size_t json_size){
|
|
184
193
|
}
|
185
194
|
|
186
195
|
|
187
|
-
VALUE method_fast_json_parse(VALUE self, VALUE source){
|
196
|
+
VALUE method_fast_json_parse(VALUE UNUSED(self), VALUE source){
|
188
197
|
Check_Type(source, T_STRING);
|
189
|
-
NIL_P(self);
|
190
198
|
|
191
199
|
return fast_json_parse(StringValuePtr(source), RSTRING_LEN(source));
|
192
200
|
}
|
193
201
|
|
194
|
-
VALUE method_fast_entries(VALUE self, VALUE _data){
|
202
|
+
VALUE method_fast_entries(VALUE UNUSED(self), VALUE _data){
|
195
203
|
Check_Type(_data, T_STRING);
|
196
|
-
NIL_P(self);
|
197
204
|
|
198
205
|
char *data = StringValuePtr(_data);
|
199
206
|
uint64_t data_len = RSTRING_LEN(_data);
|
data/lib/fast_mmaped_file.bundle
CHANGED
Binary file
|