~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  main.c -
4
4
 
5
 
  $Author: shyouhei $
6
 
  $Date: 2007-02-13 08:01:19 +0900 (火, 13  2月 2007) $
 
5
  $Author: matz $
 
6
  $Date: 2007-08-25 12:29:39 +0900 (土, 25  8月 2007) $
7
7
  created at: Fri Aug 19 13:19:58 JST 1994
8
8
 
9
 
  Copyright (C) 1993-2003 Yukihiro Matsumoto
 
9
  Copyright (C) 1993-2007 Yukihiro Matsumoto
10
10
 
11
11
**********************************************************************/
12
12
 
13
13
#undef RUBY_EXPORT
14
 
#include "ruby.h"
 
14
#include "ruby/ruby.h"
15
15
 
16
16
#if defined(__MACOS__) && defined(__MWERKS__)
17
17
#include <console.h>
29
29
int
30
30
main(int argc, char **argv, char **envp)
31
31
{
32
 
#ifdef RUBY_GC_STRESS
33
 
    RUBY_EXTERN int gc_stress;
34
 
    gc_stress = getenv("RUBY_GC_STRESS") != NULL;
 
32
#ifdef RUBY_DEBUG_ENV
 
33
    extern void ruby_set_debug_option(const char *);
 
34
    ruby_set_debug_option(getenv("RUBY_DEBUG"));
35
35
#endif
36
36
#ifdef _WIN32
37
37
    NtInitialize(&argc, &argv);
43
43
    {
44
44
        RUBY_INIT_STACK;
45
45
        ruby_init();
46
 
        ruby_options(argc, argv);
47
 
        ruby_run();
 
46
        return ruby_run_node(ruby_options(argc, argv));
48
47
    }
49
 
    return 0;
50
48
}