rmultimarkdown 4.7.0.1 → 4.7.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
 
15
15
  #define TABSTOP 4
16
16
 
17
- #define MMD_VERSION "4.7"
17
+ #define MMD_VERSION "4.7.1"
18
18
 
19
19
  #define MMD_COPYRIGHT \
20
20
  "Copyright (c) 2013-2015 Fletcher T. Penney.\n\n" \
@@ -35,8 +35,8 @@
35
35
 
36
36
  /* This is the data we store in the parser context */
37
37
  typedef struct {
38
- char *charbuf; /* Input buffer */
39
- char *original; /* Original input buffer */
38
+ const char *charbuf; /* Input buffer */
39
+ const char *original; /* Original input buffer */
40
40
  node *result; /* Resulting parse tree */
41
41
  unsigned long extensions; /* Extension bitfield */
42
42
  node *autolabels; /* Store for later retrieval */
@@ -136,10 +136,10 @@ void append_list(node *new, node *list);
136
136
  node * mk_str_from_list(node *list, bool extra_newline);
137
137
  GString * concat_string_list(node *list);
138
138
 
139
- parser_data * mk_parser_data(char *charbuf, unsigned long extensions);
139
+ parser_data * mk_parser_data(const char *charbuf, unsigned long extensions);
140
140
  void free_parser_data(parser_data *data);
141
141
 
142
- char * preformat_text(char *text);
142
+ char * preformat_text(const char *text);
143
143
 
144
144
  scratch_pad * mk_scratch_pad(unsigned long extensions);
145
145
  void free_scratch_pad(scratch_pad *scratch);
@@ -183,4 +183,6 @@ bool check_timeout();
183
183
  void debug_node(node *n);
184
184
  void debug_node_tree(node *n);
185
185
 
186
+ char * my_strndup(const char * source, size_t n);
187
+
186
188
  #endif
@@ -63,7 +63,7 @@ void split_path_file(char** dir, char** file, char *path) {
63
63
 
64
64
  while ((next = strpbrk(slash + 1, sep))) slash = next;
65
65
  if (path != slash) slash++;
66
- *dir = strndup(path, slash - path);
66
+ *dir = my_strndup(path, slash - path);
67
67
  *file = strdup(slash);
68
68
  }
69
69
 
@@ -304,4 +304,4 @@ void prepend_mmd_header(GString *source) {
304
304
  }
305
305
  }
306
306
  }
307
- }
307
+ }
data/README.md CHANGED
@@ -13,7 +13,7 @@ library in C. It is based upon the ruby
13
13
  Synopsis
14
14
  --------
15
15
 
16
- >> require 'multimarkdown'
16
+ >> require 'rmultimarkdown'
17
17
 
18
18
  >> MultiMarkdown.new('Hello, world.').to_html
19
19
  #=> "<p>Hello, world.</p>"
Binary file
@@ -1,6 +1,6 @@
1
1
  class MultiMarkdown
2
2
 
3
3
  # The ruby 'multimarkdown' gem version
4
- VERSION = "4.7.0.1"
4
+ VERSION = "4.7.1.1"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmultimarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0.1
4
+ version: 4.7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Till Schulte-Coerne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-09 00:00:00.000000000 Z
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: A MultiMarkdown 4 binding for Ruby
@@ -97,12 +97,12 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []