Sha256: 85c5be5871bef4fe9d1dfa0ff247ebc2b216cf808ca2729e110119e42608e69b

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

/* Please see the COPYING file for copyright and distribution information */

#ifndef __RBXS_H__
#define __RBXS_H__

#include <ruby.h>
#ifdef RUBY_VM
#include <ruby/io.h>
#include <ruby/st.h>
#else
#include <version.h>
#include <rubyio.h>
#include <st.h>
#if (RUBY_VERSION_MAJOR == 1 &&  RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY < 7)
#define RHASH_SIZE(h) (RHASH(h)->tbl ? RHASH(h)->tbl->num_entries : 0)
#endif
#define RHASH_EMPTY_P(h) (RHASH_SIZE(h) == 0)
#endif

#ifdef HAVE_RB_IO_T
#define RB_IO_T rb_io_t
#if (RUBY_VERSION_MAJOR == 1 &&  RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY < 7)
#define RB_IO_T_FD(o) o->fd
#else
#define RB_IO_T_FD(o) fileno(o->f)
#endif
#else
#define RB_IO_T OpenFile
#define RB_IO_T_FD(o) fileno(o->f)
#endif

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>

#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlsave.h>
#include <libxml/xinclude.h>

#define RBXS_VERSION  "0.1.12"

#define RBXS_PARSER_TYPE_DOM    0
#define RBXS_PARSER_TYPE_READER 1

RUBY_EXTERN VALUE mXML;
RUBY_EXTERN VALUE cSmart;

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-xml-smart-0.1.12-i486-linux rbxs.h