rmultimarkdown 6.4.0.3 → 6.7.0.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 +5 -5
- data/Rakefile +7 -13
- data/ext/Makefile +67 -55
- data/ext/extconf.rb +8 -6
- data/ext/mmd/aho-corasick.c +8 -8
- data/ext/mmd/aho-corasick.h +3 -3
- data/ext/mmd/argtable3.c +6537 -0
- data/ext/mmd/argtable3.h +273 -0
- data/ext/mmd/beamer.c +12 -1
- data/ext/mmd/char.c +120 -27
- data/ext/mmd/char.h +23 -23
- data/ext/mmd/critic_markup.c +7 -6
- data/ext/mmd/d_string.c +88 -32
- data/ext/mmd/{include/d_string.h → d_string.h} +50 -38
- data/ext/mmd/epub.c +36 -12
- data/ext/mmd/epub.h +2 -2
- data/ext/mmd/file.c +50 -40
- data/ext/mmd/file.h +2 -2
- data/ext/mmd/html.c +164 -99
- data/ext/mmd/html.h +3 -2
- data/ext/mmd/i18n.h +15 -11
- data/ext/mmd/itmz-lexer.c +16978 -0
- data/ext/mmd/itmz-lexer.h +132 -0
- data/ext/mmd/itmz-parser.c +1189 -0
- data/ext/mmd/itmz-parser.h +11 -0
- data/ext/mmd/itmz-reader.c +388 -0
- data/ext/mmd/itmz-reader.h +111 -0
- data/ext/mmd/itmz.c +567 -0
- data/ext/mmd/itmz.h +117 -0
- data/ext/mmd/latex.c +93 -41
- data/ext/mmd/lexer.c +3506 -2774
- data/ext/mmd/{include/libMultiMarkdown.h → libMultiMarkdown.h} +49 -2
- data/ext/mmd/main.c +612 -0
- data/ext/mmd/memoir.c +4 -1
- data/ext/mmd/miniz.c +6905 -6680
- data/ext/mmd/miniz.h +456 -476
- data/ext/mmd/mmd.c +399 -94
- data/ext/mmd/mmd.h +25 -25
- data/ext/mmd/object_pool.h +3 -3
- data/ext/mmd/opendocument-content.c +137 -69
- data/ext/mmd/opendocument-content.h +2 -2
- data/ext/mmd/opendocument.c +35 -14
- data/ext/mmd/opendocument.h +2 -2
- data/ext/mmd/opml-lexer.c +259 -637
- data/ext/mmd/opml-lexer.h +1 -17
- data/ext/mmd/opml-parser.c +194 -188
- data/ext/mmd/opml-reader.c +72 -142
- data/ext/mmd/opml-reader.h +1 -1
- data/ext/mmd/opml.c +13 -13
- data/ext/mmd/opml.h +1 -1
- data/ext/mmd/parser.c +1623 -1244
- data/ext/mmd/rng.c +8 -3
- data/ext/mmd/scanners.c +66625 -103198
- data/ext/mmd/scanners.h +1 -0
- data/ext/mmd/stack.c +62 -20
- data/ext/mmd/stack.h +10 -21
- data/ext/mmd/textbundle.c +23 -7
- data/ext/mmd/textbundle.h +2 -2
- data/ext/mmd/token.c +42 -16
- data/ext/mmd/{include/token.h → token.h} +22 -8
- data/ext/mmd/token_pairs.c +0 -16
- data/ext/mmd/transclude.c +6 -2
- data/ext/mmd/uthash.h +745 -745
- data/ext/mmd/version.h +8 -8
- data/ext/mmd/writer.c +225 -63
- data/ext/mmd/writer.h +50 -36
- data/ext/mmd/xml.c +855 -0
- data/ext/mmd/xml.h +134 -0
- data/ext/mmd/zip.c +71 -4
- data/ext/mmd/zip.h +7 -1
- data/ext/ruby_multi_markdown.c +9 -18
- data/lib/multi_markdown/version.rb +1 -1
- data/lib/multi_markdown.bundle +0 -0
- data/rmultimarkdown.gemspec +0 -2
- metadata +22 -28
- data/ext/mmd/char_lookup.c +0 -212
data/ext/mmd/rng.c
CHANGED
|
@@ -29,7 +29,7 @@ long ran_x[KK]; /* the generator state */
|
|
|
29
29
|
void ran_array(long aa[], int n)
|
|
30
30
|
#else
|
|
31
31
|
void ran_array(aa, n) /* put n new random numbers in aa */
|
|
32
|
-
long *aa;
|
|
32
|
+
long * aa; /* destination */
|
|
33
33
|
int n; /* array length (must be at least KK) */
|
|
34
34
|
#endif
|
|
35
35
|
{
|
|
@@ -58,7 +58,7 @@ long ran_x[KK]; /* the generator state */
|
|
|
58
58
|
#define QUALITY 1009 /* recommended quality level for high-res use */
|
|
59
59
|
long ran_arr_buf[QUALITY];
|
|
60
60
|
long ran_arr_dummy = -1, ran_arr_started = -1;
|
|
61
|
-
long *ran_arr_ptr = &ran_arr_dummy; /* the next random number, or -1 */
|
|
61
|
+
long * ran_arr_ptr = &ran_arr_dummy; /* the next random number, or -1 */
|
|
62
62
|
|
|
63
63
|
#define TT 70 /* guaranteed separation between streams */
|
|
64
64
|
#define is_odd(x) ((x)&1) /* units bit of x */
|
|
@@ -85,6 +85,9 @@ long *ran_arr_ptr = &ran_arr_dummy; /* the next random number, or -1 */
|
|
|
85
85
|
|
|
86
86
|
x[1]++; /* make x[1] (and only x[1]) odd */
|
|
87
87
|
|
|
88
|
+
#pragma clang diagnostic push
|
|
89
|
+
#pragma clang diagnostic ignored "-Wcomma"
|
|
90
|
+
|
|
88
91
|
for (ss = seed & (MM - 1), t = TT - 1; t; ) {
|
|
89
92
|
for (j = KK - 1; j > 0; j--) {
|
|
90
93
|
x[j + j] = x[j], x[j + j - 1] = 0; /* "square" */
|
|
@@ -110,6 +113,8 @@ long *ran_arr_ptr = &ran_arr_dummy; /* the next random number, or -1 */
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
#pragma clang diagnostic pop
|
|
117
|
+
|
|
113
118
|
for (j = 0; j < LL; j++) {
|
|
114
119
|
ran_x[j + KK - LL] = x[j];
|
|
115
120
|
}
|
|
@@ -152,7 +157,7 @@ int main()
|
|
|
152
157
|
return 0;
|
|
153
158
|
} */
|
|
154
159
|
|
|
155
|
-
long ran_num_next() {
|
|
160
|
+
long ran_num_next(void) {
|
|
156
161
|
return ran_arr_next();
|
|
157
162
|
}
|
|
158
163
|
|