commonmarker 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of commonmarker might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Rakefile +5 -5
- data/ext/commonmarker/cmark/build/CMakeCache.txt +299 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CMakeCCompiler.cmake +55 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CMakeCXXCompiler.cmake +56 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CMakeDetermineCompilerABI_C.bin +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CMakeDetermineCompilerABI_CXX.bin +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CMakeSystem.cmake +15 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CompilerIdC/CMakeCCompilerId.c +393 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CompilerIdC/a.out +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CompilerIdCXX/CMakeCXXCompilerId.cpp +375 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CompilerIdCXX/a.out +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +30 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +301 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +95 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +271 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +4 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache +1 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/CTestTestfile.cmake +10 -0
- data/ext/commonmarker/cmark/build/Makefile +237 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +29 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +158 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +12 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make +2 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make +13 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make +4 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/api_test/Makefile +277 -0
- data/ext/commonmarker/cmark/build/api_test/cmake_install.cmake +29 -0
- data/ext/commonmarker/cmark/build/cmake_install.cmake +48 -0
- data/ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/man/Makefile +181 -0
- data/ext/commonmarker/cmark/build/man/cmake_install.cmake +37 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +39 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +547 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +27 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make +2 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +10 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +1 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +19 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +44 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +524 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +27 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make +2 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +8 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +18 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +396 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +38 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +522 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +26 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake +3 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +169 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +169 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +10 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +2 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +18 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/src/Makefile +814 -0
- data/ext/commonmarker/cmark/build/src/cmake_install.cmake +72 -0
- data/ext/commonmarker/cmark/build/src/cmark_export.h +35 -0
- data/ext/commonmarker/cmark/build/src/cmark_version.h +7 -0
- data/ext/commonmarker/cmark/build/src/config.h +25 -0
- data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
- data/ext/commonmarker/cmark/build/src/libcmark.pc +10 -0
- data/ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +12 -0
- data/ext/commonmarker/cmark/build/testdir/Makefile +181 -0
- data/ext/commonmarker/cmark/build/testdir/cmake_install.cmake +29 -0
- data/ext/commonmarker/commonmarker.c +24 -20
- data/ext/commonmarker/commonmarker.c.orig +1012 -0
- data/lib/commonmarker.rb +2 -1
- data/lib/commonmarker/version.rb +1 -1
- data/test/fixtures/curly.md +1 -0
- data/test/test_encoding.rb +10 -0
- data/test/test_helper.rb +2 -0
- metadata +98 -2
@@ -0,0 +1,72 @@
|
|
1
|
+
# Install script for directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/src
|
2
|
+
|
3
|
+
# Set the install prefix
|
4
|
+
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
5
|
+
SET(CMAKE_INSTALL_PREFIX "/usr/local")
|
6
|
+
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
7
|
+
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
8
|
+
|
9
|
+
# Set the install configuration name.
|
10
|
+
IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
11
|
+
IF(BUILD_TYPE)
|
12
|
+
STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
13
|
+
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
14
|
+
ELSE(BUILD_TYPE)
|
15
|
+
SET(CMAKE_INSTALL_CONFIG_NAME "Release")
|
16
|
+
ENDIF(BUILD_TYPE)
|
17
|
+
MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
18
|
+
ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
19
|
+
|
20
|
+
# Set the component getting installed.
|
21
|
+
IF(NOT CMAKE_INSTALL_COMPONENT)
|
22
|
+
IF(COMPONENT)
|
23
|
+
MESSAGE(STATUS "Install component: \"${COMPONENT}\"")
|
24
|
+
SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
25
|
+
ELSE(COMPONENT)
|
26
|
+
SET(CMAKE_INSTALL_COMPONENT)
|
27
|
+
ENDIF(COMPONENT)
|
28
|
+
ENDIF(NOT CMAKE_INSTALL_COMPONENT)
|
29
|
+
|
30
|
+
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
31
|
+
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.pc")
|
32
|
+
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
33
|
+
|
34
|
+
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
35
|
+
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark")
|
36
|
+
IF(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cmark" AND
|
37
|
+
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cmark")
|
38
|
+
IF(CMAKE_INSTALL_DO_STRIP)
|
39
|
+
EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cmark")
|
40
|
+
ENDIF(CMAKE_INSTALL_DO_STRIP)
|
41
|
+
ENDIF()
|
42
|
+
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
43
|
+
|
44
|
+
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
45
|
+
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES
|
46
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.20.0.dylib"
|
47
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib"
|
48
|
+
)
|
49
|
+
FOREACH(file
|
50
|
+
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.0.20.0.dylib"
|
51
|
+
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.dylib"
|
52
|
+
)
|
53
|
+
IF(EXISTS "${file}" AND
|
54
|
+
NOT IS_SYMLINK "${file}")
|
55
|
+
EXECUTE_PROCESS(COMMAND "/usr/bin/install_name_tool"
|
56
|
+
-id "libcmark.0.20.0.dylib"
|
57
|
+
"${file}")
|
58
|
+
IF(CMAKE_INSTALL_DO_STRIP)
|
59
|
+
EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "${file}")
|
60
|
+
ENDIF(CMAKE_INSTALL_DO_STRIP)
|
61
|
+
ENDIF()
|
62
|
+
ENDFOREACH()
|
63
|
+
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
64
|
+
|
65
|
+
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
66
|
+
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES
|
67
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/src/cmark.h"
|
68
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark_export.h"
|
69
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark_version.h"
|
70
|
+
)
|
71
|
+
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
72
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
#ifndef CMARK_EXPORT_H
|
3
|
+
#define CMARK_EXPORT_H
|
4
|
+
|
5
|
+
#ifdef CMARK_STATIC_DEFINE
|
6
|
+
# define CMARK_EXPORT
|
7
|
+
# define CMARK_NO_EXPORT
|
8
|
+
#else
|
9
|
+
# ifndef CMARK_EXPORT
|
10
|
+
# ifdef libcmark_EXPORTS
|
11
|
+
/* We are building this library */
|
12
|
+
# define CMARK_EXPORT __attribute__((visibility("default")))
|
13
|
+
# else
|
14
|
+
/* We are using this library */
|
15
|
+
# define CMARK_EXPORT __attribute__((visibility("default")))
|
16
|
+
# endif
|
17
|
+
# endif
|
18
|
+
|
19
|
+
# ifndef CMARK_NO_EXPORT
|
20
|
+
# define CMARK_NO_EXPORT __attribute__((visibility("hidden")))
|
21
|
+
# endif
|
22
|
+
#endif
|
23
|
+
|
24
|
+
#ifndef CMARK_DEPRECATED
|
25
|
+
# define CMARK_DEPRECATED __attribute__ ((__deprecated__))
|
26
|
+
# define CMARK_DEPRECATED_EXPORT CMARK_EXPORT __attribute__ ((__deprecated__))
|
27
|
+
# define CMARK_DEPRECATED_NO_EXPORT CMARK_NO_EXPORT __attribute__ ((__deprecated__))
|
28
|
+
#endif
|
29
|
+
|
30
|
+
#define DEFINE_NO_DEPRECATED 0
|
31
|
+
#if DEFINE_NO_DEPRECATED
|
32
|
+
# define CMARK_NO_DEPRECATED
|
33
|
+
#endif
|
34
|
+
|
35
|
+
#endif
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#define HAVE_STDBOOL_H
|
2
|
+
|
3
|
+
#ifdef HAVE_STDBOOL_H
|
4
|
+
#include <stdbool.h>
|
5
|
+
#elif !defined(__cplusplus)
|
6
|
+
typedef char bool;
|
7
|
+
#endif
|
8
|
+
|
9
|
+
#define HAVE___BUILTIN_EXPECT
|
10
|
+
|
11
|
+
#define HAVE___ATTRIBUTE__
|
12
|
+
|
13
|
+
#ifdef HAVE___ATTRIBUTE__
|
14
|
+
#define CMARK_ATTRIBUTE(list) __attribute__ (list)
|
15
|
+
#else
|
16
|
+
#define CMARK_ATTRIBUTE(list)
|
17
|
+
#endif
|
18
|
+
|
19
|
+
#define HAVE_VA_COPY
|
20
|
+
|
21
|
+
#ifndef HAVE_VA_COPY
|
22
|
+
#define va_copy(dest, src) ((dest) = (src))
|
23
|
+
#endif
|
24
|
+
|
25
|
+
#define HAVE_C99_SNPRINTF
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
3
|
+
|
4
|
+
# Relative path conversion top directories.
|
5
|
+
SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark")
|
6
|
+
SET(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build")
|
7
|
+
|
8
|
+
# Force unix paths in dependencies.
|
9
|
+
SET(CMAKE_FORCE_UNIX_PATHS 1)
|
10
|
+
|
11
|
+
|
12
|
+
# The C and CXX include file regular expressions for this directory.
|
13
|
+
SET(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
14
|
+
SET(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
15
|
+
SET(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
16
|
+
SET(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
@@ -0,0 +1 @@
|
|
1
|
+
0
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# CMake generated Testfile for
|
2
|
+
# Source directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test
|
3
|
+
# Build directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir
|
4
|
+
#
|
5
|
+
# This file includes the relevent testing commands required for
|
6
|
+
# testing this directory and lists subdirectories to be tested as well.
|
7
|
+
ADD_TEST(api_test "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/api_test/api_test")
|
8
|
+
ADD_TEST(html_normalization "/usr/local/bin/python3" "-m" "doctest" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/normalize.py")
|
9
|
+
ADD_TEST(spectest_library "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec.txt" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src")
|
10
|
+
ADD_TEST(pathological_tests_library "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/pathological_tests.py" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src")
|
11
|
+
ADD_TEST(spectest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec.txt" "--program" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark")
|
12
|
+
ADD_TEST(smartpuncttest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/smart_punct.txt" "--program" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark --smart")
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
3
|
+
|
4
|
+
# Default target executed when no arguments are given to make.
|
5
|
+
default_target: all
|
6
|
+
.PHONY : default_target
|
7
|
+
|
8
|
+
#=============================================================================
|
9
|
+
# Special targets provided by cmake.
|
10
|
+
|
11
|
+
# Disable implicit rules so canonical targets will work.
|
12
|
+
.SUFFIXES:
|
13
|
+
|
14
|
+
# Remove some rules from gmake that .SUFFIXES does not remove.
|
15
|
+
SUFFIXES =
|
16
|
+
|
17
|
+
.SUFFIXES: .hpux_make_needs_suffix_list
|
18
|
+
|
19
|
+
# Suppress display of executed commands.
|
20
|
+
$(VERBOSE).SILENT:
|
21
|
+
|
22
|
+
# A target that is always out of date.
|
23
|
+
cmake_force:
|
24
|
+
.PHONY : cmake_force
|
25
|
+
|
26
|
+
#=============================================================================
|
27
|
+
# Set environment variables for the build.
|
28
|
+
|
29
|
+
# The shell in which to execute make rules.
|
30
|
+
SHELL = /bin/sh
|
31
|
+
|
32
|
+
# The CMake executable.
|
33
|
+
CMAKE_COMMAND = /usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake
|
34
|
+
|
35
|
+
# The command to remove a file.
|
36
|
+
RM = /usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake -E remove -f
|
37
|
+
|
38
|
+
# Escaping for special characters.
|
39
|
+
EQUALS = =
|
40
|
+
|
41
|
+
# The program to use to edit the cache.
|
42
|
+
CMAKE_EDIT_COMMAND = /usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/ccmake
|
43
|
+
|
44
|
+
# The top-level source directory on which CMake was run.
|
45
|
+
CMAKE_SOURCE_DIR = /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark
|
46
|
+
|
47
|
+
# The top-level build directory on which CMake was run.
|
48
|
+
CMAKE_BINARY_DIR = /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build
|
49
|
+
|
50
|
+
#=============================================================================
|
51
|
+
# Targets provided globally by CMake.
|
52
|
+
|
53
|
+
# Special rule for the target edit_cache
|
54
|
+
edit_cache:
|
55
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
56
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
57
|
+
.PHONY : edit_cache
|
58
|
+
|
59
|
+
# Special rule for the target edit_cache
|
60
|
+
edit_cache/fast: edit_cache
|
61
|
+
.PHONY : edit_cache/fast
|
62
|
+
|
63
|
+
# Special rule for the target install
|
64
|
+
install: preinstall
|
65
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
66
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake -P cmake_install.cmake
|
67
|
+
.PHONY : install
|
68
|
+
|
69
|
+
# Special rule for the target install
|
70
|
+
install/fast: preinstall/fast
|
71
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
72
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake -P cmake_install.cmake
|
73
|
+
.PHONY : install/fast
|
74
|
+
|
75
|
+
# Special rule for the target install/local
|
76
|
+
install/local: preinstall
|
77
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
78
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
79
|
+
.PHONY : install/local
|
80
|
+
|
81
|
+
# Special rule for the target install/local
|
82
|
+
install/local/fast: install/local
|
83
|
+
.PHONY : install/local/fast
|
84
|
+
|
85
|
+
# Special rule for the target install/strip
|
86
|
+
install/strip: preinstall
|
87
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
88
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
89
|
+
.PHONY : install/strip
|
90
|
+
|
91
|
+
# Special rule for the target install/strip
|
92
|
+
install/strip/fast: install/strip
|
93
|
+
.PHONY : install/strip/fast
|
94
|
+
|
95
|
+
# Special rule for the target list_install_components
|
96
|
+
list_install_components:
|
97
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
98
|
+
.PHONY : list_install_components
|
99
|
+
|
100
|
+
# Special rule for the target list_install_components
|
101
|
+
list_install_components/fast: list_install_components
|
102
|
+
.PHONY : list_install_components/fast
|
103
|
+
|
104
|
+
# Special rule for the target rebuild_cache
|
105
|
+
rebuild_cache:
|
106
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
107
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
108
|
+
.PHONY : rebuild_cache
|
109
|
+
|
110
|
+
# Special rule for the target rebuild_cache
|
111
|
+
rebuild_cache/fast: rebuild_cache
|
112
|
+
.PHONY : rebuild_cache/fast
|
113
|
+
|
114
|
+
# Special rule for the target test
|
115
|
+
test:
|
116
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..."
|
117
|
+
/usr/local/Cellar/cmake/2.8.10.1-boxen1/bin/ctest --force-new-ctest-process $(ARGS)
|
118
|
+
.PHONY : test
|
119
|
+
|
120
|
+
# Special rule for the target test
|
121
|
+
test/fast: test
|
122
|
+
.PHONY : test/fast
|
123
|
+
|
124
|
+
# The main all target
|
125
|
+
all: cmake_check_build_system
|
126
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(CMAKE_COMMAND) -E cmake_progress_start /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks
|
127
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/all
|
128
|
+
$(CMAKE_COMMAND) -E cmake_progress_start /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles 0
|
129
|
+
.PHONY : all
|
130
|
+
|
131
|
+
# The main clean target
|
132
|
+
clean:
|
133
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/clean
|
134
|
+
.PHONY : clean
|
135
|
+
|
136
|
+
# The main clean target
|
137
|
+
clean/fast: clean
|
138
|
+
.PHONY : clean/fast
|
139
|
+
|
140
|
+
# Prepare targets for installation.
|
141
|
+
preinstall: all
|
142
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/preinstall
|
143
|
+
.PHONY : preinstall
|
144
|
+
|
145
|
+
# Prepare targets for installation.
|
146
|
+
preinstall/fast:
|
147
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/preinstall
|
148
|
+
.PHONY : preinstall/fast
|
149
|
+
|
150
|
+
# clear depends
|
151
|
+
depend:
|
152
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
153
|
+
.PHONY : depend
|
154
|
+
|
155
|
+
# Help Target
|
156
|
+
help:
|
157
|
+
@echo "The following are some of the valid targets for this Makefile:"
|
158
|
+
@echo "... all (the default if no target is provided)"
|
159
|
+
@echo "... clean"
|
160
|
+
@echo "... depend"
|
161
|
+
@echo "... edit_cache"
|
162
|
+
@echo "... install"
|
163
|
+
@echo "... install/local"
|
164
|
+
@echo "... install/strip"
|
165
|
+
@echo "... list_install_components"
|
166
|
+
@echo "... rebuild_cache"
|
167
|
+
@echo "... test"
|
168
|
+
.PHONY : help
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
#=============================================================================
|
173
|
+
# Special targets to cleanup operation of make.
|
174
|
+
|
175
|
+
# Special rule to run CMake to check the build system integrity.
|
176
|
+
# No rule that depends on this can have commands that come from listfiles
|
177
|
+
# because they might be regenerated.
|
178
|
+
cmake_check_build_system:
|
179
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
180
|
+
.PHONY : cmake_check_build_system
|
181
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Install script for directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test
|
2
|
+
|
3
|
+
# Set the install prefix
|
4
|
+
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
5
|
+
SET(CMAKE_INSTALL_PREFIX "/usr/local")
|
6
|
+
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
7
|
+
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
8
|
+
|
9
|
+
# Set the install configuration name.
|
10
|
+
IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
11
|
+
IF(BUILD_TYPE)
|
12
|
+
STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
13
|
+
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
14
|
+
ELSE(BUILD_TYPE)
|
15
|
+
SET(CMAKE_INSTALL_CONFIG_NAME "Release")
|
16
|
+
ENDIF(BUILD_TYPE)
|
17
|
+
MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
18
|
+
ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
19
|
+
|
20
|
+
# Set the component getting installed.
|
21
|
+
IF(NOT CMAKE_INSTALL_COMPONENT)
|
22
|
+
IF(COMPONENT)
|
23
|
+
MESSAGE(STATUS "Install component: \"${COMPONENT}\"")
|
24
|
+
SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
25
|
+
ELSE(COMPONENT)
|
26
|
+
SET(CMAKE_INSTALL_COMPONENT)
|
27
|
+
ENDIF(COMPONENT)
|
28
|
+
ENDIF(NOT CMAKE_INSTALL_COMPONENT)
|
29
|
+
|
@@ -74,6 +74,8 @@ rb_node_to_value(cmark_node *node)
|
|
74
74
|
{
|
75
75
|
void *user_data;
|
76
76
|
RUBY_DATA_FUNC free_func;
|
77
|
+
VALUE val;
|
78
|
+
|
77
79
|
if (node == NULL)
|
78
80
|
return Qnil;
|
79
81
|
|
@@ -83,10 +85,10 @@ rb_node_to_value(cmark_node *node)
|
|
83
85
|
|
84
86
|
/* Only free tree roots. */
|
85
87
|
free_func = cmark_node_parent(node)
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
88
|
+
? NULL
|
89
|
+
: rb_free_c_struct;
|
90
|
+
val = Data_Wrap_Struct(rb_mNode, rb_mark_c_struct, free_func,
|
91
|
+
node);
|
90
92
|
cmark_node_set_user_data(node, (void *)val);
|
91
93
|
|
92
94
|
return val;
|
@@ -270,6 +272,8 @@ rb_node_set_string_content(VALUE self, VALUE s)
|
|
270
272
|
if (!cmark_node_set_literal(node, text)) {
|
271
273
|
rb_raise(rb_mNodeError, "could not set string content");
|
272
274
|
}
|
275
|
+
|
276
|
+
return Qnil;
|
273
277
|
}
|
274
278
|
|
275
279
|
/*
|
@@ -910,41 +914,41 @@ rb_node_set_fence_info(VALUE self, VALUE info)
|
|
910
914
|
static VALUE
|
911
915
|
rb_html_escape_href(VALUE self, VALUE rb_text)
|
912
916
|
{
|
913
|
-
char *
|
914
|
-
int len;
|
917
|
+
char *result;
|
915
918
|
cmark_strbuf buf = GH_BUF_INIT;
|
919
|
+
|
916
920
|
Check_Type(rb_text, T_STRING);
|
917
921
|
|
918
|
-
|
919
|
-
|
922
|
+
if (houdini_escape_href(&buf, (const uint8_t *)RSTRING_PTR(rb_text), RSTRING_LEN(rb_text))) {
|
923
|
+
result = (char *)cmark_strbuf_detach(&buf);
|
924
|
+
return rb_str_new2(result);
|
925
|
+
}
|
920
926
|
|
921
|
-
|
922
|
-
result = (char *)cmark_strbuf_detach(&buf);
|
927
|
+
return rb_text;
|
923
928
|
|
924
|
-
return rb_str_new2(result);
|
925
929
|
}
|
926
930
|
|
927
931
|
/* Internal: Escapes HTML content safely. */
|
928
932
|
static VALUE
|
929
933
|
rb_html_escape_html(VALUE self, VALUE rb_text)
|
930
934
|
{
|
931
|
-
char *
|
932
|
-
int len;
|
935
|
+
char *result;
|
933
936
|
cmark_strbuf buf = GH_BUF_INIT;
|
934
|
-
Check_Type(rb_text, T_STRING);
|
935
937
|
|
936
|
-
|
937
|
-
len = RSTRING_LEN(rb_text);
|
938
|
+
Check_Type(rb_text, T_STRING);
|
938
939
|
|
939
|
-
houdini_escape_html0(&buf,
|
940
|
-
|
940
|
+
if (houdini_escape_html0(&buf, (const uint8_t *)RSTRING_PTR(rb_text), RSTRING_LEN(rb_text), 0)) {
|
941
|
+
result = (char *)cmark_strbuf_detach(&buf);
|
942
|
+
return rb_str_new2(result);
|
943
|
+
}
|
941
944
|
|
942
|
-
return
|
945
|
+
return rb_text;
|
943
946
|
}
|
944
947
|
|
945
948
|
__attribute__((visibility("default")))
|
946
949
|
void Init_commonmarker()
|
947
950
|
{
|
951
|
+
VALUE module;
|
948
952
|
sym_document = ID2SYM(rb_intern("document"));
|
949
953
|
sym_blockquote = ID2SYM(rb_intern("blockquote"));
|
950
954
|
sym_list = ID2SYM(rb_intern("list"));
|
@@ -967,7 +971,7 @@ void Init_commonmarker()
|
|
967
971
|
sym_bullet_list = ID2SYM(rb_intern("bullet_list"));
|
968
972
|
sym_ordered_list = ID2SYM(rb_intern("ordered_list"));
|
969
973
|
|
970
|
-
|
974
|
+
module = rb_define_module("CommonMarker");
|
971
975
|
rb_mNodeError = rb_define_class_under(module, "NodeError", rb_eStandardError);
|
972
976
|
rb_mNode = rb_define_class_under(module, "Node", rb_cObject);
|
973
977
|
rb_define_singleton_method(rb_mNode, "markdown_to_html", rb_markdown_to_html, 2);
|