1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
/*
* rdiscount extension discount configuration
*/
#ifndef __MARKDOWN_D
#define __MARKDOWN_D 1
/* tabs are four spaces */
#define TABSTOP 4
#define DESTRUCTOR __attribute__((__destructor__))
/* these are setup by extconf.rb */
#if HAVE_RANDOM
#define COINTOSS() (random()&1)
#elif HAVE_RAND
#define COINTOSS() (rand()&1)
#endif
#if HAVE_SRANDOM
#define INITRNG(x) srandom((unsigned int)x)
#elif HAVE_SRAND
#define INITRNG(x) srand((unsigned int)x)
#endif
#include "ruby-config.h"
#endif/* __MARKDOWN_D */
|