mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Merge git://github.com/MagLev/discount
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
@@ -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
@@ -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*);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user