Commit 437402fd authored by Didier Verna's avatar Didier Verna
Browse files

Add the cmark/ subdirectory.

parent aba11985
;;; cmark.lisp --- Entry points
;; Copyright (C) 2018 EPITA Research and Development Laboratory
;; Author: Antoine Martin
;; Maintainers: Antoine Martin and Didier Verna
;; Contact: Quickref Maintainers <quickref@lrde.epita.fr>
;; This file is part of Quickref.
;; Permission to use, copy, modify, and distribute this software for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;; THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;; Code:
(defpackage :fr.epita.lrde.quickref.cmark
(:documentation "The Quickref/CMark package.")
(:use :cl)
(:export :cmark-markdown-to-html))
(in-package :fr.epita.lrde.quickref.cmark)
(cffi:define-foreign-library libcmark
(:darwin "libcmark.dylib")
(:unix "libcmark.so")
(t (:default "libcmark")))
(cffi:use-foreign-library libcmark)
(cffi:defcfun "cmark_markdown_to_html" :string
(md :string)
(size :unsigned-int)
(options :int))
;;; cmark.lisp ends here
;;; fr.epita.lrde.quickref.cmark.asd --- ASDF system definition
;; Copyright (C) 2018 EPITA Research and Development Laboratory
;; Author: Antoine Martin
;; Maintainers: Antoine Martin and Didier Verna
;; Contact: Quickref Maintainers <quickref@lrde.epita.fr>
;; This file is part of Quickref.
;; Permission to use, copy, modify, and distribute this software for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;; THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;; Code:
(asdf:load-system :fr.epita.lrde.quickref.setup)
(asdf:defsystem :fr.epita.lrde.quickref.cmark
:long-name "CommonMark Foreign Function Interface"
:description "Bindings to libcmark"
:long-description "\
CMark provides bindings to libcmark, the C implementation of CommonMark.
CommonMark[1] is itself an attempt at properly specifying the MarkDown[2]
format.
[1] http://commonmark.org/
[2] https://daringfireball.net/projects/markdown/"
:author "Antoine Martin"
:maintainer ("Antoine Martin" "Didier Verna")
:mailto "quickref@lrde.epita.fr"
:license "BSD"
:version #.(fr.epita.lrde.quickref.setup:version :short)
:depends-on (:fr.epita.lrde.quickref.setup :cffi)
:serial t
:components ((:file "cmark")))
;;; fr.epita.lrde.quickref.cmark.asd ends here
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment