~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  main.c -
4
4
 
5
 
  $Author: ocean $
6
 
  $Date: 2005/09/12 10:44:20 $
 
5
  $Author: akr $
 
6
  $Date: 2006/01/09 22:32:55 $
7
7
  created at: Fri Aug 19 13:19:58 JST 1994
8
8
 
9
9
  Copyright (C) 1993-2003 Yukihiro Matsumoto
10
10
 
11
11
**********************************************************************/
12
12
 
 
13
#undef RUBY_EXPORT
13
14
#include "ruby.h"
14
15
 
15
16
#if defined(__MACOS__) && defined(__MWERKS__)
24
25
int
25
26
main(int argc, char **argv, char **envp)
26
27
{
 
28
#ifdef RUBY_GC_STRESS
 
29
    RUBY_EXTERN int gc_stress;
 
30
    gc_stress = getenv("RUBY_GC_STRESS") != NULL;
 
31
#endif
27
32
#ifdef _WIN32
28
33
    NtInitialize(&argc, &argv);
29
34
#endif
31
36
    argc = ccommand(&argv);
32
37
#endif
33
38
 
34
 
    ruby_init();
35
 
    ruby_options(argc, argv);
36
 
    ruby_run();
 
39
    {
 
40
        RUBY_INIT_STACK
 
41
        ruby_init();
 
42
        ruby_options(argc, argv);
 
43
        ruby_run();
 
44
    }
37
45
    return 0;
38
46
}