Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Antoine Martin
quickref
Commits
437402fd
Commit
437402fd
authored
May 04, 2018
by
Didier Verna
Browse files
Add the cmark/ subdirectory.
parent
aba11985
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmark/cmark.lisp
0 → 100644
View file @
437402fd
;;; 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
cmark/fr.epita.lrde.quickref.cmark.asd
0 → 100644
View file @
437402fd
;;; 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment