Skip to content

Commit

Permalink
Merge pull request #219 from vmg/remove-unused-c-code
Browse files Browse the repository at this point in the history
Remove unused C code
  • Loading branch information
mattr- committed Apr 4, 2013
2 parents 1c838cc + fb8e8d6 commit d2eb98c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions ext/redcarpet/buffer.h
Expand Up @@ -44,14 +44,6 @@ struct buf {
size_t unit; /* reallocation unit size (0 = read-only buffer) */
};

/* CONST_BUF: global buffer from a string litteral */
#define BUF_STATIC(string) \
{ (uint8_t *)string, sizeof string -1, sizeof string, 0, 0 }

/* VOLATILE_BUF: macro for creating a volatile buffer on the stack */
#define BUF_VOLATILE(strname) \
{ (uint8_t *)strname, strlen(strname), 0, 0, 0 }

/* BUFPUTSL: optimized bufputs of a string litteral */
#define BUFPUTSL(output, literal) \
bufput(output, literal, sizeof literal - 1)
Expand Down
2 changes: 1 addition & 1 deletion ext/redcarpet/redcarpet.h
Expand Up @@ -17,7 +17,7 @@

#define CSTR2SYM(s) (ID2SYM(rb_intern((s))))

extern void Init_redcarpet_rndr();
void Init_redcarpet_rndr();

struct redcarpet_renderopt {
struct html_renderopt html;
Expand Down

0 comments on commit d2eb98c

Please sign in to comment.