#include "dln.h"#include <strings.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>

Go to the source code of this file.
Defines | |
| #define | dln_notimplement --->>> dln not implemented <<<--- |
| #define | dln_memerror abort |
| #define | dln_exit exit |
| #define | free(x) xfree(x) |
| #define | S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) |
| #define | MAXPATHLEN 1024 |
| #define | FUNCNAME_PATTERN "Init_%s" |
| #define | init_funcname(buf, file) |
| #define | translit_separator(str) (void)(str) |
| #define | DLN_ERROR() (error = dln_strerror(), strcpy(ALLOCA_N(char, strlen(error) + 1), error)) |
Functions | |
| static void | dln_loaderror (const char *format,...) |
| void * | xmalloc () |
| void * | xcalloc () |
| void * | xrealloc () |
| char * | getenv () |
| static size_t | init_funcname_len (char **buf, const char *file) |
| static const char * | dln_strerror (void) |
| void * | dln_load (const char *file) |
| #define DLN_ERROR | ( | ) | (error = dln_strerror(), strcpy(ALLOCA_N(char, strlen(error) + 1), error)) |
Referenced by dln_load().
| #define dln_notimplement --->>> dln not implemented <<<--- |
| #define free | ( | x | ) | xfree(x) |
Definition at line 50 of file dln.c.
Referenced by argf_inplace_mode_set(), ary_new_dim(), clear_readconv(), cmdglob(), dealloc(), dln_find_exe_r(), do_spawn(), EVENTSINK_Destructor(), fgdbm_clear(), fgdbm_empty_p(), fgdbm_length(), fgdbm_values(), filename_completion_proc_call(), find_iid(), fitpair(), folevariant_ary_aref(), folevariant_ary_aset(), folevariant_s_array(), free_invoke_arguments(), free_unused_heaps(), freeaddrinfo(), gc_sweep(), get_addr(), get_name(), getaddrinfo(), Init_readline(), ip_invoke_core(), ip_ruby_cmd_receiver_const_get(), link(), mSyslog_close(), nsdr(), ole_const_load(), ole_event_free(), ole_excepinfo2msg(), ole_free(), ole_val_ary2variant_ary(), ole_variant2val(), ole_wc2vstr(), olemethod_free(), oleparam_free(), oletype_free(), oletypelib_free(), olevariable_free(), olevariant_free(), open_ifs_socket(), pipe_del_fptr(), rb_gdbm_fetch(), rb_gdbm_firstkey(), rb_gdbm_nextkey(), rb_io_fptr_finalize(), rb_objspace_free(), rb_remove_history(), rb_vm_bugreport(), rb_w32_closedir(), rb_w32_cmdvector(), rb_w32_free_environ(), rb_w32_getcwd(), rb_w32_mkdir(), rb_w32_open(), rb_w32_opendir(), rb_w32_rename(), rb_w32_rmdir(), rb_w32_stati64(), rb_w32_uchdir(), rb_w32_uchmod(), rb_w32_ulink(), rb_w32_umkdir(), rb_w32_unlink(), rb_w32_uopen(), rb_w32_urename(), rb_w32_urmdir(), rb_w32_ustati64(), rb_w32_utime(), rb_w32_uunlink(), rb_w32_uutime(), readdir_internal(), readline_readline(), reg_get_val(), ruby_set_inplace_mode(), ruby_setenv(), sdbm_close(), sdbm_open(), sdbm_prep(), st_cleanup_safe(), st_clear(), st_copy(), st_delete(), st_foreach(), st_free_table(), subst_free(), syck_emit(), syck_emit_indent(), syck_emitter_pop_level(), syck_parser_pop_level(), sycklex_bytecode_utf8(), sycklex_yaml_utf8(), tcl_eval(), tcl_global_eval(), thread_free(), username_completion_proc_call(), and vm_xfree().
| #define FUNCNAME_PATTERN "Init_%s" |
| #define init_funcname | ( | buf, | |||
| file | ) |
Value:
do {\ size_t len = init_funcname_len(buf, file);\ char *tmp = ALLOCA_N(char, len+1);\ if (!tmp) {\ free(*buf);\ dln_memerror();\ }\ strlcpy(tmp, *buf, len + 1);\ free(*buf);\ *buf = tmp;\ } while (0)
Definition at line 138 of file dln.c.
Referenced by dln_load().
| #define MAXPATHLEN 1024 |
Definition at line 67 of file dln.c.
Referenced by cmdglob(), dln_load(), file_expand_path(), proc_exec_v(), process_options(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_proc_exec(), rb_w32_aspawn(), rb_w32_spawn(), ruby_init_loadpath_safe(), and sys_fail2().
| #define translit_separator | ( | str | ) | (void)(str) |
| void* dln_load | ( | const char * | file | ) |
| static void dln_loaderror | ( | const char * | format, | |
| ... | ||||
| ) | [static] |
| static const char* dln_strerror | ( | void | ) | [static] |
| char* getenv | ( | ) |
| static size_t init_funcname_len | ( | char ** | buf, | |
| const char * | file | |||
| ) | [static] |
| void* xcalloc | ( | ) |
| void* xmalloc | ( | ) |
| void* xrealloc | ( | ) |