Top Level Namespace

Defined Under Namespace

Classes: RDiscount

Constant Summary collapse

Markdown =
RDiscount
HAVE_RANDOM =
have_func('random')
HAVE_SRANDOM =
have_func('srandom')
HAVE_RAND =
have_func('rand')
HAVE_SRAND =
have_func('srand')
DWORD =
sized_int(4, ["unsigned long", "unsigned int"])
WORD =
sized_int(2, ["unsigned int", "unsigned short"])
BYTE =
"unsigned char"
VERSION =
IO.read('VERSION').strip

Instance Method Summary collapse

Instance Method Details

#sized_int(size, types) ⇒ Object



10
11
12
13
# File 'ext/extconf.rb', line 10

def sized_int(size, types)
  types.find { |type| check_sizeof(type) == size } ||
    abort("no int with size #{size}")
end