/tools/Ruby/lib/ruby/1.8/i386-mingw32/intern.h

http://github.com/agross/netopenspace · C Header · 534 lines · 486 code · 3 blank · 45 comment · 2 complexity · 6807eeb560bddfa2a4f3772d2ac194a6 MD5 · raw file

  1. /**********************************************************************
  2. intern.h -
  3. $Author: shyouhei $
  4. $Date: 2011-05-23 13:49:40 +0900 (Mon, 23 May 2011) $
  5. created at: Thu Jun 10 14:22:17 JST 1993
  6. Copyright (C) 1993-2003 Yukihiro Matsumoto
  7. Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
  8. Copyright (C) 2000 Information-technology Promotion Agency, Japan
  9. **********************************************************************/
  10. /*
  11. * Functions and variables that are used by more than one source file of
  12. * the kernel.
  13. */
  14. #define ID_ALLOCATOR 1
  15. /* array.c */
  16. void rb_mem_clear _((register VALUE*, register long));
  17. VALUE rb_assoc_new _((VALUE, VALUE));
  18. VALUE rb_check_array_type _((VALUE));
  19. VALUE rb_ary_new _((void));
  20. VALUE rb_ary_new2 _((long));
  21. VALUE rb_ary_new3 __((long,...));
  22. VALUE rb_ary_new4 _((long, const VALUE *));
  23. VALUE rb_ary_freeze _((VALUE));
  24. VALUE rb_ary_aref _((int, VALUE*, VALUE));
  25. void rb_ary_store _((VALUE, long, VALUE));
  26. VALUE rb_ary_dup _((VALUE));
  27. VALUE rb_ary_to_ary _((VALUE));
  28. VALUE rb_ary_to_s _((VALUE));
  29. VALUE rb_ary_push _((VALUE, VALUE));
  30. VALUE rb_ary_pop _((VALUE));
  31. VALUE rb_ary_shift _((VALUE));
  32. VALUE rb_ary_unshift _((VALUE, VALUE));
  33. VALUE rb_ary_entry _((VALUE, long));
  34. VALUE rb_ary_each _((VALUE));
  35. VALUE rb_ary_join _((VALUE, VALUE));
  36. VALUE rb_ary_print_on _((VALUE, VALUE));
  37. VALUE rb_ary_reverse _((VALUE));
  38. VALUE rb_ary_sort _((VALUE));
  39. VALUE rb_ary_sort_bang _((VALUE));
  40. VALUE rb_ary_delete _((VALUE, VALUE));
  41. VALUE rb_ary_delete_at _((VALUE, long));
  42. VALUE rb_ary_clear _((VALUE));
  43. VALUE rb_ary_plus _((VALUE, VALUE));
  44. VALUE rb_ary_concat _((VALUE, VALUE));
  45. VALUE rb_ary_assoc _((VALUE, VALUE));
  46. VALUE rb_ary_rassoc _((VALUE, VALUE));
  47. VALUE rb_ary_includes _((VALUE, VALUE));
  48. VALUE rb_ary_cmp _((VALUE, VALUE));
  49. VALUE rb_protect_inspect _((VALUE(*)(ANYARGS),VALUE,VALUE));
  50. VALUE rb_inspecting_p _((VALUE));
  51. VALUE rb_check_array_value _((VALUE));
  52. VALUE rb_values_at _((VALUE, long, int, VALUE*, VALUE(*) _((VALUE,long))));
  53. /* bignum.c */
  54. VALUE rb_big_clone _((VALUE));
  55. void rb_big_2comp _((VALUE));
  56. VALUE rb_big_norm _((VALUE));
  57. VALUE rb_uint2big _((unsigned long));
  58. VALUE rb_int2big _((long));
  59. VALUE rb_uint2inum _((unsigned long));
  60. VALUE rb_int2inum _((long));
  61. VALUE rb_cstr_to_inum _((const char*, int, int));
  62. VALUE rb_str_to_inum _((VALUE, int, int));
  63. VALUE rb_cstr2inum _((const char*, int));
  64. VALUE rb_str2inum _((VALUE, int));
  65. VALUE rb_big2str _((VALUE, int));
  66. VALUE rb_big2str0 _((VALUE, int, int));
  67. long rb_big2long _((VALUE));
  68. #define rb_big2int(x) rb_big2long(x)
  69. unsigned long rb_big2ulong _((VALUE));
  70. #define rb_big2uint(x) rb_big2ulong(x)
  71. #if HAVE_LONG_LONG
  72. VALUE rb_ll2inum _((LONG_LONG));
  73. VALUE rb_ull2inum _((unsigned LONG_LONG));
  74. LONG_LONG rb_big2ll _((VALUE));
  75. unsigned LONG_LONG rb_big2ull _((VALUE));
  76. #endif /* HAVE_LONG_LONG */
  77. void rb_quad_pack _((char*,VALUE));
  78. VALUE rb_quad_unpack _((const char*,int));
  79. void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
  80. VALUE rb_big_unpack(unsigned long *buf, long num_longs);
  81. VALUE rb_dbl2big _((double));
  82. double rb_big2dbl _((VALUE));
  83. VALUE rb_big_plus _((VALUE, VALUE));
  84. VALUE rb_big_minus _((VALUE, VALUE));
  85. VALUE rb_big_mul _((VALUE, VALUE));
  86. VALUE rb_big_divmod _((VALUE, VALUE));
  87. VALUE rb_big_pow _((VALUE, VALUE));
  88. VALUE rb_big_and _((VALUE, VALUE));
  89. VALUE rb_big_or _((VALUE, VALUE));
  90. VALUE rb_big_xor _((VALUE, VALUE));
  91. VALUE rb_big_lshift _((VALUE, VALUE));
  92. VALUE rb_big_rand _((VALUE, double*));
  93. /* class.c */
  94. VALUE rb_class_boot _((VALUE));
  95. VALUE rb_class_new _((VALUE));
  96. VALUE rb_mod_init_copy _((VALUE, VALUE));
  97. VALUE rb_class_init_copy _((VALUE, VALUE));
  98. VALUE rb_singleton_class_clone _((VALUE));
  99. void rb_singleton_class_attached _((VALUE,VALUE));
  100. VALUE rb_make_metaclass _((VALUE, VALUE));
  101. void rb_check_inheritable _((VALUE));
  102. VALUE rb_class_inherited _((VALUE, VALUE));
  103. VALUE rb_define_class_id _((ID, VALUE));
  104. VALUE rb_module_new _((void));
  105. VALUE rb_define_module_id _((ID));
  106. VALUE rb_mod_included_modules _((VALUE));
  107. VALUE rb_mod_include_p _((VALUE, VALUE));
  108. VALUE rb_mod_ancestors _((VALUE));
  109. VALUE rb_class_instance_methods _((int, VALUE*, VALUE));
  110. VALUE rb_class_public_instance_methods _((int, VALUE*, VALUE));
  111. VALUE rb_class_protected_instance_methods _((int, VALUE*, VALUE));
  112. VALUE rb_big_rshift(VALUE, VALUE);
  113. VALUE rb_class_private_instance_methods _((int, VALUE*, VALUE));
  114. VALUE rb_obj_singleton_methods _((int, VALUE*, VALUE));
  115. void rb_define_method_id _((VALUE, ID, VALUE (*)(ANYARGS), int));
  116. void rb_frozen_class_p _((VALUE));
  117. void rb_undef _((VALUE, ID));
  118. void rb_define_protected_method _((VALUE, const char*, VALUE (*)(ANYARGS), int));
  119. void rb_define_private_method _((VALUE, const char*, VALUE (*)(ANYARGS), int));
  120. void rb_define_singleton_method _((VALUE, const char*, VALUE(*)(ANYARGS), int));
  121. VALUE rb_singleton_class _((VALUE));
  122. /* compar.c */
  123. int rb_cmpint _((VALUE, VALUE, VALUE));
  124. NORETURN(void rb_cmperr _((VALUE, VALUE)));
  125. /* enum.c */
  126. VALUE rb_block_call _((VALUE, ID, int, VALUE*, VALUE (*)(ANYARGS), VALUE));
  127. /* enumerator.c */
  128. VALUE rb_enumeratorize _((VALUE, VALUE, int, VALUE *));
  129. #define RETURN_ENUMERATOR(obj, argc, argv) do { \
  130. if (!rb_block_given_p()) \
  131. return rb_enumeratorize(obj, ID2SYM(rb_frame_this_func()), \
  132. argc, argv); \
  133. } while (0)
  134. /* error.c */
  135. RUBY_EXTERN int ruby_nerrs;
  136. VALUE rb_exc_new _((VALUE, const char*, long));
  137. VALUE rb_exc_new2 _((VALUE, const char*));
  138. VALUE rb_exc_new3 _((VALUE, VALUE));
  139. NORETURN(void rb_loaderror __((const char*, ...)));
  140. NORETURN(void rb_name_error __((ID, const char*, ...)));
  141. NORETURN(void rb_invalid_str _((const char*, const char*)));
  142. void rb_compile_error __((const char*, ...));
  143. void rb_compile_error_append __((const char*, ...));
  144. NORETURN(void rb_load_fail _((const char*)));
  145. NORETURN(void rb_error_frozen _((const char*)));
  146. void rb_check_frozen _((VALUE));
  147. /* eval.c */
  148. RUBY_EXTERN struct RNode *ruby_current_node;
  149. void ruby_set_current_source _((void));
  150. NORETURN(void rb_exc_raise _((VALUE)));
  151. NORETURN(void rb_exc_fatal _((VALUE)));
  152. VALUE rb_f_exit _((int,VALUE*));
  153. VALUE rb_f_abort _((int,VALUE*));
  154. void rb_remove_method _((VALUE, const char*));
  155. #define rb_disable_super(klass, name) ((void)0)
  156. #define rb_enable_super(klass, name) ((void)0)
  157. #define HAVE_RB_DEFINE_ALLOC_FUNC 1
  158. void rb_define_alloc_func _((VALUE, VALUE (*)(VALUE)));
  159. void rb_undef_alloc_func _((VALUE));
  160. void rb_clear_cache _((void));
  161. void rb_clear_cache_by_class _((VALUE));
  162. void rb_alias _((VALUE, ID, ID));
  163. void rb_attr _((VALUE,ID,int,int,int));
  164. int rb_method_boundp _((VALUE, ID, int));
  165. VALUE rb_dvar_defined _((ID));
  166. VALUE rb_dvar_curr _((ID));
  167. VALUE rb_dvar_ref _((ID));
  168. void rb_dvar_asgn _((ID, VALUE));
  169. void rb_dvar_push _((ID, VALUE));
  170. VALUE *rb_svar _((int));
  171. VALUE rb_eval_cmd _((VALUE, VALUE, int));
  172. int rb_obj_respond_to _((VALUE, ID, int));
  173. int rb_respond_to _((VALUE, ID));
  174. void rb_interrupt _((void));
  175. VALUE rb_apply _((VALUE, ID, VALUE));
  176. void rb_backtrace _((void));
  177. ID rb_frame_last_func _((void));
  178. ID rb_frame_this_func _((void));
  179. VALUE rb_obj_instance_eval _((int, VALUE*, VALUE));
  180. VALUE rb_mod_module_eval _((int, VALUE*, VALUE));
  181. void rb_load _((VALUE, int));
  182. void rb_load_protect _((VALUE, int, int*));
  183. NORETURN(void rb_jump_tag _((int)));
  184. int rb_provided _((const char*));
  185. void rb_provide _((const char*));
  186. VALUE rb_f_require _((VALUE, VALUE));
  187. VALUE rb_require_safe _((VALUE, int));
  188. void rb_obj_call_init _((VALUE, int, VALUE*));
  189. VALUE rb_class_new_instance _((int, VALUE*, VALUE));
  190. VALUE rb_block_proc _((void));
  191. VALUE rb_block_dup _((VALUE, VALUE, VALUE));
  192. VALUE rb_method_dup _((VALUE, VALUE, VALUE));
  193. VALUE rb_f_lambda _((void));
  194. VALUE rb_proc_call _((VALUE, VALUE));
  195. VALUE rb_obj_method _((VALUE, VALUE));
  196. VALUE rb_protect _((VALUE (*)(VALUE), VALUE, int*));
  197. void rb_set_end_proc _((void (*)(VALUE), VALUE));
  198. void rb_mark_end_proc _((void));
  199. void rb_exec_end_proc _((void));
  200. void ruby_finalize _((void));
  201. NORETURN(void ruby_stop _((int)));
  202. int ruby_cleanup _((int));
  203. int ruby_exec _((void));
  204. void rb_gc_mark_threads _((void));
  205. void rb_thread_start_timer _((void));
  206. void rb_thread_stop_timer _((void));
  207. void rb_thread_schedule _((void));
  208. void rb_thread_wait_fd _((int));
  209. int rb_thread_fd_writable _((int));
  210. void rb_thread_fd_close _((int));
  211. int rb_thread_alone _((void));
  212. void rb_thread_polling _((void));
  213. void rb_thread_sleep _((int));
  214. void rb_thread_sleep_forever _((void));
  215. VALUE rb_thread_stop _((void));
  216. VALUE rb_thread_wakeup _((VALUE));
  217. VALUE rb_thread_wakeup_alive _((VALUE));
  218. VALUE rb_thread_run _((VALUE));
  219. VALUE rb_thread_kill _((VALUE));
  220. VALUE rb_thread_alive_p _((VALUE));
  221. VALUE rb_thread_create _((VALUE (*)(ANYARGS), void*));
  222. void rb_thread_interrupt _((void));
  223. void rb_thread_trap_eval _((VALUE, int, int));
  224. void rb_thread_signal_raise _((int));
  225. void rb_thread_signal_exit _((void));
  226. int rb_thread_select _((int, fd_set *, fd_set *, fd_set *, struct timeval *));
  227. void rb_thread_wait_for _((struct timeval));
  228. VALUE rb_thread_current _((void));
  229. VALUE rb_thread_main _((void));
  230. VALUE rb_thread_local_aref _((VALUE, ID));
  231. VALUE rb_thread_local_aset _((VALUE, ID, VALUE));
  232. void rb_thread_atfork _((void));
  233. VALUE rb_exec_recursive _((VALUE(*)(VALUE, VALUE, int),VALUE,VALUE));
  234. VALUE rb_funcall_rescue __((VALUE, ID, int, ...));
  235. /* file.c */
  236. VALUE rb_file_s_expand_path _((int, VALUE *));
  237. VALUE rb_file_expand_path _((VALUE, VALUE));
  238. void rb_file_const _((const char*, VALUE));
  239. int rb_find_file_ext _((VALUE*, const char* const*));
  240. VALUE rb_find_file _((VALUE));
  241. char *rb_path_next _((const char *));
  242. char *rb_path_skip_prefix _((const char *));
  243. char *rb_path_last_separator _((const char *));
  244. char *rb_path_end _((const char *));
  245. VALUE rb_file_directory_p _((VALUE,VALUE));
  246. /* gc.c */
  247. NORETURN(void rb_memerror __((void)));
  248. int ruby_stack_check _((void));
  249. size_t ruby_stack_length _((VALUE**));
  250. int rb_during_gc _((void));
  251. char *rb_source_filename _((const char*));
  252. void rb_gc_mark_locations _((VALUE*, VALUE*));
  253. void rb_mark_tbl _((struct st_table*));
  254. void rb_mark_set _((struct st_table*));
  255. void rb_mark_hash _((struct st_table*));
  256. void rb_gc_mark_maybe _((VALUE));
  257. void rb_gc_mark _((VALUE));
  258. void rb_gc_force_recycle _((VALUE));
  259. void rb_gc _((void));
  260. void rb_gc_copy_finalizer _((VALUE,VALUE));
  261. void rb_gc_finalize_deferred _((void));
  262. void rb_gc_call_finalizer_at_exit _((void));
  263. VALUE rb_gc_enable _((void));
  264. VALUE rb_gc_disable _((void));
  265. VALUE rb_gc_start _((void));
  266. /* hash.c */
  267. void st_foreach_safe _((struct st_table *, int (*)(ANYARGS), unsigned long));
  268. void rb_hash_foreach _((VALUE, int (*)(ANYARGS), VALUE));
  269. VALUE rb_hash _((VALUE));
  270. VALUE rb_hash_new _((void));
  271. VALUE rb_hash_freeze _((VALUE));
  272. VALUE rb_hash_aref _((VALUE, VALUE));
  273. VALUE rb_hash_lookup _((VALUE, VALUE));
  274. VALUE rb_hash_aset _((VALUE, VALUE, VALUE));
  275. VALUE rb_hash_delete_if _((VALUE));
  276. VALUE rb_hash_delete _((VALUE,VALUE));
  277. int rb_path_check _((const char*));
  278. int rb_env_path_tainted _((void));
  279. /* io.c */
  280. #define rb_defout rb_stdout
  281. RUBY_EXTERN VALUE rb_fs;
  282. RUBY_EXTERN VALUE rb_output_fs;
  283. RUBY_EXTERN VALUE rb_rs;
  284. RUBY_EXTERN VALUE rb_default_rs;
  285. RUBY_EXTERN VALUE rb_output_rs;
  286. VALUE rb_io_write _((VALUE, VALUE));
  287. VALUE rb_io_gets _((VALUE));
  288. VALUE rb_io_getc _((VALUE));
  289. VALUE rb_io_ungetc _((VALUE, VALUE));
  290. VALUE rb_io_close _((VALUE));
  291. VALUE rb_io_eof _((VALUE));
  292. VALUE rb_io_binmode _((VALUE));
  293. VALUE rb_io_addstr _((VALUE, VALUE));
  294. VALUE rb_io_printf _((int, VALUE*, VALUE));
  295. VALUE rb_io_print _((int, VALUE*, VALUE));
  296. VALUE rb_io_puts _((int, VALUE*, VALUE));
  297. VALUE rb_file_open _((const char*, const char*));
  298. VALUE rb_gets _((void));
  299. void rb_write_error _((const char*));
  300. void rb_write_error2 _((const char*, long));
  301. /* marshal.c */
  302. VALUE rb_marshal_dump _((VALUE, VALUE));
  303. VALUE rb_marshal_load _((VALUE));
  304. /* numeric.c */
  305. void rb_num_zerodiv _((void));
  306. VALUE rb_num_coerce_bin _((VALUE, VALUE));
  307. VALUE rb_num_coerce_cmp _((VALUE, VALUE));
  308. VALUE rb_num_coerce_relop _((VALUE, VALUE));
  309. VALUE rb_float_new _((double));
  310. VALUE rb_num2fix _((VALUE));
  311. VALUE rb_fix2str _((VALUE, int));
  312. VALUE rb_dbl_cmp _((double, double));
  313. /* object.c */
  314. int rb_eql _((VALUE, VALUE));
  315. VALUE rb_any_to_s _((VALUE));
  316. VALUE rb_inspect _((VALUE));
  317. VALUE rb_obj_is_instance_of _((VALUE, VALUE));
  318. VALUE rb_obj_is_kind_of _((VALUE, VALUE));
  319. VALUE rb_obj_alloc _((VALUE));
  320. VALUE rb_obj_clone _((VALUE));
  321. VALUE rb_obj_dup _((VALUE));
  322. VALUE rb_obj_init_copy _((VALUE,VALUE));
  323. VALUE rb_obj_taint _((VALUE));
  324. VALUE rb_obj_tainted _((VALUE));
  325. VALUE rb_obj_untaint _((VALUE));
  326. VALUE rb_obj_freeze _((VALUE));
  327. VALUE rb_obj_id _((VALUE));
  328. VALUE rb_obj_class _((VALUE));
  329. VALUE rb_class_real _((VALUE));
  330. VALUE rb_class_inherited_p _((VALUE, VALUE));
  331. VALUE rb_convert_type _((VALUE,int,const char*,const char*));
  332. VALUE rb_check_convert_type _((VALUE,int,const char*,const char*));
  333. VALUE rb_check_to_integer _((VALUE, const char *));
  334. VALUE rb_to_int _((VALUE));
  335. VALUE rb_Integer _((VALUE));
  336. VALUE rb_Float _((VALUE));
  337. VALUE rb_String _((VALUE));
  338. VALUE rb_Array _((VALUE));
  339. double rb_cstr_to_dbl _((const char*, int));
  340. double rb_str_to_dbl _((VALUE, int));
  341. /* parse.y */
  342. RUBY_EXTERN int ruby_sourceline;
  343. RUBY_EXTERN char *ruby_sourcefile;
  344. int ruby_yyparse _((void));
  345. ID rb_id_attrset _((ID));
  346. void rb_parser_append_print _((void));
  347. void rb_parser_while_loop _((int, int));
  348. int ruby_parser_stack_on_heap _((void));
  349. void rb_gc_mark_parser _((void));
  350. int rb_is_const_id _((ID));
  351. int rb_is_instance_id _((ID));
  352. int rb_is_class_id _((ID));
  353. int rb_is_local_id _((ID));
  354. int rb_is_junk_id _((ID));
  355. int rb_symname_p _((const char*));
  356. int rb_sym_interned_p _((VALUE));
  357. VALUE rb_backref_get _((void));
  358. void rb_backref_set _((VALUE));
  359. VALUE rb_lastline_get _((void));
  360. void rb_lastline_set _((VALUE));
  361. VALUE rb_sym_all_symbols _((void));
  362. /* process.c */
  363. int rb_proc_exec _((const char*));
  364. VALUE rb_f_exec _((int,VALUE*));
  365. int rb_waitpid _((int,int*,int));
  366. void rb_syswait _((int));
  367. VALUE rb_proc_times _((VALUE));
  368. VALUE rb_detach_process _((int));
  369. /* range.c */
  370. VALUE rb_range_new _((VALUE, VALUE, int));
  371. VALUE rb_range_beg_len _((VALUE, long*, long*, long, int));
  372. VALUE rb_length_by_each _((VALUE));
  373. /* random.c */
  374. unsigned long rb_genrand_int32(void);
  375. double rb_genrand_real(void);
  376. void rb_reset_random_seed(void);
  377. /* re.c */
  378. int rb_memcmp _((const void*,const void*,long));
  379. int rb_memcicmp _((const void*,const void*,long));
  380. long rb_memsearch _((const void*,long,const void*,long));
  381. VALUE rb_reg_nth_defined _((int, VALUE));
  382. VALUE rb_reg_nth_match _((int, VALUE));
  383. VALUE rb_reg_last_match _((VALUE));
  384. VALUE rb_reg_match_pre _((VALUE));
  385. VALUE rb_reg_match_post _((VALUE));
  386. VALUE rb_reg_match_last _((VALUE));
  387. VALUE rb_reg_new _((const char*, long, int));
  388. VALUE rb_reg_match _((VALUE, VALUE));
  389. VALUE rb_reg_match2 _((VALUE));
  390. int rb_reg_options _((VALUE));
  391. void rb_set_kcode _((const char*));
  392. const char* rb_get_kcode _((void));
  393. void rb_kcode_set_option _((VALUE));
  394. void rb_kcode_reset_option _((void));
  395. /* ruby.c */
  396. RUBY_EXTERN VALUE rb_argv;
  397. RUBY_EXTERN VALUE rb_argv0;
  398. void rb_load_file _((const char*));
  399. void ruby_script _((const char*));
  400. void ruby_prog_init _((void));
  401. void ruby_set_argv _((int, char**));
  402. void ruby_process_options _((int, char**));
  403. void ruby_load_script _((void));
  404. void ruby_init_loadpath _((void));
  405. void ruby_incpush _((const char*));
  406. /* signal.c */
  407. VALUE rb_f_kill _((int, VALUE*));
  408. void rb_gc_mark_trap_list _((void));
  409. #ifdef POSIX_SIGNAL
  410. #define posix_signal ruby_posix_signal
  411. void posix_signal _((int, RETSIGTYPE (*)(int)));
  412. #endif
  413. void rb_trap_exit _((void));
  414. void rb_trap_exec _((void));
  415. const char *ruby_signal_name _((int));
  416. void ruby_default_signal _((int));
  417. /* sprintf.c */
  418. VALUE rb_f_sprintf _((int, VALUE*));
  419. VALUE rb_str_format _((int, VALUE*, VALUE));
  420. /* string.c */
  421. VALUE rb_str_new _((const char*, long));
  422. VALUE rb_str_new2 _((const char*));
  423. VALUE rb_str_new3 _((VALUE));
  424. VALUE rb_str_new4 _((VALUE));
  425. VALUE rb_str_new5 _((VALUE, const char*, long));
  426. VALUE rb_tainted_str_new _((const char*, long));
  427. VALUE rb_tainted_str_new2 _((const char*));
  428. VALUE rb_str_buf_new _((long));
  429. VALUE rb_str_buf_new2 _((const char*));
  430. VALUE rb_str_tmp_new _((long));
  431. VALUE rb_str_buf_append _((VALUE, VALUE));
  432. VALUE rb_str_buf_cat _((VALUE, const char*, long));
  433. VALUE rb_str_buf_cat2 _((VALUE, const char*));
  434. VALUE rb_obj_as_string _((VALUE));
  435. VALUE rb_check_string_type _((VALUE));
  436. VALUE rb_str_dup _((VALUE));
  437. VALUE rb_str_locktmp _((VALUE));
  438. VALUE rb_str_unlocktmp _((VALUE));
  439. VALUE rb_str_dup_frozen _((VALUE));
  440. VALUE rb_str_plus _((VALUE, VALUE));
  441. VALUE rb_str_times _((VALUE, VALUE));
  442. VALUE rb_str_substr _((VALUE, long, long));
  443. void rb_str_modify _((VALUE));
  444. VALUE rb_str_freeze _((VALUE));
  445. void rb_str_set_len _((VALUE, long));
  446. VALUE rb_str_resize _((VALUE, long));
  447. VALUE rb_str_cat _((VALUE, const char*, long));
  448. VALUE rb_str_cat2 _((VALUE, const char*));
  449. VALUE rb_str_append _((VALUE, VALUE));
  450. VALUE rb_str_concat _((VALUE, VALUE));
  451. int rb_str_hash _((VALUE));
  452. int rb_str_cmp _((VALUE, VALUE));
  453. VALUE rb_str_upto _((VALUE, VALUE, int));
  454. void rb_str_update _((VALUE, long, long, VALUE));
  455. VALUE rb_str_inspect _((VALUE));
  456. VALUE rb_str_dump _((VALUE));
  457. VALUE rb_str_split _((VALUE, const char*));
  458. void rb_str_associate _((VALUE, VALUE));
  459. VALUE rb_str_associated _((VALUE));
  460. void rb_str_setter _((VALUE, ID, VALUE*));
  461. VALUE rb_str_intern _((VALUE));
  462. /* struct.c */
  463. VALUE rb_struct_new __((VALUE, ...));
  464. VALUE rb_struct_define __((const char*, ...));
  465. VALUE rb_struct_alloc _((VALUE, VALUE));
  466. VALUE rb_struct_aref _((VALUE, VALUE));
  467. VALUE rb_struct_aset _((VALUE, VALUE, VALUE));
  468. VALUE rb_struct_getmember _((VALUE, ID));
  469. VALUE rb_struct_iv_get _((VALUE, const char*));
  470. VALUE rb_struct_s_members _((VALUE));
  471. VALUE rb_struct_members _((VALUE));
  472. /* time.c */
  473. VALUE rb_time_new _((time_t, time_t));
  474. /* variable.c */
  475. VALUE rb_mod_name _((VALUE));
  476. VALUE rb_class_path _((VALUE));
  477. void rb_set_class_path _((VALUE, VALUE, const char*));
  478. VALUE rb_path2class _((const char*));
  479. void rb_name_class _((VALUE, ID));
  480. VALUE rb_class_name _((VALUE));
  481. void rb_autoload _((VALUE, ID, const char*));
  482. VALUE rb_autoload_load _((VALUE, ID));
  483. VALUE rb_autoload_p _((VALUE, ID));
  484. void rb_gc_mark_global_tbl _((void));
  485. VALUE rb_f_trace_var _((int, VALUE*));
  486. VALUE rb_f_untrace_var _((int, VALUE*));
  487. VALUE rb_f_global_variables _((void));
  488. void rb_alias_variable _((ID, ID));
  489. struct st_table* rb_generic_ivar_table _((VALUE));
  490. void rb_copy_generic_ivar _((VALUE,VALUE));
  491. void rb_mark_generic_ivar _((VALUE));
  492. void rb_mark_generic_ivar_tbl _((void));
  493. void rb_free_generic_ivar _((VALUE));
  494. VALUE rb_ivar_get _((VALUE, ID));
  495. VALUE rb_ivar_set _((VALUE, ID, VALUE));
  496. VALUE rb_ivar_defined _((VALUE, ID));
  497. VALUE rb_iv_set _((VALUE, const char*, VALUE));
  498. VALUE rb_iv_get _((VALUE, const char*));
  499. VALUE rb_attr_get _((VALUE, ID));
  500. VALUE rb_obj_instance_variables _((VALUE));
  501. VALUE rb_obj_remove_instance_variable _((VALUE, VALUE));
  502. void *rb_mod_const_at _((VALUE, void*));
  503. void *rb_mod_const_of _((VALUE, void*));
  504. VALUE rb_const_list _((void*));
  505. VALUE rb_mod_constants _((VALUE));
  506. VALUE rb_mod_remove_const _((VALUE, VALUE));
  507. int rb_const_defined _((VALUE, ID));
  508. int rb_const_defined_at _((VALUE, ID));
  509. int rb_const_defined_from _((VALUE, ID));
  510. VALUE rb_const_get _((VALUE, ID));
  511. VALUE rb_const_get_at _((VALUE, ID));
  512. VALUE rb_const_get_from _((VALUE, ID));
  513. void rb_const_set _((VALUE, ID, VALUE));
  514. VALUE rb_mod_constants _((VALUE));
  515. VALUE rb_mod_const_missing _((VALUE,VALUE));
  516. VALUE rb_cvar_defined _((VALUE, ID));
  517. #define RB_CVAR_SET_4ARGS 1
  518. void rb_cvar_set _((VALUE, ID, VALUE, int));
  519. VALUE rb_cvar_get _((VALUE, ID));
  520. void rb_cv_set _((VALUE, const char*, VALUE));
  521. VALUE rb_cv_get _((VALUE, const char*));
  522. void rb_define_class_variable _((VALUE, const char*, VALUE));
  523. VALUE rb_mod_class_variables _((VALUE));
  524. VALUE rb_mod_remove_cvar _((VALUE, VALUE));
  525. /* version.c */
  526. void ruby_show_version _((void));
  527. void ruby_show_copyright _((void));