Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
Data Structures | Macros | Functions | Variables
objspace_dump.c File Reference
#include "gc.h"
#include "internal.h"
#include "internal/hash.h"
#include "internal/string.h"
#include "internal/sanitizers.h"
#include "node.h"
#include "objspace.h"
#include "ruby/debug.h"
#include "ruby/util.h"
#include "ruby/io.h"
#include "vm_core.h"

Go to the source code of this file.

Data Structures

struct  dump_config
 

Macros

#define BUFFER_CAPACITY   4096
 
#define dump_append(dc, str)   buffer_append(dc, (str), (long)strlen(str))
 
#define CASE_TYPE(type)   case T_##type: return #type
 

Functions

void Init_objspace_dump (VALUE rb_mObjSpace)
 

Variables

const char ruby_hexdigits []
 

Macro Definition Documentation

◆ BUFFER_CAPACITY

#define BUFFER_CAPACITY   4096

Definition at line 29 of file objspace_dump.c.

◆ CASE_TYPE

#define CASE_TYPE (   type)    case T_##type: return #type

◆ dump_append

#define dump_append (   dc,
  str 
)    buffer_append(dc, (str), (long)strlen(str))

Definition at line 87 of file objspace_dump.c.

Function Documentation

◆ Init_objspace_dump()

void Init_objspace_dump ( VALUE  rb_mObjSpace)

Definition at line 622 of file objspace_dump.c.

References rb_define_module(), rb_define_module_function, and rb_obj_gc_flags().

Referenced by Init_objspace().

Variable Documentation

◆ ruby_hexdigits

const char ruby_hexdigits[]
extern

Definition at line 34 of file util.c.