Sha256: 061edd2b6d06a5b7d584d773e6ae8037a1b25018f4a5e795ac169057127b8d56

Contents?: true

Size: 1.06 KB

Versions: 883

Compression:

Stored size: 1.06 KB

Contents

/**********************************************************************

  constant.h -

  $Author$
  created at: Sun Nov 15 00:09:33 2009

  Copyright (C) 2009 Yusuke Endoh

**********************************************************************/
#ifndef CONSTANT_H
#define CONSTANT_H

typedef enum {
    CONST_PUBLIC    = 0x00,
    CONST_PRIVATE   = 0x01
} rb_const_flag_t;

typedef struct rb_const_entry_struct {
    rb_const_flag_t flag;
    const VALUE value;            /* should be mark */
    const VALUE file;             /* should be mark */
    int line;
} rb_const_entry_t;

VALUE rb_mod_private_constant(int argc, VALUE *argv, VALUE obj);
VALUE rb_mod_public_constant(int argc, VALUE *argv, VALUE obj);
void rb_free_const_table(st_table *tbl);
VALUE rb_public_const_get(VALUE klass, ID id);
VALUE rb_public_const_get_at(VALUE klass, ID id);
VALUE rb_public_const_get_from(VALUE klass, ID id);
int rb_public_const_defined(VALUE klass, ID id);
int rb_public_const_defined_at(VALUE klass, ID id);
int rb_public_const_defined_from(VALUE klass, ID id);

#endif /* CONSTANT_H */

Version data entries

883 entries across 92 versions & 7 rubygems

Version Path
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.4.1/lib/debase/ruby_core_source/ruby-2.1.9-p490/constant.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.1.9-p490/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.5-p273/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.3-p242/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.4-p265/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.10-p492/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.6-p336/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.0-p0/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.7-p400/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.1-p76/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.2-p95/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.8-p440/constant.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.1.9-p490/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.10-p492/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.2-p95/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.1-p76/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.3-p242/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.0-p0/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.4-p265/constant.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.1.8-p440/constant.h