mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci, thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h, vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and copyright year. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			66 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/**********************************************************************
 | 
						|
 | 
						|
  id.c - 
 | 
						|
 | 
						|
  $Author$
 | 
						|
  $Date$
 | 
						|
  created at: Thu Jul 12 04:37:51 2007
 | 
						|
 | 
						|
  Copyright (C) 2004-2007 Koichi Sasada
 | 
						|
 | 
						|
**********************************************************************/
 | 
						|
 | 
						|
#include "ruby/ruby.h"
 | 
						|
 | 
						|
#define extern
 | 
						|
#include "id.h"
 | 
						|
#undef extern
 | 
						|
 | 
						|
void
 | 
						|
Init_id(void)
 | 
						|
{
 | 
						|
    /* Symbols */
 | 
						|
    symIFUNC = ID2SYM(rb_intern("<IFUNC>"));
 | 
						|
    symCFUNC = ID2SYM(rb_intern("<CFUNC>"));
 | 
						|
 | 
						|
    /* IDs */
 | 
						|
    idPLUS = rb_intern("+");
 | 
						|
    idMINUS = rb_intern("-");
 | 
						|
    idMULT = rb_intern("*");
 | 
						|
    idDIV = rb_intern("/");
 | 
						|
    idMOD = rb_intern("%");
 | 
						|
    idLT = rb_intern("<");
 | 
						|
    idLTLT = rb_intern("<<");
 | 
						|
    idLE = rb_intern("<=");
 | 
						|
    idGT = rb_intern(">");
 | 
						|
    idGE = rb_intern(">=");
 | 
						|
    idEq = rb_intern("==");
 | 
						|
    idEqq = rb_intern("===");
 | 
						|
    idBackquote = rb_intern("`");
 | 
						|
    idEqTilde = rb_intern("=~");
 | 
						|
 | 
						|
    idAREF = rb_intern("[]");
 | 
						|
    idASET = rb_intern("[]=");
 | 
						|
 | 
						|
    idEach = rb_intern("each");
 | 
						|
    idTimes = rb_intern("times");
 | 
						|
    idLength = rb_intern("length");
 | 
						|
    idLambda = rb_intern("lambda");
 | 
						|
    idIntern = rb_intern("intern");
 | 
						|
    idGets = rb_intern("gets");
 | 
						|
    idSucc = rb_intern("succ");
 | 
						|
    idEnd = rb_intern("end");
 | 
						|
    idRangeEachLT = rb_intern("Range#each#LT");
 | 
						|
    idRangeEachLE = rb_intern("Range#each#LE");
 | 
						|
    idArrayEach = rb_intern("Array#each");
 | 
						|
    idMethodMissing = rb_intern("method_missing");
 | 
						|
 | 
						|
    idThrowState = rb_intern("#__ThrowState__");
 | 
						|
 | 
						|
    idBitblt = rb_intern("bitblt");
 | 
						|
    idAnswer = rb_intern("the_answer_to_life_the_universe_and_everything");
 | 
						|
 | 
						|
    idSend = rb_intern("send");
 | 
						|
    idSendBang = rb_intern("send!");
 | 
						|
    id__send__ = rb_intern("__send__");
 | 
						|
}
 |