rdiscount 2.2.7.4 → 2.2.7.5
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/CHANGELOG.md +5 -0
- data/ext/generate.c +1 -2
- data/ext/gethopt.c +5 -14
- data/lib/rdiscount.rb +1 -1
- data/rdiscount.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c54bac8ad376e4a911d439f854e623410a262272dd05d9cbc2e45082fe9a3d9
|
|
4
|
+
data.tar.gz: 3b52badba8bf97c3ca940daf4f625cc5f93351a072f30817477092b92d38dcc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59a31a5ea874fdad803a3e58cacee89384e63901efa3308dc4322543c3d49824c4ab0536f88e648d452291b65b45745a4188f6349cbb4b150e716264e4d27167
|
|
7
|
+
data.tar.gz: be291824fe005af1924a78ce6eb7a96274a00e5852cd659d95f3481dc1739361b5fad77d22bf3d8ca8d177249adc88f7f9a3eb4ae7e8bb426285d966dbd71feb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# RDiscount Changelog
|
|
2
2
|
|
|
3
|
+
## Version 2.2.7.5 <small>(April 26, 2026)</small>
|
|
4
|
+
|
|
5
|
+
* Fix build failure in newer compilers that use C23 mode by default,
|
|
6
|
+
such as Clang on macOS.
|
|
7
|
+
|
|
3
8
|
## Version 2.2.7.4 <small>(April 1, 2026)</small>
|
|
4
9
|
|
|
5
10
|
* Fix crash if `to_html` called on a string longer than INT_MAX (2 GiB of text).
|
data/ext/generate.c
CHANGED
|
@@ -631,8 +631,7 @@ printlinkyref(MMIOT *f, linkytype *tag, char *link, int size)
|
|
|
631
631
|
* define a prefix tag instead of just `fn`
|
|
632
632
|
*/
|
|
633
633
|
static char *
|
|
634
|
-
p_or_nothing(p)
|
|
635
|
-
MMIOT *p;
|
|
634
|
+
p_or_nothing(MMIOT *p)
|
|
636
635
|
{
|
|
637
636
|
return p->ref_prefix ? p->ref_prefix : "fn";
|
|
638
637
|
}
|
data/ext/gethopt.c
CHANGED
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
void
|
|
13
|
-
hoptset(ctx, argc, argv)
|
|
14
|
-
struct h_context *ctx;
|
|
15
|
-
int argc;
|
|
16
|
-
char **argv;
|
|
13
|
+
hoptset(struct h_context *ctx, int argc, char **argv)
|
|
17
14
|
{
|
|
18
15
|
memset(ctx, 0, sizeof *ctx);
|
|
19
16
|
ctx->argc = argc;
|
|
@@ -23,22 +20,19 @@ char **argv;
|
|
|
23
20
|
|
|
24
21
|
|
|
25
22
|
char *
|
|
26
|
-
hoptarg(ctx)
|
|
27
|
-
struct h_context *ctx;
|
|
23
|
+
hoptarg(struct h_context *ctx)
|
|
28
24
|
{
|
|
29
25
|
return ctx->optarg;
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
int
|
|
33
|
-
hoptind(ctx)
|
|
34
|
-
struct h_context *ctx;
|
|
29
|
+
hoptind(struct h_context *ctx)
|
|
35
30
|
{
|
|
36
31
|
return ctx->optind;
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
char
|
|
40
|
-
hoptopt(ctx)
|
|
41
|
-
struct h_context *ctx;
|
|
35
|
+
hoptopt(struct h_context *ctx)
|
|
42
36
|
{
|
|
43
37
|
return ctx->optopt;
|
|
44
38
|
}
|
|
@@ -55,10 +49,7 @@ hopterr(struct h_context *ctx, int val)
|
|
|
55
49
|
|
|
56
50
|
|
|
57
51
|
struct h_opt *
|
|
58
|
-
gethopt(ctx, opts, nropts)
|
|
59
|
-
struct h_context *ctx;
|
|
60
|
-
struct h_opt *opts;
|
|
61
|
-
int nropts;
|
|
52
|
+
gethopt(struct h_context *ctx, struct h_opt *opts, int nropts)
|
|
62
53
|
{
|
|
63
54
|
int i;
|
|
64
55
|
int dashes;
|
data/lib/rdiscount.rb
CHANGED
data/rdiscount.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rdiscount
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.7.
|
|
4
|
+
version: 2.2.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Tomayko
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
- l33tname
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2026-04-
|
|
14
|
+
date: 2026-04-27 00:00:00.000000000 Z
|
|
15
15
|
dependencies: []
|
|
16
16
|
email: david@dafoster.net
|
|
17
17
|
executables:
|