Sha256: 8cf2425bcae8d97ad109f4fcb6e5e417824dc54105b8b0248b94e88fb3b55fe9

Contents?: true

Size: 1.42 KB

Versions: 8

Compression:

Stored size: 1.42 KB

Contents

#ifndef INTERNAL_CMDLINEOPT_H                               /*-*-C-*-vi:se ft=c:*/
#define INTERNAL_CMDLINEOPT_H

#include "mjit.h"
#include "yjit.h"

typedef struct {
    unsigned int mask;
    unsigned int set;
} ruby_features_t;

typedef struct ruby_cmdline_options {
    const char *script;
    VALUE script_name;
    VALUE e_script;
    struct {
        struct {
            VALUE name;
            int index;
        } enc;
    } src, ext, intern;
    VALUE req_list;
    ruby_features_t features;
    ruby_features_t warn;
    unsigned int dump;
#if USE_MJIT
    struct mjit_options mjit;
#endif
#if YJIT_SUPPORTED_P
    struct rb_yjit_options yjit;
#endif

    int sflag, xflag;
    unsigned int warning: 1;
    unsigned int verbose: 1;
    unsigned int do_loop: 1;
    unsigned int do_print: 1;
    unsigned int do_line: 1;
    unsigned int do_split: 1;
    unsigned int do_search: 1;
    unsigned int setids: 2;
} ruby_cmdline_options_t;

struct ruby_opt_message {
    const char *str;
    unsigned short namelen, secondlen;
};

#define RUBY_OPT_MESSAGE(shortopt, longopt, desc) { \
    shortopt " " longopt " " desc, \
    (unsigned short)sizeof(shortopt), \
    (unsigned short)sizeof(longopt), \
}

#define opt_match(s, l, name) \
    ((((l) > rb_strlen_lit(name)) ? (s)[rb_strlen_lit(name)] == '=' : \
      (l) == rb_strlen_lit(name)) && \
     memcmp((s), name, rb_strlen_lit(name)) == 0 && \
     (((s) += rb_strlen_lit(name)), 1))

#endif

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
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-3.2.0-preview1/internal/cmdlineopt.h
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h
debase-ruby_core_source-0.10.18 lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h
debase-ruby_core_source-0.10.17 lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h
debase-ruby_core_source-0.10.16 lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h
debase-ruby_core_source-0.10.15 lib/debase/ruby_core_source/ruby-3.2.0-preview1/internal/cmdlineopt.h