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

« back to all changes in this revision

Viewing changes to id.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:
 
1
/**********************************************************************
 
2
 
 
3
  id.c - 
 
4
 
 
5
  $Author: ko1 $
 
6
  $Date: 2007-08-25 08:55:16 +0900 (土, 25  8月 2007) $
 
7
  created at: Thu Jul 12 04:37:51 2007
 
8
 
 
9
  Copyright (C) 2004-2006 Koichi Sasada
 
10
 
 
11
**********************************************************************/
 
12
 
 
13
#include "ruby/ruby.h"
 
14
 
 
15
#define extern
 
16
#include "id.h"
 
17
#undef extern
 
18
 
 
19
void
 
20
Init_id(void)
 
21
{
 
22
    /* Symbols */
 
23
    symIFUNC = ID2SYM(rb_intern("<IFUNC>"));
 
24
    symCFUNC = ID2SYM(rb_intern("<CFUNC>"));
 
25
 
 
26
    /* IDs */
 
27
    idPLUS = rb_intern("+");
 
28
    idMINUS = rb_intern("-");
 
29
    idMULT = rb_intern("*");
 
30
    idDIV = rb_intern("/");
 
31
    idMOD = rb_intern("%");
 
32
    idLT = rb_intern("<");
 
33
    idLTLT = rb_intern("<<");
 
34
    idLE = rb_intern("<=");
 
35
    idGT = rb_intern(">");
 
36
    idGE = rb_intern(">=");
 
37
    idEq = rb_intern("==");
 
38
    idEqq = rb_intern("===");
 
39
    idBackquote = rb_intern("`");
 
40
    idEqTilde = rb_intern("=~");
 
41
 
 
42
    idAREF = rb_intern("[]");
 
43
    idASET = rb_intern("[]=");
 
44
 
 
45
    idEach = rb_intern("each");
 
46
    idTimes = rb_intern("times");
 
47
    idLength = rb_intern("length");
 
48
    idLambda = rb_intern("lambda");
 
49
    idIntern = rb_intern("intern");
 
50
    idGets = rb_intern("gets");
 
51
    idSucc = rb_intern("succ");
 
52
    idEnd = rb_intern("end");
 
53
    idRangeEachLT = rb_intern("Range#each#LT");
 
54
    idRangeEachLE = rb_intern("Range#each#LE");
 
55
    idArrayEach = rb_intern("Array#each");
 
56
    idMethodMissing = rb_intern("method_missing");
 
57
 
 
58
    idThrowState = rb_intern("#__ThrowState__");
 
59
 
 
60
    idBitblt = rb_intern("bitblt");
 
61
    idAnswer = rb_intern("the_answer_to_life_the_universe_and_everything");
 
62
 
 
63
    idSend = rb_intern("send");
 
64
    idSendBang = rb_intern("send!");
 
65
    id__send = rb_intern("__send");
 
66
    id__send_bang = rb_intern("__send!");
 
67
    id__send__ = rb_intern("__send__");
 
68
}