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

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

sprintf.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_SPRINTF_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_SPRINTF_H
23#include "ruby/internal/attr/format.h"
24#include "ruby/internal/dllexport.h"
25#include "ruby/internal/value.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29/* sprintf.c */
30 VALUE rb_f_sprintf(int, const VALUE*);
31
32 RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 1, 2)
33 VALUE rb_sprintf(const char*, ...);
34 VALUE rb_vsprintf(const char*, va_list);
35
36 RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
37 VALUE rb_str_catf(VALUE, const char*, ...);
38 VALUE rb_str_vcatf(VALUE, const char*, va_list);
39 VALUE rb_str_format(int, const VALUE *, VALUE);
40
41 RBIMPL_SYMBOL_EXPORT_END()
42
43#endif /* RBIMPL_INTERN_SPRINTF_H */
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
format.h
Defines RBIMPL_ATTR_FORMAT.
RBIMPL_PRINTF_FORMAT
#define RBIMPL_PRINTF_FORMAT
Definition: format.h:35
RBIMPL_ATTR_FORMAT
#define RBIMPL_ATTR_FORMAT(x, y, z)
Wraps (or simulates) __attribute__((format))
Definition: format.h:29
rb_vsprintf
VALUE rb_vsprintf(const char *, va_list)
Definition: sprintf.c:1197
rb_str_vcatf
VALUE rb_str_vcatf(VALUE, const char *, va_list)
Definition: sprintf.c:1216
rb_str_format
VALUE rb_str_format(int, const VALUE *, VALUE)
Definition: sprintf.c:214
rb_str_catf
VALUE rb_str_catf(VALUE, const char *,...)
Definition: sprintf.c:1243
rb_f_sprintf
VALUE rb_f_sprintf(int, const VALUE *)
Definition: sprintf.c:208
rb_sprintf
VALUE rb_sprintf(const char *,...)
Definition: sprintf.c:1203
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38