Ruby
2.0.0p598(2014-11-13revision48408)
|
Go to the source code of this file.
Macros | |
#define | TKUTIL_RELEASE_DATE "2010-03-26" |
#define | CBSUBST_TBL_MAX (256) |
#define CBSUBST_TBL_MAX (256) |
Referenced by allocate_cbsubst_info(), and if().
|
static |
Definition at line 1171 of file tkutil.c.
References ALLOC, CBSUBST_TBL_MAX, cSUBST_INFO, Data_Wrap_Struct(), idx, inf, NULL, proc, and rb_hash_new().
Referenced by cbsubst_init().
|
static |
Definition at line 1200 of file tkutil.c.
References allocate_cbsubst_info(), cCB_SUBST, ID_SUBST_INFO, NULL, and rb_const_set().
Referenced by Init_tkutil().
Data_Get_Struct | ( | rb_const_get(rb_obj_class(self), ID_SUBST_INFO) | , |
struct cbsubst_info | , | ||
inf | |||
) |
Data_Get_Struct | ( | rb_const_get(self, ID_SUBST_INFO) | , |
struct cbsubst_info | , | ||
inf | |||
) |
if | ( | rb_block_given_p() | ) |
Definition at line 90 of file tkutil.c.
References rb_obj_instance_eval(), and rb_obj_instance_exec().
if | ( | argc | = = 0 | ) |
Definition at line 192 of file tkutil.c.
References rb_block_proc().
if | ( | strncmp(cmd_id_head, RSTRING_PTR(cmd_id), head_len)! | = 0 | ) |
if | ( | strncmp(cmd_id_prefix, RSTRING_PTR(cmd_id)+head_len, prefix_len)! | = 0 | ) |
Definition at line 461 of file tkutil.c.
References cTclTkLib, ID_encoding_system, ID_to_s, and rb_funcall().
Definition at line 519 of file tkutil.c.
References cTclTkLib, ENCODING_NAME_UTF8, ID_at_enc, ID_fromUTF8, ID_merge_tklist, ID_toUTF8, idx, Qtrue, RARRAY_LEN, RARRAY_PTR(), rb_apply(), rb_funcall(), rb_ivar_set(), rb_obj_respond_to(), str_val, T_STRING, TYPE, and val.
if | ( | rb_scan_args(argc, argv,"11",&obj,&enc_flag) | = = 1 | ) |
if | ( | ) |
Definition at line 943 of file tkutil.c.
References rb_eArgError, and rb_raise().
if | ( | RSTRING_PTR(value) | = = (char*)NULL | ) |
Definition at line 1087 of file tkutil.c.
References rb_str_new().
if | ( | RSTRING_LEN(value) | = = 0 | ) |
if | ( | ptr | ) |
Definition at line 1245 of file tkutil.c.
References rb_eArgError, rb_intern_str, rb_raise(), SYM2ID, T_STRING, and T_SYMBOL.
Definition at line 1283 of file tkutil.c.
References rb_eArgError, and rb_raise().
if | ( | idx >= | CBSUBST_TBL_MAX | ) |
Definition at line 10277 of file tcltklib.c.
References NIL_P(), rb_enc_from_encoding(), rb_enc_from_index(), rb_hash_lookup, and tmp.
if | ( | rb_scan_args(argc, argv,"21",&key_inf,&longkey_inf,&proc_inf) | = = 2 | ) |
Definition at line 1536 of file tkutil.c.
References longkey_inf, and rb_ary_new().
if | ( | RARRAY_LEN(longkey_inf) | , |
125 | |||
) |
Definition at line 1542 of file tkutil.c.
References rb_eArgError, and rb_raise().
void Init_tkutil | ( | ) |
Definition at line 1736 of file tkutil.c.
References CALLBACK_TABLE, cbsubst_init(), cCB_SUBST, cMethod, cSUBST_INFO, cTclTkLib, cTkCallbackEntry, cTkObject, ENCODING_NAME_UTF8, ID_at_enc, ID_at_path, ID_call, ID_downcase, ID_encoding, ID_encoding_system, ID_fromUTF8, ID_install_cmd, ID_merge_tklist, ID_path, ID_source, ID_split_tklist, ID_SUBST_INFO, ID_to_eval, ID_to_s, ID_toUTF8, OBJ_FREEZE, rb_cObject, rb_const_get(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_method(), rb_define_module(), rb_define_singleton_method(), rb_global_variable(), rb_hash_new(), rb_intern, rb_obj_alloc(), rb_obj_freeze(), rb_require(), rb_str_new2, TK_None, and tk_toUTF8().
rb_alias | ( | klass | , |
key_id | , | ||
value_id | |||
) |
rb_const_set | ( | self | , |
ID_SUBST_INFO | , | ||
cbsubst_obj | |||
) |
rb_gc_mark | ( | ptr-> | aliases | ) |
rb_hash_aset | ( | CALLBACK_TABLE | , |
id_num | , | ||
cmd | |||
) |
return rb_hash_delete | ( | CALLBACK_TABLE | , |
rb_str_new2(RSTRING_PTR(cmd_id)+head_len) | |||
) |
return rb_str_append | ( | rb_str_new2(cmd_id_head) | , |
id_num | |||
) |
StringValue | ( | cmd_id | ) |
switch | ( | argc | ) |
Definition at line 757 of file tkutil.c.
References rb_eArgError, and rb_raise().
Definition at line 771 of file tkutil.c.
References ary, NIL_P(), rb_ary_new(), rb_eArgError, rb_raise(), RTEST, T_ARRAY, T_HASH, T_NIL, and TK_None.
Definition at line 1259 of file tkutil.c.
References rb_eArgError, rb_intern_str, rb_raise(), SYM2ID, T_STRING, and T_SYMBOL.
Referenced by Init_tkutil().
xfree | ( | buf | ) |
xfree | ( | keys_buf | ) |
|
static |
Definition at line 545 of file tkutil.c.
Referenced by fdbm_select(), fgdbm_select(), fsdbm_select(), pty_open(), rb_str_associate(), and rb_str_new_frozen().
char* buf |
|
static |
Definition at line 74 of file tkutil.c.
Referenced by Init_tkutil().
cbsubst_obj = allocate_cbsubst_info(&subst_inf) |
|
static |
Definition at line 51 of file tkutil.c.
Referenced by cbsubst_init(), and Init_tkutil().
|
static |
Definition at line 42 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 52 of file tkutil.c.
Referenced by allocate_cbsubst_info(), and Init_tkutil().
|
static |
Definition at line 44 of file tkutil.c.
Referenced by if(), and Init_tkutil().
|
static |
Definition at line 47 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 46 of file tkutil.c.
Referenced by Init_tkutil().
volatile VALUE dst = rb_ary_new2(size) |
else |
|
static |
Definition at line 54 of file tkutil.c.
Referenced by if(), and Init_tkutil().
Definition at line 267 of file tkutil.c.
Referenced by ary_add_hash(), ary_add_hash_by(), ary_make_hash(), ary_make_hash_by(), ary_tmp_hash_new(), BigDecimal_hash(), core_hash_merge(), count_nodes(), count_objects(), count_objects_size(), count_tdata_objects(), cto_i(), date__httpdate(), date__iso8601(), date__jisx0301(), date__parse(), date__rfc2822(), date__rfc3339(), date__strptime(), date__xmlschema(), date_s__parse_internal(), date_s__strptime_internal(), date_s_httpdate(), date_s_iso8601(), date_s_jisx0301(), date_s_parse(), date_s_rfc2822(), date_s_rfc3339(), date_s_strptime(), date_s_xmlschema(), datetime_s_httpdate(), datetime_s_iso8601(), datetime_s_jisx0301(), datetime_s_parse(), datetime_s_rfc2822(), datetime_s_rfc3339(), datetime_s_strptime(), datetime_s_xmlschema(), debug_lines(), enum_group_by(), env_to_hash(), extract_keywords(), fdbm_invert(), fdbm_to_hash(), fgdbm_invert(), fgdbm_to_hash(), flo_hash(), fsdbm_invert(), fsdbm_to_hash(), gc_stat(), get_hash(), hash_alloc(), hash_foreach_call(), hidden_identity_hash_new(), if(), Init_ossl_x509name(), iseq_data_to_ary(), m_core_hash_from_ary(), m_core_hash_merge_ary(), m_core_hash_merge_kwd(), m_core_hash_merge_ptr(), match(), method_hash(), ossl_dh_get_params(), ossl_dsa_get_params(), ossl_rsa_get_params(), ossl_sslctx_get_session_cache_stats(), ossl_x509name_hash(), proc_hash(), rb_ary_and(), rb_ary_diff(), rb_ary_or(), rb_ary_uniq(), rb_ary_uniq_bang(), rb_big_hash(), rb_exec_getargs(), rb_hash_clear(), rb_hash_compare_by_id(), rb_hash_delete_if(), rb_hash_each_key(), rb_hash_each_pair(), rb_hash_each_value(), rb_hash_foreach(), rb_hash_initialize(), rb_hash_initialize_copy(), rb_hash_keep_if(), rb_hash_method_definition(), rb_hash_rehash(), rb_hash_reject_bang(), rb_hash_replace(), rb_hash_s_create(), rb_hash_select_bang(), rb_hash_to_h(), rb_hash_to_hash(), rb_reg_named_captures(), rb_scan_args(), rb_str_format(), rb_str_sub_bang(), recursive_hash(), recursive_list_access(), reg_named_captures_iter(), rt_complete_frags(), rt_rewrite_frags(), sdbm_store(), set_zero(), set_zero_i(), st_foreach(), st_foreach_check(), str_gsub(), subx(), switch(), tr_trans(), and unpack_entries().
ID id = rb_intern_str(rb_sprintf("@%"PRIsVALUE, str)) |
|
static |
Definition at line 61 of file tkutil.c.
Referenced by if(), and Init_tkutil().
|
static |
Definition at line 60 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 70 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 65 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 68 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 69 of file tkutil.c.
Referenced by if(), and Init_tkutil().
|
static |
Definition at line 58 of file tkutil.c.
Referenced by if(), and Init_tkutil().
|
static |
Definition at line 66 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 67 of file tkutil.c.
Referenced by if(), and Init_tkutil().
id_num = ULONG2NUM(CALLBACK_ID_NUM++) |
|
static |
Definition at line 59 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 64 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 56 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 72 of file tkutil.c.
Referenced by cbsubst_init(), and Init_tkutil().
|
static |
Definition at line 62 of file tkutil.c.
Referenced by Init_tkutil().
|
static |
Definition at line 63 of file tkutil.c.
Referenced by if(), and Init_tkutil().
|
static |
Definition at line 57 of file tkutil.c.
Referenced by if(), and Init_tkutil().
long idx |
|
static |
Definition at line 265 of file tkutil.c.
Referenced by check_deadlock_i(), check_exec_env_i(), check_exec_options_i(), check_exec_options_i_extract(), compare_posix_sh(), constat_delete(), cto_i(), cv_i(), env_fetch(), env_select(), env_shift(), fc_i(), fdbm_clear(), fdbm_delete(), fdbm_delete_if(), fdbm_each_key(), fdbm_each_pair(), fdbm_each_value(), fdbm_empty_p(), fdbm_fetch(), fdbm_has_key(), fdbm_has_value(), fdbm_invert(), fdbm_key(), fdbm_keys(), fdbm_length(), fdbm_select(), fdbm_shift(), fdbm_store(), fdbm_to_a(), fdbm_to_hash(), fdbm_values(), fgdbm_clear(), fgdbm_empty_p(), fgdbm_has_key(), fgdbm_length(), fgdbm_store(), fgdbm_values(), fill_envp_buf_i(), force_chain_object(), fsdbm_clear(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), fsdbm_empty_p(), fsdbm_fetch(), fsdbm_has_key(), fsdbm_has_value(), fsdbm_invert(), fsdbm_key(), fsdbm_keys(), fsdbm_length(), fsdbm_select(), fsdbm_shift(), fsdbm_store(), fsdbm_to_a(), fsdbm_to_hash(), fsdbm_values(), generate_json_object(), generic_ivar_remove(), getnext(), getnkey(), gvar_i(), hash2named_arg(), hash2ptr_dispparams(), hash_aset_str(), hash_foreach_iter(), if(), iseq_compile_each(), ivar_i(), key_i(), load_unlock(), new_entry(), obj_ivar_each(), oletypelib_path(), onig_st_insert_strend(), onig_st_lookup_strend(), ossl_call_client_cert_cb(), ossl_cipher_init(), ossl_cipher_initialize(), ossl_cipher_pkcs5_keyivgen(), ossl_cipher_set_key(), ossl_pkcs12_initialize(), ossl_pkcs12_s_create(), ossl_pkcs7_decrypt(), ossl_pkcs7_s_sign(), ossl_spki_set_public_key(), ossl_sslctx_setup(), ossl_x509_set_public_key(), ossl_x509req_set_public_key(), parse_exp(), r_leave(), r_object0(), rb_enc_aliases_enc_i(), rb_execarg_fixup(), rb_execarg_run_options(), rb_free_generic_ivar(), rb_gdbm_delete(), rb_gdbm_fetch2(), rb_gdbm_firstkey(), rb_gdbm_nextkey(), rb_hash_default(), rb_hash_fetch_m(), rb_hash_s_create(), rb_hash_update_func_callback(), rb_iseq_parameters(), rb_struct_each_pair(), reachable_object_from_i(), remove_method(), run_final(), set_state_ivars(), shift_i(), shift_i_safe(), socklist_delete(), splpage(), st_foreach(), st_foreach_check(), st_insert2(), st_update(), sv_i(), terminate_atfork_before_exec_i(), terminate_atfork_i(), terminate_i(), tr_setup_table(), unknown_keyword_error(), unpack_entries(), update_char_offset(), and yaml_document_append_mapping_pair().
volatile VALUE key_inf |
long keylen = RSTRING_LEN(arg_key) |
unsigned char* keyptr = (unsigned char*)RSTRING_PTR(arg_key) |
VALUE keys |
Definition at line 276 of file tkutil.c.
Referenced by env_each_key(), env_reject_bang(), env_replace(), env_select(), env_select_bang(), generate_json_object(), rb_env_clear(), and unknown_keyword_error().
* keys_ptr = keys_buf = ALLOC_N(char, CBSUBST_TBL_MAX + 1) |
len = RARRAY_LEN(assoc) |
list |
old_gc = rb_gc_disable() |
volatile VALUE pair |
Definition at line 554 of file tkutil.c.
Referenced by addrinfo_mload(), decorate_convpath(), rb_econv_init_by_convpath(), rb_execarg_fixup(), rb_execarg_run_options(), rb_w32_socketpair(), yaml_document_append_mapping_pair(), yaml_emitter_anchor_node(), yaml_emitter_dump_mapping(), and yaml_parser_load_mapping().
size_t prefix_len = strlen(cmd_id_prefix) |
Definition at line 206 of file tkutil.c.
Referenced by pruby_var_prefixed_p(), and yaml_parser_parse_node().
* ptr = RSTRING_PTR(value) |
return Qnil |
req_chk_flag |
return ret = rb_str_new2(buf) |
size = RARRAY_LEN(ary) |
return ST_CHECK |
|
static |
volatile VALUE str_enc |
Definition at line 458 of file tkutil.c.
Referenced by rb_enc_cr_str_buf_cat(), rb_reg_regsub(), rb_str_sub_bang(), and str_gsub().
VALUE sym |
Definition at line 1298 of file tkutil.c.
Referenced by cv_list_i(), iseq_build_from_ary_body(), list_i(), mnew(), rb_call_inits(), rb_dlcfunc_set_calltype(), rb_dlptr_initialize(), rb_dlptr_s_malloc(), rb_fiddle_ptr_initialize(), rb_fiddle_ptr_s_malloc(), rb_threadptr_pending_interrupt_check_mask(), recursive_list_access(), register_label(), sym_to_proc(), sym_to_sym(), symbol2event_flag(), tracepoint_inspect(), vm_call_opt_send(), and w_symbol().
sys_enc = rb_funcall(cTclTkLib, ID_encoding, 0, 0) |
VALUE tbl |
Definition at line 1279 of file tkutil.c.
Referenced by ary_recycle_hash(), autoload_data(), autoload_defined_p(), autoload_delete(), autoload_memsize(), cv_i(), cvar_list(), generic_ivar_defined(), generic_ivar_get(), generic_ivar_remove(), generic_ivar_set(), givar_i(), hash_foreach_iter(), mod_cvar_at(), move_refined_method(), NOINSERT_UPDATE_CALLBACK(), obj_ivar_each(), rb_autoload(), rb_const_list(), rb_copy_generic_ivar(), rb_free_generic_ivar(), rb_generic_ivar_memsize(), rb_generic_ivar_table(), rb_hash_rehash(), rb_hash_rehash_i(), rb_iseq_build_from_ary(), rb_iseq_disasm(), rb_ivar_count(), rb_ivar_foreach(), rb_mark_generic_ivar(), rb_mod_class_variables(), rb_mod_const_at(), rb_mod_constants(), st_init_table_with_size(), sv_i(), switch(), unknown_keyword_error(), val2dispatch(), and vtable_alloc().
int thr_crit_bup = rb_thread_critical |
|
static |
Definition at line 49 of file tkutil.c.
Referenced by Init_tkutil(), and switch().
const char tkutil_release_date[] = TKUTIL_RELEASE_DATE |
long vallen = RARRAY_LEN(val_ary) |