~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to README.EXT.ja

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
�ˤʤ�ޤ�. FIXNUM �� C ���������Ѵ����뤿��ˤϥޥ���
107
107
��FIX2INT()�פޤ��ϡ�FIX2LONG()�פ�Ȥ��ޤ��������Υޥ���
108
108
����Ѥ���ݤˤϻ����˥ǡ��������פ�FIXNUM�Ǥ��뤳�Ȥ��ǧ��
109
 
��ɬ�פ�����ޤ��������Ū��®���Ѵ���Ԥ����Ȥ��Ǥ��ޤ�����
110
 
������FIX2LONG()�פ��㳰��ȯ�����ޤ��󤬡���FIX2INT()�פ���
111
 
����̤�int�Υ������˼��ޤ�ʤ����ˤ��㳰��ȯ�����ޤ���
 
109
��ɬ�פ�����ޤ��������Ū��®���Ѵ���Ԥ����Ȥ��Ǥ��ޤ�����
 
110
������FIX2LONG()�פ��㳰��ȯ�����ޤ��󤬡���FIX2INT()�פ���
 
111
����̤�int�Υ������˼��ޤ�ʤ����ˤ��㳰��ȯ�����ޤ���
112
112
���줫�顤FIXNUM�˸¤餺Ruby�Υǡ������������Ѵ�����
113
113
��NUM2INT()�פ���ӡ�NUM2LONG()�פȤ����ޥ���������ޤ�����
114
114
���Υޥ����ϥޥ����ϥǡ��������פΥ����å�̵���ǻȤ��ޤ�
208
208
    rb_str_new(ptr, strlen(ptr))��Ʊ���Ǥ��롥
209
209
 
210
210
  rb_tainted_str_new(const char *ptr, long len)
211
 
  rb_tainted_str_new_cstr(const char *ptr)
212
211
 
213
212
    �����ޡ������ղä��줿������Ruby��ʸ������������롥����
214
213
    ����Υǡ����˴�Ť�ʸ����ˤϱ����ޡ������ղä����٤�
215
214
    �Ǥ��롥
216
215
 
217
216
  rb_tainted_str_new2(const char *ptr)
 
217
  rb_tainted_str_new_cstr(const char *ptr)
218
218
 
219
219
    C��ʸ���󤫤�����ޡ������ղä��줿Ruby��ʸ������������롥
220
220
 
250
250
 
251
251
    ���󥳡��ǥ��󥰤�US-ASCII��Ruby��ʸ�������������.
252
252
 
 
253
  rb_str_resize(VALUE str, long len)
 
254
 
 
255
    Ruby��ʸ����Υ�������len�Х��Ȥ��ѹ����롥str��Ĺ������
 
256
    �ʤƥ��åȤ���Ƥ��ʤ���Фʤ�ʤ���len������Ĺ������û
 
257
    �����ϡ�len�Х��Ȥ�ۤ�����ʬ�����ƤϼΤƤ��롥len����
 
258
    ��Ĺ������Ĺ�����ϡ�����Ĺ����ۤ�����ʬ�����Ƥ���¸��
 
259
    ��ʤ��ǥ��ߤˤʤ�����������δؿ��θƤӽФ��ˤ�ä�
 
260
    RSTRING_PTR(str)���ѹ�����뤫�⤷��ʤ����Ȥ����ա�
 
261
 
 
262
  rb_str_set_len(VALUE str, long len)
 
263
 
 
264
    Ruby��ʸ����Υ�������len�Х��Ȥ˥��åȤ��롥str���ѹ���
 
265
    ǽ�Ǥʤ�����㳰��ȯ�����롥RSTRING_LEN(str)�Ȥ�̵�ط��ˡ�
 
266
    len�Х��ȤޤǤ����Ƥ���¸����롥len��str�����̤�ۤ��Ƥ�
 
267
    �ƤϤʤ�ʤ���
 
268
 
253
269
 
254
270
 ������Ф���ؿ�
255
271
 
374
390
private�᥽�åɤȤϴؿ������Ǥ����ƤӽФ����Ȥν���ʤ��᥽��
375
391
�ɤǤ���
376
392
 
377
 
�Ǹ�ˡ� rb_define_module�ؿ��ϥ⥸�塼��ؿ���������ޤ���
 
393
�Ǹ�ˡ� rb_define_module�ؿ��ϥ⥸�塼��ؿ���������ޤ���
378
394
�⥸�塼��ؿ��Ȥϥ⥸�塼����ðۥ᥽�åɤǤ��ꡤƱ����
379
395
private�᥽�åɤǤ⤢���ΤǤ�����򤢤����Math�⥸�塼��
380
396
��sqrt()�ʤɤ��������ޤ������Υ᥽�åɤ�
454
470
 
455
471
  VALUE rb_eval_string_protect(const char *str, int *state)
456
472
 
457
 
���δؿ��ϥ��顼��ȯ�������nil���֤��ޤ��������ơ��������ˤ�
458
 
*state�ϥ����ˡ�����ʤ����󥼥��ˤʤ�ޤ���
 
473
���δؿ��ϥ��顼��ȯ�������nil���֤��ޤ��������ơ��������ˤ�
 
474
*state�ϥ����ˡ�����ʤ����󥼥��ˤʤ�ޤ���
459
475
 
460
476
 
461
477
2.2.2 ID�ޤ��ϥ���ܥ�
562
578
setter��0����ꤷ�ޤ���
563
579
# getter��setter��0�ʤ��rb_define_variable()��Ʊ���ˤʤ롥
564
580
 
565
 
getter��setter�λ��ͤϼ����̤�Ǥ���
 
581
getter��setter�λ��ͤϼ����̤�Ǥ���
566
582
 
567
583
  VALUE (*getter)(ID id, VALUE *var);
568
584
  void (*setter)(VALUE val, ID id, VALUE *var);
664
680
����Υ�������ʣ���ξ��ˤϵդˡ֥饤�֥��̾.c�פȤ����ե�
665
681
����̾���򤱤�ɬ�פ�����ޤ������֥������ȥե�����ȥ⥸�塼
666
682
�������������Ū�����������֥饤�֥��̾.o�פȤ����ե�����
667
 
�Ȥ����ͤ��뤫��Ǥ���
 
683
�Ȥ����ͤ��뤫��Ǥ����ޤ�����Ҥ��� mkmf �饤�֥��Τ�����
 
684
���δؿ�������ѥ�����פ���ƥ��ȤΤ���ˡ�conftest.c�פȤ�
 
685
���ե�����̾����Ѥ��뤳�Ȥ����դ��Ƥ����������������ե�����
 
686
̾�Ȥ��ơ�conftest.c�פ���Ѥ��ƤϤʤ�ޤ���
668
687
 
669
688
Ruby�ϳ�ĥ�饤�֥�������ɤ�����ˡ�Init_�饤�֥��̾�פ�
670
689
�����ؿ���ưŪ�˼¹Ԥ��ޤ���dbm�饤�֥��ξ���Init_dbm��
991
1010
  struct.c      : Struct
992
1011
  time.c        : Time
993
1012
 
994
 
  defs/knwon_errors.def  : �㳰���饹 Errno::*
 
1013
  defs/known_errors.def  : �㳰���饹 Errno::*
995
1014
    -> known_errors.inc  : ��ư����
996
1015
 
997
1016
¿���첽
1182
1201
  �Ȥϡ�ABNF�ǵ��Ҥ���Ȱʲ����̤�Ǥ���
1183
1202
 
1184
1203
--
1185
 
scan-arg-spec  := param-arg-spec [block-arg-spec]
 
1204
scan-arg-spec  := param-arg-spec [option-hash-arg-spec] [block-arg-spec]
1186
1205
 
1187
1206
param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec / pre-opt-post-arg-spec
1188
1207
pre-arg-spec   := num-of-leading-mandatory-args [num-of-optional-args]
1189
1208
post-arg-spec  := sym-for-variable-length-args [num-of-trailing-mandatory-args]
1190
1209
pre-opt-post-arg-spec := num-of-leading-mandatory-args num-of-optional-args num-of-trailing-mandatory-args
 
1210
option-hash-arg-spec := sym-for-option-hash-arg
1191
1211
block-arg-spec := sym-for-block-arg
1192
1212
 
1193
1213
num-of-leading-mandatory-args  := DIGIT ; ��Ƭ���֤�����ά��ǽ�ʰ����ο�
1195
1215
sym-for-variable-length-args   := "*"   ; ³�����֤�������Ĺ������
1196
1216
                                        ; Ruby������Ǽ������뤿��λ���
1197
1217
num-of-trailing-mandatory-args := DIGIT ; ��ü���֤�����ά��ǽ�ʰ����ο�
 
1218
sym-for-option-hash-arg        := ":"   ; ���ץ����ϥå�����������
 
1219
                                        ; ����λ���; ��ά��ǽ�ʰ�����
 
1220
                                        ; ������¿���ΰ��������ꤵ�졤
 
1221
                                        ; �Ǹ�ΰ������ϥå���ʤޤ���
 
1222
                                        ; #to_hash���Ѵ���ǽ�ˤξ���
 
1223
                                        ; ��������롥�Ǹ�ΰ�����nil��
 
1224
                                        ; ��硤����Ĺ�������꤬�ʤ���
 
1225
                                        ; ��ά��ǽ�����ο�����¿����
 
1226
                                        ; ���������ꤵ�줿���˼��������
1198
1227
sym-for-block-arg              := "&"   ; ���ƥ졼���֥��å���������뤿���
1199
1228
                                        ; ����
1200
1229
--
1203
1232
  ���Ȥ�����̣�ˤʤ�ޤ������äơ��ե����ޥå�ʸ�����³��
1204
1233
  ��3�Ĥ�VALUE�ؤλ��Ȥ��֤�ɬ�פ�����ޤ��������ˤϼ�������
1205
1234
  �ѿ������åȤ���ޤ����ѿ��ؤλ��Ȥ������NULL����ꤹ��
1206
 
  ���Ȥ�Ǥ������ξ��ϼ��������������ͤϼΤƤ��ޤ����ʤ���
 
1235
  ���Ȥ�Ǥ������ξ��ϼ��������������ͤϼΤƤ��ޤ����ʤ���
1207
1236
  ��ά��ǽ��������ά���줿�����ѿ����ͤ�nil(C����Υ�٥�Ǥ�
1208
1237
  Qnil)�ˤʤ�ޤ���
1209
1238
 
1210
 
  �֤��ͤ�Ϳ����줿�����ο��Ǥ������ƥ졼���֥��å��Ͽ�����
1211
 
  ����
 
1239
  �֤��ͤ�Ϳ����줿�����ο��Ǥ������ץ����ϥå��太��ӥ�
 
1240
  �ƥ졼���֥��å��Ͽ����ޤ���
1212
1241
 
1213
1242
** Ruby�᥽�åɸƤӽФ�
1214
1243
 
1288
1317
  ���ʤ��ä�����func1�������, �㳰��ȯ���������ˤ�func2����
1289
1318
  ���ͤǤ��롥
1290
1319
 
1291
 
VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, void (*func2)(), VALUE arg2)
 
1320
VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
1292
1321
 
1293
1322
  �ؿ�func1��arg1������Ȥ��Ƽ¹Ԥ�, �¹Խ�λ��(���Ȥ��㳰��
1294
1323
  ȯ�����Ƥ�) func2��arg2������Ȥ��Ƽ¹Ԥ��롥����ͤ�func1
1395
1424
 
1396
1425
HAVE_RB_DEFINE_ALLOC_FUNC
1397
1426
 
1398
 
  rb_define_alloc_func() �ؿ����󶡤���Ƥ��뤳�ȡ��Ĥޤ�
 
1427
  rb_define_alloc_func() �ؿ����󶡤���Ƥ��뤳�ȡ��Ĥޤ�
1399
1428
  allocation framework ���Ȥ��뤳�Ȥ��̣���롥
1400
1429
  have_func("rb_define_alloc_func", "ruby.h")
1401
1430
  �η�̤�Ʊ����