mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
5ac4bf2cd8
commit
9e6e39c351
Notes:
git
2020-04-08 13:28:42 +09:00
Merged-By: shyouhei <shyouhei@ruby-lang.org>
383 changed files with 60184 additions and 5439 deletions
|
@ -1,18 +1,17 @@
|
|||
#ifndef INTERNAL_STRUCT_H /* -*- C -*- */
|
||||
#define INTERNAL_STRUCT_H
|
||||
/**
|
||||
/** \noop-*-C-*-vi:ft=c
|
||||
* @file
|
||||
* @brief Internal header for Struct.
|
||||
* @author \@shyouhei
|
||||
* @author Ruby developers <ruby-core@ruby-lang.org>
|
||||
* @copyright This file is a part of the programming language Ruby.
|
||||
* Permission is hereby granted, to either redistribute and/or
|
||||
* modify this file, provided that the conditions mentioned in the
|
||||
* file COPYING are met. Consult the file for details.
|
||||
* @brief Internal header for Struct.
|
||||
*/
|
||||
#ifndef INTERNAL_STRUCT_H
|
||||
#define INTERNAL_STRUCT_H
|
||||
#include "ruby/3/stdbool.h" /* for bool */
|
||||
#include "internal/gc.h" /* for RB_OBJ_WRITE */
|
||||
#include "internal/stdbool.h" /* for bool */
|
||||
#include "ruby/ruby.h" /* for struct RBasic */
|
||||
#include "internal/gc.h" /* for RB_OBJ_WRITE */
|
||||
|
||||
enum {
|
||||
RSTRUCT_EMBED_LEN_MAX = RVALUE_EMBED_LEN_MAX,
|
||||
|
@ -50,6 +49,10 @@ struct RStruct {
|
|||
# undef RSTRUCT_GET
|
||||
#endif
|
||||
|
||||
#define RSTRUCT_LEN internal_RSTRUCT_LEN
|
||||
#define RSTRUCT_SET internal_RSTRUCT_SET
|
||||
#define RSTRUCT_GET internal_RSTRUCT_GET
|
||||
|
||||
/* struct.c */
|
||||
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
||||
VALUE rb_struct_lookup(VALUE s, VALUE idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue