зеркало из https://github.com/github/ruby.git
28 строки
655 B
C
28 строки
655 B
C
#ifndef YARP_EXT_NODE_H
|
|
#define YARP_EXT_NODE_H
|
|
|
|
#include <ruby.h>
|
|
#include <ruby/encoding.h>
|
|
#include "yarp.h"
|
|
|
|
// The following headers are necessary to read files using demand paging.
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#else
|
|
#include <fcntl.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
#define EXPECTED_YARP_VERSION "0.4.0"
|
|
|
|
VALUE yp_source_new(yp_parser_t *parser);
|
|
VALUE yp_token_new(yp_parser_t *parser, yp_token_t *token, rb_encoding *encoding, VALUE source);
|
|
VALUE yp_ast_new(yp_parser_t *parser, yp_node_t *node, rb_encoding *encoding);
|
|
|
|
void Init_yarp_pack(void);
|
|
YP_EXPORTED_FUNCTION void Init_yarp(void);
|
|
|
|
#endif
|