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
bluecloth-2.0.11pre158-x86-mingw32 ext/setup.c
bluecloth-2.0.11pre158-x86-mswin32 ext/setup.c
bluecloth-2.0.11pre158 ext/setup.c
bluecloth-2.0.10 ext/setup.c