Sha256: eb3b07be21868f7a10cff3344a702bee91e97d81a8e6ffe5e680b8c8baf0eff6
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
#include <stdlib.h> #include "plugin.h" int cmark_plugin_register_syntax_extension(cmark_plugin * plugin, cmark_syntax_extension * extension) { plugin->syntax_extensions = cmark_llist_append(plugin->syntax_extensions, extension); return 1; } cmark_plugin * cmark_plugin_new(void) { cmark_plugin *res = (cmark_plugin *) malloc(sizeof(cmark_plugin)); res->syntax_extensions = NULL; return res; } void cmark_plugin_free(cmark_plugin *plugin) { cmark_llist_free_full(plugin->syntax_extensions, (cmark_free_func) cmark_syntax_extension_free); free(plugin); } cmark_llist * cmark_plugin_steal_syntax_extensions(cmark_plugin *plugin) { cmark_llist *res = plugin->syntax_extensions; plugin->syntax_extensions = NULL; return res; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commonmarker-0.11.0 | ext/commonmarker/cmark/src/plugin.c |