
#include "config.h"
#include "yodl.h"

void
init ()
{
  /* load default macro names */
  struct Builtin *b = builtins;
  while (b->func)
    {
      builtin = strtab_add (builtin, &nbuiltin, b->name);
      b++;
    }

  /*
    urg, should be fixed
   */
  error_setprogname ("yodl");	/* for error messages */

#if 0 /* def NDEBUG */
  /*  how can we expect people to help, if there's no core dump? */

  signal (SIGHUP, sighandler);	/* signal handler */
  signal (SIGINT, sighandler);
  signal (SIGQUIT, sighandler);
  signal (SIGTERM, sighandler);
  signal (SIGSEGV, sighandler);
#endif

  /* init global variables */
  outf = stdout;
  maxpass = DEFAULT_MAXPASS;
  dont_do_expand_global = 0;
}

