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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a482c6d06757896511681393e99f986552e02fd6735e55cf0f665a6543a058e
4
- data.tar.gz: adc56e6fd1359cdfdd955f2262ecc18376c0d6a822d0476a713fe3cccb468991
3
+ metadata.gz: 6c54bac8ad376e4a911d439f854e623410a262272dd05d9cbc2e45082fe9a3d9
4
+ data.tar.gz: 3b52badba8bf97c3ca940daf4f625cc5f93351a072f30817477092b92d38dcc9
5
5
  SHA512:
6
- metadata.gz: 8d244073c29884550875767cedbb065b760d1d690e51558f67429fe3516665e2ab5758298d3aaed68f5e1242c7a116afa00578cf7d89d067ab681eb3a08d1472
7
- data.tar.gz: c2e1999790db93a98d6a5d65ea3f9a8ff1010e49fc678f5baba006f0af61f24123f05bfecc08649dbd13bdbe58198da855d9584bf0c42bd1b5b5217422c4a92e
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
@@ -24,7 +24,7 @@
24
24
  # end
25
25
  #
26
26
  class RDiscount
27
- VERSION = '2.2.7.4'
27
+ VERSION = '2.2.7.5'
28
28
 
29
29
  # Original Markdown formatted text.
30
30
  attr_reader :text
data/rdiscount.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdiscount'
3
- s.version = '2.2.7.4'
3
+ s.version = '2.2.7.5'
4
4
  s.summary = "Fast Implementation of Gruber's Markdown in C"
5
5
  s.email = 'david@dafoster.net'
6
6
  s.homepage = 'http://dafoster.net/projects/rdiscount/'
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
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-02 00:00:00.000000000 Z
14
+ date: 2026-04-27 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  email: david@dafoster.net
17
17
  executables: