Skip to content

Commit

Permalink
Remove useless 'extern' keyword
Browse files Browse the repository at this point in the history
Functions are extern by default.
  • Loading branch information
nwellnhof authored and jgm committed Mar 24, 2024
1 parent b1c4b62 commit 5ccd6f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void cmark_strbuf_normalize_whitespace(cmark_strbuf *s) {
}

// Destructively unescape a string: remove backslashes before punctuation chars.
extern void cmark_strbuf_unescape(cmark_strbuf *buf) {
void cmark_strbuf_unescape(cmark_strbuf *buf) {
bufsize_t r, w;

for (r = 0, w = 0; r < buf->size; ++r) {
Expand Down
18 changes: 9 additions & 9 deletions src/houdini.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ extern "C" {
#define HOUDINI_ESCAPED_SIZE(x) (((x)*12) / 10)
#define HOUDINI_UNESCAPED_SIZE(x) (x)

extern bufsize_t houdini_unescape_ent(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);
extern int houdini_escape_html0(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size, int secure);
extern int houdini_unescape_html(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);
extern void houdini_unescape_html_f(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);
extern int houdini_escape_href(cmark_strbuf *ob, const uint8_t *src,
bufsize_t houdini_unescape_ent(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);
int houdini_escape_html0(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size, int secure);
int houdini_unescape_html(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);
void houdini_unescape_html_f(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);
int houdini_escape_href(cmark_strbuf *ob, const uint8_t *src,
bufsize_t size);

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions src/references.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ cmark_reference_map *cmark_reference_map_new(cmark_mem *mem);
void cmark_reference_map_free(cmark_reference_map *map);
cmark_reference *cmark_reference_lookup(cmark_reference_map *map,
cmark_chunk *label);
extern void cmark_reference_create(cmark_reference_map *map, cmark_chunk *label,
cmark_chunk *url, cmark_chunk *title);
void cmark_reference_create(cmark_reference_map *map, cmark_chunk *label,
cmark_chunk *url, cmark_chunk *title);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 5ccd6f2

Please sign in to comment.