Skip to content

Commit

Permalink
Update ccmark to 0.28.3 (#11)
Browse files Browse the repository at this point in the history
- and document the procedure for upgrading Cmark in the future in Sources/Ccmark/README.md
  • Loading branch information
Andrew-Lees11 authored and djones6 committed Feb 26, 2018
1 parent 29f6023 commit c02d3f1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
20 changes: 20 additions & 0 deletions Sources/Ccmark/README.md
@@ -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
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
@@ -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

0 comments on commit c02d3f1

Please sign in to comment.