Ruby: include/ruby/internal/intern/parse.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

parse.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_PARSE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_PARSE_H
23#include "ruby/internal/attr/const.h"
24#include "ruby/internal/dllexport.h"
25#include "ruby/internal/value.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29/* parse.y */
30 ID rb_id_attrset(ID);
31
32 RBIMPL_ATTR_CONST()
33int rb_is_const_id(ID);
34
35 RBIMPL_ATTR_CONST()
36int rb_is_global_id(ID);
37
38 RBIMPL_ATTR_CONST()
39int rb_is_instance_id(ID);
40
41 RBIMPL_ATTR_CONST()
42int rb_is_attrset_id(ID);
43
44 RBIMPL_ATTR_CONST()
45int rb_is_class_id(ID);
46
47 RBIMPL_ATTR_CONST()
48int rb_is_local_id(ID);
49
50 RBIMPL_ATTR_CONST()
51int rb_is_junk_id(ID);
52int rb_symname_p(const char*);
53 int rb_sym_interned_p(VALUE);
54 VALUE rb_backref_get(void);
55void rb_backref_set(VALUE);
56 VALUE rb_lastline_get(void);
57void rb_lastline_set(VALUE);
58
59/* symbol.c */
60 VALUE rb_sym_all_symbols(void);
61
62 RBIMPL_SYMBOL_EXPORT_END()
63
64#endif /* RBIMPL_INTERN_PARSE_H */
const.h
Defines RBIMPL_ATTR_CONST.
RBIMPL_ATTR_CONST
#define RBIMPL_ATTR_CONST()
Wraps (or simulates) __attribute__((const))
Definition: const.h:36
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
rb_is_attrset_id
int rb_is_attrset_id(ID)
Definition: symbol.c:1028
rb_backref_get
VALUE rb_backref_get(void)
Definition: vm.c:1544
rb_is_instance_id
int rb_is_instance_id(ID)
Definition: symbol.c:1022
rb_sym_all_symbols
VALUE rb_sym_all_symbols(void)
Definition: symbol.c:983
rb_is_local_id
int rb_is_local_id(ID)
Definition: symbol.c:1034
rb_is_global_id
int rb_is_global_id(ID)
Definition: symbol.c:1016
rb_is_class_id
int rb_is_class_id(ID)
Definition: symbol.c:1010
rb_is_const_id
int rb_is_const_id(ID)
Definition: symbol.c:1004
rb_is_junk_id
int rb_is_junk_id(ID)
Definition: symbol.c:1040
rb_symname_p
int rb_symname_p(const char *)
Definition: symbol.c:197
rb_sym_interned_p
int rb_sym_interned_p(VALUE)
rb_lastline_get
VALUE rb_lastline_get(void)
Definition: vm.c:1556
rb_lastline_set
void rb_lastline_set(VALUE)
Definition: vm.c:1562
rb_id_attrset
ID rb_id_attrset(ID)
Definition: symbol.c:113
rb_backref_set
void rb_backref_set(VALUE)
Definition: vm.c:1550
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38
ID
unsigned long ID
Definition: value.h:39