|
Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdarg.h>#include <stdint.h>#include <assert.h>Go to the source code of this file.
Data Structures | |
| struct | tab |
| struct | string_t |
Macros | |
| #define | local static |
| #define | PRIbig "ju" |
Typedefs | |
| typedef uintmax_t | big_t |
| typedef uintmax_t | code_t |
Functions | |
| void | string_clear (string_t *s) |
| void | string_init (string_t *s) |
| void | string_free (string_t *s) |
| void | string_printf (string_t *s, char *fmt,...) |
| size_t | map (int syms, int left, int len) |
| void | cleanup (void) |
| big_t | count (int syms, int left, int len) |
| int | been_here (int syms, int left, int len, int mem, int rem) |
| void | examine (int syms, int left, int len, int mem, int rem) |
| void | enough (int syms) |
| int | main (int argc, char **argv) |
Variables | |
| struct { | |
| int max | |
| int root | |
| int large | |
| size_t size | |
| big_t tot | |
| string_t out | |
| int * code | |
| big_t * num | |
| struct tab * done | |
| } | g |
| void cleanup | ( | void | ) |
| void enough | ( | int | syms | ) |
Definition at line 361 of file enough.c.
References assert, been_here(), bits(), examine(), g, len, string_clear(), and string_printf().
Definition at line 237 of file enough.c.
Referenced by been_here(), count(), enough(), onig_renumber_name_table(), onigenc_apply_all_case_fold_with_map(), onigenc_get_case_fold_codes_by_str_with_map(), and rb_vm_bugreport().
| void string_clear | ( | string_t * | s | ) |
Definition at line 181 of file enough.c.
References string_t::len, and string_t::str.
Referenced by enough(), examine(), and string_init().
| void string_free | ( | string_t * | s | ) |
Definition at line 195 of file enough.c.
References free, string_t::len, NULL, string_t::size, and string_t::str.
Referenced by cleanup().
| void string_init | ( | string_t * | s | ) |
Definition at line 187 of file enough.c.
References assert, malloc, NULL, string_t::size, string_t::str, and string_clear().
Referenced by main().
| void string_printf | ( | string_t * | s, |
| char * | fmt, | ||
| ... | |||
| ) |
Definition at line 204 of file enough.c.
References assert, len, string_t::len, NULL, realloc, string_t::size, string_t::str, and vsnprintf.
Referenced by examine().
| struct { ... } g |
Referenced by __attribute__(), bar(), been_here(), cleanup(), count(), enough(), examine(), Init_ossl_dh(), Init_ossl_dsa(), main(), map(), rb_thread_create_ractor(), SHA256_Transform(), and SHA512_Transform().
| int max |
Definition at line 225 of file enough.c.
Referenced by compress2(), gz_comp(), gz_load(), inflate_table(), inflate_table9(), log_compress(), lunpipe(), PACKED_STRUCT_UNALIGNED(), rb_block_arity(), rb_block_min_max_arity(), rb_block_pair_yield_optimizable(), rb_error_arity(), rb_method_entry_arity(), rb_obj_gc_flags(), rb_proc_arity(), rb_thread_fd_select(), rb_w32_fd_copy(), ruby_setenv(), and uncompress2().
| big_t* num |
Definition at line 232 of file enough.c.
Referenced by asn1integer_to_num(), date_zone_to_diff(), gzip_normalize(), onig_scan_unsigned_number(), ossl_time_split(), rb_big2long(), rb_big2ulong(), rb_big_even_p(), rb_big_odd_p(), rb_cstr_to_rat(), rb_fix2short(), rb_fix2ushort(), rb_flo_div_flo(), rb_flo_is_finite_p(), rb_flo_is_infinite_p(), rb_float_ceil(), rb_float_div(), rb_float_floor(), rb_int_abs(), rb_int_bit_length(), rb_int_comp(), rb_int_even_p(), rb_int_negative_p(), rb_int_odd_p(), rb_int_positive_p(), rb_int_powm(), rb_int_succ(), rb_int_truncate(), rb_int_uminus(), rb_int_zero_p(), rb_ivar_count(), rb_nmin_run(), rb_num2short(), rb_num2ushort(), rb_num_negative_p(), rb_out_of_int(), rb_rational_abs(), rb_rational_pow(), rb_str_concat_literals(), rb_str_format(), rb_sym2id(), rb_time_interval(), rb_time_timespec_interval(), rb_w32_get_environ(), rb_w32_getprotobynumber(), and yyparse().
| string_t out |
Definition at line 230 of file enough.c.
Referenced by def(), deflate_index_extract(), ffi_prep_closure_loc(), gunpipe(), gzcopy(), gzinit(), gzip_normalize(), gztack(), inf(), inflate(), inflate_fast(), inflateBack(), inflateBack9(), inflateSync(), lunpipe(), ossl_bin2hex(), permute(), put4(), rb_assert_failure(), rb_io_print(), rb_io_printf(), rb_io_puts(), and rb_ractor_stdout_set().
| int root |
Definition at line 226 of file enough.c.
Referenced by getifaddrs(), inflate_table(), inflate_table9(), onig_compile_ruby(), onig_parse_make_tree(), rb_file_dirname(), rb_file_expand_path_internal(), and ruby_enc_find_basename().