Fix minor typos

This commit is contained in:
Yuri Chornoivan
2020-05-01 19:58:40 +03:00
parent c4b97d6cf7
commit 38282592fc
5 changed files with 4 additions and 6 deletions
-2
View File
@@ -26,8 +26,6 @@
#endif #endif
#ifndef HAVE_BASENAME #ifndef HAVE_BASENAME
#include <string.h>
char* char*
basename(char *p) basename(char *p)
{ {
+1 -1
View File
@@ -220,7 +220,7 @@ struct string_stream {
} ; } ;
/* /*
* sneakily back-define the published interface (leaving the old functions for v2 compatability) * sneakily back-define the published interface (leaving the old functions for v2 compatibility)
*/ */
#define mkd_in mkd3_in #define mkd_in mkd3_in
+1 -1
View File
@@ -52,7 +52,7 @@ function (in the module basename.c) is implemented by means of
mkd callbacks; it modifies urls that start with a `/' so that mkd callbacks; it modifies urls that start with a `/' so that
they begin with a user-supplied url base by allocating a new they begin with a user-supplied url base by allocating a new
string and filling it with the base + the url. Discount plugs string and filling it with the base + the url. Discount plugs
that url in in place of the original, then calls the basename that url in place of the original, then calls the basename
free function (it only does this when free function (it only does this when
.Fn mkd_e_url .Fn mkd_e_url
or or
+1 -1
View File
@@ -74,7 +74,7 @@ enum { GFM, ADD_CSS, ADD_HEADER, ADD_FOOTER };
struct h_opt opts[] = { struct h_opt opts[] = {
{ GFM, "gfm",'G', 0, "Github style markdown" }, { GFM, "gfm",'G', 0, "Github style markdown" },
{ ADD_CSS, "css", 0, "url", "Additional css for this page" }, { ADD_CSS, "css", 0, "url", "Additional css for this page" },
{ ADD_HEADER, "header", 0, "header", "Additonal headers for this page" }, { ADD_HEADER, "header", 0, "header", "Additional headers for this page" },
{ ADD_FOOTER, "footer", 0, "footer", "Additional footers for this page" }, { ADD_FOOTER, "footer", 0, "footer", "Additional footers for this page" },
}; };
#define NROPTS (sizeof opts/sizeof opts[0]) #define NROPTS (sizeof opts/sizeof opts[0])
+1 -1
View File
@@ -57,7 +57,7 @@ void mkd_clr_flag_num(mkd_flag_t*, unsigned long);/* clear a specific flag */
void mkd_set_flag_bitmap(mkd_flag_t*,long); /* set a bunch of flags */ void mkd_set_flag_bitmap(mkd_flag_t*,long); /* set a bunch of flags */
/* /*
* sneakily back-define the published interface (leaving the old functions for v2 compatability) * sneakily back-define the published interface (leaving the old functions for v2 compatibility)
*/ */
#define mkd_in mkd3_in #define mkd_in mkd3_in