Sha256: 7bddad3e38c7c9bae44021b819917f3f91cd006a112aa877bebc629384a524ee

Contents?: true

Size: 813 Bytes

Versions: 24

Compression:

Stored size: 813 Bytes

Contents

/* markdown: a C implementation of John Gruber's Markdown markup language.
 *
 * Copyright (C) 2007 David L Parsons.
 * The redistribution terms are provided in the COPYRIGHT file that must
 * be distributed with this source code.
 */
#include "config.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>

#include "cstring.h"
#include "markdown.h"
#include "amalloc.h"
#include "tags.h"
    
static int need_to_setup = 1;
static int need_to_initrng = 1;

void
mkd_initialize()
{

    if ( need_to_initrng ) {
	need_to_initrng = 0;
	INITRNG(time(0));
    }
    if ( need_to_setup ) {
	need_to_setup = 0;
	mkd_prepare_tags();
    }
}


void
mkd_shlib_destructor()
{
    if ( !need_to_setup ) {
	need_to_setup = 1;
	mkd_deallocate_tags();
    }
}

Version data entries

24 entries across 22 versions & 5 rubygems

Version Path
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/bluecloth-2.2.0/ext/setup.c
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/bluecloth-2.1.0/ext/setup.c
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/bluecloth-2.1.0/ext/setup.c
challah-1.0.0.beta3 vendor/bundle/gems/rdiscount-2.0.7.3/ext/setup.c
challah-1.0.0.beta3 vendor/bundle/gems/rdiscount-2.0.7.2/ext/setup.c
rdiscount-2.0.7.3 ext/setup.c
challah-1.0.0.beta2 vendor/bundle/gems/rdiscount-2.0.7.2/ext/setup.c
challah-1.0.0.beta vendor/bundle/gems/rdiscount-2.0.7.1/ext/setup.c
challah-1.0.0.beta vendor/bundle/gems/rdiscount-2.0.7.2/ext/setup.c
rdiscount-2.0.7.2 ext/setup.c
rdiscount-2.0.7.1 ext/setup.c
rdiscount-2.0.7 ext/setup.c
radiant-1.0.0 ruby-debug/ruby/1.8/gems/bluecloth-2.1.0/ext/setup.c
bluecloth-2.2.0 ext/setup.c
bluecloth-2.1.0-x86-mswin32 ext/setup.c
bluecloth-2.1.0-x86-mingw32 ext/setup.c
bluecloth-2.1.0 ext/setup.c
bluecloth-2.0.11 ext/setup.c
bluecloth-2.0.11-x86-mswin32 ext/setup.c
bluecloth-2.0.11-x86-mingw32 ext/setup.c