main.c


DEFINITIONS

This source file includes following functions.
  1. objcdummyfunction
  2. main


   1  /**********************************************************************
   2  
   3    main.c -
   4  
   5    $Author: matz $
   6    $Date: 2002/04/18 08:46:18 $
   7    created at: Fri Aug 19 13:19:58 JST 1994
   8  
   9    Copyright (C) 1993-2002 Yukihiro Matsumoto
  10  
  11  **********************************************************************/
  12  
  13  #include "ruby.h"
  14  
  15  #ifdef DJGPP
  16  unsigned int _stklen = 0x180000;
  17  #endif
  18  
  19  #ifdef __human68k__
  20  int _stacksize = 262144;
  21  #endif
  22  
  23  #if defined __MINGW32__
  24  int _CRT_glob = 0;
  25  #endif
  26  
  27  #if defined(__MACOS__) && defined(__MWERKS__)
  28  #include <console.h>
  29  #endif
  30  
  31  /* to link startup code with ObjC support */
  32  #if defined(__APPLE__) && defined(__MACH__)
  33  static void objcdummyfunction( void ) { objc_msgSend(); }
  34  #endif
  35  
  36  int
  37  main(argc, argv, envp)
  38      int argc;
  39      char **argv, **envp;
  40  {
  41  #if defined(NT)
  42      NtInitialize(&argc, &argv);
  43  #endif
  44  #if defined(__MACOS__) && defined(__MWERKS__)
  45      argc = ccommand(&argv);
  46  #endif
  47  
  48      ruby_init();
  49      ruby_options(argc, argv);
  50      ruby_run();
  51      return 0;
  52  }