Defines | Functions | Variables

include/ruby/defines.h File Reference

#include <stdlib.h>
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RUBY
#define _(args)   ()
#define __(args)   ()
#define ANYARGS
#define xmalloc   ruby_xmalloc
#define xmalloc2   ruby_xmalloc2
#define xcalloc   ruby_xcalloc
#define xrealloc   ruby_xrealloc
#define xrealloc2   ruby_xrealloc2
#define xfree   ruby_xfree
#define STRINGIZE(expr)   STRINGIZE0(expr)
#define STRINGIZE0(expr)   #expr
#define BDIGIT   unsigned int
#define SIZEOF_BDIGITS   SIZEOF_INT
#define BDIGIT_DBL   unsigned LONG_LONG
#define BDIGIT_DBL_SIGNED   LONG_LONG
#define INFINITY   (*(float *)rb_infinity)
#define NAN   (*(float *)rb_nan)
#define RUBY_EXTERN   extern
#define EXTERN   RUBY_EXTERN
#define RUBY_MBCHAR_MAXSIZE   INT_MAX
#define FLUSH_REGISTER_WINDOWS   ((void)0)
#define PATH_SEP   ":"
#define PATH_SEP_CHAR   PATH_SEP[0]
#define PATH_ENV   "PATH"
#define CASEFOLD_FILESYSTEM   0
#define DLEXT_MAXLEN   4
#define RUBY_PLATFORM   "unknown-unknown"
#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args)   type prot {return name args;}
#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args)   void prot {name args;}
#define RUBY_ALIAS_FUNCTION(prot, name, args)   RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)

Functions

void * xmalloc (size_t)
void * xmalloc2 (size_t, size_t)
void * xcalloc (size_t, size_t)
void * xrealloc (void *, size_t)
void * xrealloc2 (void *, size_t, size_t)
void xfree (void *)

Variables

const unsigned char rb_infinity []
const unsigned char rb_nan []

Define Documentation

#define _ (   args  )     ()

Definition at line 36 of file defines.h.

#define __ (   args  )     ()

Definition at line 43 of file defines.h.

#define ANYARGS

Definition at line 49 of file defines.h.

Referenced by copy_stream_fallback().

#define BDIGIT   unsigned int
#define BDIGIT_DBL   unsigned LONG_LONG
#define BDIGIT_DBL_SIGNED   LONG_LONG

Definition at line 84 of file defines.h.

Referenced by bigdivrem1(), bigsub_core(), and bigsub_int().

#define CASEFOLD_FILESYSTEM   0

Definition at line 289 of file defines.h.

#define DLEXT_MAXLEN   4

Definition at line 294 of file defines.h.

Referenced by rb_feature_p().

#define EXTERN   RUBY_EXTERN

Definition at line 240 of file defines.h.

#define FLUSH_REGISTER_WINDOWS   ((void)0)

Definition at line 269 of file defines.h.

#define INFINITY   (*(float *)rb_infinity)
#define NAN   (*(float *)rb_nan)

Definition at line 115 of file defines.h.

Referenced by Init_Numeric().

#define PATH_ENV   "PATH"
#define PATH_SEP   ":"

Definition at line 275 of file defines.h.

Referenced by dln_find_1(), and Init_File().

#define PATH_SEP_CHAR   PATH_SEP[0]

Definition at line 277 of file defines.h.

#define RUBY

Definition at line 20 of file defines.h.

#define RUBY_ALIAS_FUNCTION (   prot,
  name,
  args 
)    RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)

Definition at line 310 of file defines.h.

#define RUBY_ALIAS_FUNCTION_TYPE (   type,
  prot,
  name,
  args 
)    type prot {return name args;}

Definition at line 302 of file defines.h.

#define RUBY_ALIAS_FUNCTION_VOID (   prot,
  name,
  args 
)    void prot {name args;}

Definition at line 306 of file defines.h.

#define RUBY_EXTERN   extern

Definition at line 236 of file defines.h.

#define RUBY_MBCHAR_MAXSIZE   INT_MAX

Definition at line 244 of file defines.h.

#define RUBY_PLATFORM   "unknown-unknown"

Definition at line 298 of file defines.h.

Referenced by Init_dl().

#define SIZEOF_BDIGITS   SIZEOF_INT
#define STRINGIZE (   expr  )     STRINGIZE0(expr)

Definition at line 66 of file defines.h.

Referenced by long_toobig().

#define STRINGIZE0 (   expr  )     #expr

Definition at line 68 of file defines.h.

#define xcalloc   ruby_xcalloc

Definition at line 54 of file defines.h.

Referenced by callback(), function_call(), initialize(), rb_parser_calloc(), and start_document().

#define xfree   ruby_xfree

Definition at line 57 of file defines.h.

#define xmalloc   ruby_xmalloc
#define xmalloc2   ruby_xmalloc2

Definition at line 53 of file defines.h.

#define xrealloc   ruby_xrealloc
#define xrealloc2   ruby_xrealloc2

Definition at line 56 of file defines.h.


Function Documentation

void* xcalloc ( size_t  ,
size_t   
)
void xfree ( void *   ) 

Referenced by allocate_converted_string(), argf_free(), ary_resize_capa(), bbuf_free(), bm_free(), call_original_exit(), callback(), cbsubst_get_all_subst_keys(), cbsubst_get_subst_arg(), cbsubst_get_subst_key(), cbsubst_sym_to_subst(), clear_optimize_info(), dealloc(), deallocate(), dir_free(), dir_s_chdir(), dispose_string(), dlcfunc_free(), dlhandle_sym(), dyna_pop_gen(), file_expand_path(), flo_to_s(), free_dbm(), free_dump_arg(), free_load_arg(), free_window(), function_call(), i_free_name_entry(), i_free_shared_class(), init_copy(), ip_free(), ip_ruby_cmd(), ip_ruby_cmd_receiver_get(), ip_ruby_eval(), ip_set_exc_message(), iseq_set_sequence(), lib_eventloop_ensure(), lib_fromUTF8_core(), lib_thread_callback(), lib_toUTF8_core(), load_unlock(), local_pop_gen(), name_add(), obj_free(), onig_compile(), onig_free(), onig_free_body(), onig_free_node_list(), onig_node_free(), onig_node_str_clear(), onig_region_free(), onig_region_resize(), onig_st_insert_strend(), output_hex_charref(), parser_free(), path_check_0(), rand_init(), rb_alias_variable(), rb_ary_free(), rb_ary_initialize(), rb_ary_replace(), rb_ary_sort_bang(), rb_big_realloc(), rb_digest_base_alloc(), rb_dir_getwd(), rb_dlcfunc_initialize(), rb_econv_binmode(), rb_econv_close(), rb_econv_insert_output(), rb_econv_open0(), rb_econv_set_replacement(), rb_exec_end_proc(), rb_free_method_entry(), rb_gc_unregister_address(), rb_objspace_call_finalizer(), rb_parser_free(), rb_run_exec_options_err(), rb_stat_init(), rb_stat_init_copy(), rb_str_drop_bytes(), rb_str_free(), rb_str_resize(), rb_strftime_alloc(), rb_sweep_method_entry(), rb_thread_blocking_region_end(), rb_transcoding_close(), remove_event_hook(), remove_trace(), ruby_getcwd(), ruby_setenv(), run_exec_dup2(), start_document(), str_discard(), strftimev(), strio_free(), subst_free(), tcl_protect_core(), tcltklib_compile_info(), time_free(), time_strftime(), token_info_pop(), tr_trans(), transcode_search_path(), unset_addr_list_end(), update_string_node_case_fold(), VpFree(), vtable_free(), zlib_mem_free(), and zstream_free().

void* xmalloc ( size_t   ) 
void* xmalloc2 ( size_t  ,
size_t   
)
void* xrealloc ( void *  ,
size_t   
)
void* xrealloc2 ( void *  ,
size_t  ,
size_t   
)

Variable Documentation

const unsigned char rb_infinity[]

For internal use only.

const unsigned char rb_nan[]

For internal use only.