Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Apparently we have to handle the short versions of getopt parameters …

…manually. Shrug. Seems to work now.
  • Loading branch information...
commit 897df78ddcb36a37e55f56158530adf5d8cd97d6 1 parent 2f351d9
@danielpunkass danielpunkass authored
Showing with 21 additions and 2 deletions.
  1. +7 −1 TODO.txt
  2. +14 −1 markdown.c
View
8 TODO.txt
@@ -1,6 +1,12 @@
Notes for myself while pulling together the remaining lose ends in MultiMarkdown standalone for Mac.
-? Fix short options parsing in markdown.c
+CURRENT:
+
+?
+
+HISTORY:
+
+- Fix short options parsing in markdown.c
- Performance tests - compare with a very large markdown file vs. e.g. multimarkdown based on GLib.
- Performance now seems approximately on par with the GLib version for massive files
View
15 markdown.c
@@ -4,7 +4,8 @@
(c) 2008 John MacFarlane (jgm at berkeley dot edu).
portions Copyright (c) 2010-2011 Fletcher T. Penney
-
+ portions Copyright (c) 2011 Daniel Jalkut
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License or the MIT
license. See LICENSE for details.
@@ -179,6 +180,9 @@ int main(int argc, char * argv[]) {
printUsage();
return EXIT_SUCCESS;
break;
+ case 'v':
+ opt_version = true;
+ break;
case 'o':
opt_output = malloc(strlen(optarg) + 1);
strcpy(opt_output, optarg);
@@ -187,6 +191,15 @@ int main(int argc, char * argv[]) {
opt_to = malloc(strlen(optarg) + 1);
strcpy(opt_to, optarg);
break;
+ case 'x':
+ opt_allext = true;
+ break;
+ case 'c':
+ opt_compatibility = true;
+ break;
+ case 'b':
+ opt_batchmode = true;
+ break;
case 'e':
opt_extract_meta = malloc(strlen(optarg) + 1);
strcpy(opt_extract_meta, optarg);
Please sign in to comment.
Something went wrong with that request. Please try again.