Function: obarray-make

obarray-make is a function defined in lread.c.

Signature

(obarray-make &optional SIZE)

Documentation

Return a new obarray of size SIZE.

The obarray will grow to accommodate any number of symbols; the size, if given, is only a hint for the expected number.

Other relevant functions are documented in the symbol group.

View in manual

Probably introduced at or before Emacs version 25.1.

Shortdoc

;; symbol
(obarray-make)
    => #<obarray n=0>

Source Code

// Defined in /usr/src/emacs/src/lread.c
{
  int bits;
  if (NILP (size))
    bits = obarray_default_bits;
  else
    {
      CHECK_FIXNAT (size);
      EMACS_UINT n = XFIXNUM (size);
      bits = elogb (n) + 1;
      if (bits > obarray_max_bits)
	xsignal (Qargs_out_of_range, size);
    }
  return make_obarray (bits);
}