Sha256: 4edc5a12e3a5d06b35458b5215b3ff2b502ec9d256625e4fee9091755aae2ee6
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
/* Curb - Libcurl(3) bindings for Ruby. * Copyright (c)2006 Ross Bamford. * Licensed under the Ruby License. See LICENSE for details. * * $Id: curb.h 39 2006-12-23 15:28:45Z roscopeco $ */ #ifndef __CURB_H #define __CURB_H #include <ruby.h> #ifdef HAVE_RUBY_IO_H #include "ruby/io.h" #else #include "rubyio.h" // ruby 1.8 #endif #include <curl/curl.h> #include "banned.h" #include "curb_config.h" #include "curb_easy.h" #include "curb_errors.h" #include "curb_postfield.h" #include "curb_multi.h" #include "curb_macros.h" // These should be managed from the Rake 'release' task. #define CURB_VERSION "1.0.1" #define CURB_VER_NUM 1001 #define CURB_VER_MAJ 1 #define CURB_VER_MIN 0 #define CURB_VER_MIC 1 #define CURB_VER_PATCH 0 // Maybe not yet defined in Ruby #ifndef RSTRING_LEN #define RSTRING_LEN(x) RSTRING(x)->len #endif #ifndef RSTRING_PTR #define RSTRING_PTR(x) RSTRING(x)->ptr #endif #ifndef RHASH_SIZE #define RHASH_SIZE(hash) RHASH(hash)->tbl->num_entries #endif // ruby 1.8 does not provide the macro #ifndef DBL2NUM #define DBL2NUM(dbl) rb_float_new(dbl) #endif extern VALUE mCurl; extern void Init_curb_core(); #endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curb-1.0.1 | ext/curb.h |