Merge git://github.com/MagLev/discount

This commit is contained in:
david parsons
2011-02-27 19:15:14 -08:00
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ typedef int (*mkd_sta_function_t)(const int,const void*);
extern void mkd_string_to_anchor(char*,int, mkd_sta_function_t, void*, int);
extern Document *mkd_in(FILE *, DWORD);
extern Document *mkd_string(char*,int, DWORD);
extern Document *mkd_string(const char*,int, DWORD);
extern void mkd_initialize();
extern void mkd_shlib_destructor();
+2 -2
View File
@@ -148,7 +148,7 @@ mkd_in(FILE *f, DWORD flags)
/* return a single character out of a buffer
*/
struct string_ctx {
char *data; /* the unread data */
const char *data; /* the unread data */
int size; /* and how much is there? */
} ;
@@ -167,7 +167,7 @@ strget(struct string_ctx *in)
/* convert a block of text into a linked list
*/
Document *
mkd_string(char *buf, int len, DWORD flags)
mkd_string(const char *buf, int len, DWORD flags)
{
struct string_ctx about;
+1 -1
View File
@@ -10,7 +10,7 @@ typedef @DWORD@ mkd_flag_t;
/* line builder for markdown()
*/
MMIOT *mkd_in(FILE*,mkd_flag_t); /* assemble input from a file */
MMIOT *mkd_string(char*,int,mkd_flag_t); /* assemble input from a buffer */
MMIOT *mkd_string(const char*,int,mkd_flag_t); /* assemble input from a buffer */
void mkd_basename(MMIOT*,char*);