#include "ruby.h"
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include "util.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
Go to the source code of this file.
Data Structures | |
| struct | stack_node |
Defines | |
| #define | S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) |
| #define | A ((int*)a) |
| #define | B ((int*)b) |
| #define | C ((int*)c) |
| #define | D ((int*)d) |
| #define | mmprepare(base, size) |
| #define | mmarg mmkind, size, high, low |
| #define | mmswap(a, b) mmswap_((a),(b),mmarg) |
| #define | mmrot3(a, b, c) mmrot3_((a),(b),(c),mmarg) |
| #define | PUSH(ll, rr) do { top->LL = (ll); top->RR = (rr); ++top; } while (0) |
| #define | POP(ll, rr) do { --top; ll = top->LL; rr = top->RR; } while (0) |
| #define | med3(a, b, c) |
| #define | TRUE 1 |
| #define | FALSE 0 |
Functions | |
| unsigned long | scan_oct (char *start, int len, int *retlen) const |
| unsigned long | scan_hex (char *start, int len, int *retlen) const |
| void | mmswap_ (char *a, char *b, int mmarg) |
| void | mmrot3_ (char *a, char *b, char *c, int mmarg) |
| void | ruby_qsort (void *base, const int nel, const int size, cmp, void *d) |
| char * | ruby_strdup (char *str) const |
| char * | ruby_getcwd () |
| double | ruby_strtod (char *string, char **endPtr) const |
Variables | |
| int | MDMINEXPT = -323 |
| int | MDMAXEXPT = 309 |
| double | powersOf10 [] |
|
|
|
|
|
|
|
|
Definition at line 389 of file util.c. Referenced by mmrot3_(). |
|
|
|
|
|
Definition at line 683 of file util.c. Referenced by ruby_strtod(). |
|
|
Value: ((*cmp)(a,b,d)<0 ? \
((*cmp)(b,c,d)<0 ? b : ((*cmp)(a,c,d)<0 ? c : a)) : \
((*cmp)(b,c,d)>0 ? b : ((*cmp)(a,c,d)<0 ? a : c)))
Definition at line 469 of file util.c. Referenced by ruby_qsort(). |
|
|
|
|
|
Value: do {\ if (((long)base & (0x3)) == 0)\ if (size >= 16) mmkind = 1;\ else mmkind = 0;\ else mmkind = -1;\ high = (size & (~0xf));\ low = (size & 0x0c);\ } while (0)\ Definition at line 392 of file util.c. Referenced by ruby_qsort(). |
|
|
Definition at line 454 of file util.c. Referenced by ruby_qsort(). |
|
|
Definition at line 428 of file util.c. Referenced by ruby_qsort(). |
|
|
Definition at line 467 of file util.c. Referenced by ruby_qsort(). |
|
|
|
|
|
|
|
|
Definition at line 682 of file util.c. Referenced by glob_helper(), and ruby_strtod(). |
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Definition at line 639 of file util.c. References free, rb_sys_fail(), xmalloc, and xrealloc. |
|
||||||||||||||||||||||||
|
|
|
|
Definition at line 626 of file util.c. References xmalloc. |
|
||||||||||||
|
Definition at line 721 of file util.c. References FALSE, ISDIGIT, ISSPACE, MDMAXEXPT, MDMINEXPT, NULL, powersOf10, and TRUE. |
|
||||||||||||||||
|
Definition at line 46 of file util.c. References strchr(). |
|
||||||||||||||||
|
|
|
|
Definition at line 686 of file util.c. Referenced by ruby_strtod(). |
|
|
Definition at line 685 of file util.c. Referenced by ruby_strtod(). |
|
|
Initial value: {
10.0,
100.0,
1.0e4,
1.0e8,
1.0e16,
1.0e32,
1.0e64,
1.0e128,
1.0e256
}
Definition at line 687 of file util.c. Referenced by ruby_strtod(). |
1.3.5