Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

util.h File Reference

Go to the source code of this file.

Defines

#define args   ()
#define args   ()
#define scan_oct   ruby_scan_oct
#define scan_hex   ruby_scan_hex
#define qsort(b, n, s, c, d)   ruby_qsort(b,n,s,c,d)
#define setenv(name, val)   ruby_setenv(name,val)
#define unsetenv(name, val)   ruby_unsetenv(name);
#define strdup(s)   ruby_strdup(s)
#define my_getcwd()   ruby_getcwd()
#define strtod(s, e)   ruby_strtod(s,e)

Functions

unsigned long scan_oct (const char *, int, int *)
unsigned long scan_hex (const char *, int, int *)
void ruby_qsort (void *, const int, const int, int(*(), void *))
void ruby_setenv (const char *, const char *)
void ruby_unsetenv (const char *)
char * ruby_strdup (const char *)
char * ruby_getcwd (void)
double ruby_strtod (const char *, char **)


Define Documentation

#define args   ()
 

Definition at line 33 of file util.h.

#define args   ()
 

Definition at line 33 of file util.h.

 
#define my_getcwd  )     ruby_getcwd()
 

Definition at line 61 of file util.h.

Referenced by dir_s_chdir(), dir_s_getwd(), file_expand_path(), and path_check_0().

#define qsort b,
n,
s,
c,
 )     ruby_qsort(b,n,s,c,d)
 

Definition at line 47 of file util.h.

Referenced by enum_sort_by(), and sort_internal().

#define scan_hex   ruby_scan_hex
 

Definition at line 39 of file util.h.

Referenced by re_compile_pattern(), read_escape(), and tokadd_escape().

#define scan_oct   ruby_scan_oct
 

Definition at line 37 of file util.h.

Referenced by proc_options(), re_compile_pattern(), and read_escape().

#define setenv name,
val   )     ruby_setenv(name,val)
 

Definition at line 53 of file util.h.

Referenced by ruby_setenv().

#define strdup  )     ruby_strdup(s)
 

Definition at line 58 of file util.h.

Referenced by dir_initialize(), glob_helper(), io_reopen(), opt_i_set(), prep_path(), proc_options(), rb_file_open_internal(), rb_file_sysopen_internal(), rb_intern(), rb_io_init_copy(), rb_io_reopen(), and ruby_setenv().

#define strtod s,
 )     ruby_strtod(s,e)
 

Definition at line 65 of file util.h.

Referenced by r_object0(), and rb_cstr_to_dbl().

#define unsetenv name,
val   )     ruby_unsetenv(name);
 

Definition at line 54 of file util.h.

Referenced by ruby_setenv().


Function Documentation

char* ruby_getcwd void   ) 
 

Definition at line 639 of file util.c.

References free, rb_sys_fail(), xmalloc, and xrealloc.

void ruby_qsort void *  ,
const  int,
const  int,
int(*(), void *) 
 

void ruby_setenv const char *  ,
const char * 
 

Referenced by env_aset(), env_delete(), ruby_unsetenv(), and set_arg0().

char* ruby_strdup const char *   ) 
 

Referenced by rb_require_safe().

double ruby_strtod const char *  ,
char ** 
 

void ruby_unsetenv const char *   ) 
 

unsigned long scan_hex const char *  ,
int  ,
int * 
 

unsigned long scan_oct const char *  ,
int  ,
int * 
 


Generated on Wed Jan 18 23:32:11 2006 for Ruby by doxygen 1.3.5