Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ccmark to 0.28.3 #11

Merged
merged 4 commits into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Sources/Ccmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Instructions to update cmark

* Git clone https://github.com/commonmark/cmark.git
* cd cmark/src
* Copy all files except the ones ending .in into Kitura-Markdown/sources/Ccmark
* Replace any existing file and ensure include folder remains

Back in Ccmark:
```
brew install cmake
mkdir build
cd build
cmake ..
```
* open src
* copy any .h files into Kitura-Markdown/sources/Ccmark

* open cmark.h and replace angled brackets for cmark_export.h and cmark_version.h with double quotes ("")

* delete the main.c file
7 changes: 4 additions & 3 deletions Sources/Ccmark/cmark_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
# define CMARK_DEPRECATED_NO_EXPORT CMARK_NO_EXPORT CMARK_DEPRECATED
#endif

#define DEFINE_NO_DEPRECATED 0
#if DEFINE_NO_DEPRECATED
# define CMARK_NO_DEPRECATED
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef CMARK_NO_DEPRECATED
# define CMARK_NO_DEPRECATED
# endif
#endif

#endif
4 changes: 2 additions & 2 deletions Sources/Ccmark/cmark_version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef CMARK_VERSION_H
#define CMARK_VERSION_H

#define CMARK_VERSION ((0 << 16) | (25 << 8) | 2)
#define CMARK_VERSION_STRING "0.25.2"
#define CMARK_VERSION ((0 << 16) | (28 << 8) | 3)
#define CMARK_VERSION_STRING "0.28.3"

#endif