File: config.h

package info (click to toggle)
ruby-rdiscount 2.2.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 480 kB
  • sloc: ansic: 4,798; ruby: 487; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
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 */