Ruby: include/ruby/internal/glob.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

glob.h
Go to the documentation of this file.
1#ifndef RBIMPL_GLOB_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_GLOB_H
23#include "ruby/internal/attr/nonnull.h"
24#include "ruby/internal/dllexport.h"
25#include "ruby/internal/value.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29
49typedef int ruby_glob_func(const char *path, VALUE arg, void *enc);
50
51 RBIMPL_ATTR_NONNULL(())
65void rb_glob(const char *pattern, void (*func)(const char *path, VALUE arg, void *enc), VALUE arg);
66
67 RBIMPL_ATTR_NONNULL(())
92int ruby_glob(const char *pattern, int flags, ruby_glob_func *func, VALUE arg);
93
94 RBIMPL_ATTR_NONNULL(())
109int ruby_brace_glob(const char *pattern, int flags, ruby_glob_func *func, VALUE arg);
110
111 RBIMPL_SYMBOL_EXPORT_END()
112
113#endif /* RBIMPL_GLOB_H */
dllexport.h
Tweaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:106
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:97
ruby_glob
int ruby_glob(const char *pattern, int flags, ruby_glob_func *func, VALUE arg)
Identical to rb_glob(), except it returns opaque exception states instead of raising exceptions.
Definition dir.c:2703
rb_glob
void rb_glob(const char *pattern, void(*func)(const char *path, VALUE arg, void *enc), VALUE arg)
The "glob" operator.
Definition dir.c:2728
ruby_brace_glob
int ruby_brace_glob(const char *pattern, int flags, ruby_glob_func *func, VALUE arg)
Identical to ruby_glob(), @shyouhei currently suspects.
Definition dir.c:2843
ruby_glob_func
int ruby_glob_func(const char *path, VALUE arg, void *enc)
Type of a glob callback function.
Definition glob.h:49
nonnull.h
Defines RBIMPL_ATTR_NONNULL.
RBIMPL_ATTR_NONNULL
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition nonnull.h:30
value.h
Defines VALUE and ID.
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40