Sha256: 4d86f27913b48ac247cc404b2d927315d9235d77903cf76ddcf6be8b97e05d93

Contents?: true

Size: 1.66 KB

Versions: 37

Compression:

Stored size: 1.66 KB

Contents

/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
<%= header_comment
# This file is processed by apiwrap.rb.
%>
#ifndef APIWRAP_H
#define APIWRAP_H 1
#include <oci8.h>

#if defined RUNTIME_API_CHECK
void Init_oci8_apiwrap(void);
extern int oracle_client_version;
#else
#define oracle_client_version ORACLE_CLIENT_VERSION
#endif
<%
funcs.each do |f|
  if f.remote
%>
/*
 * <%=f.name%>
 *   version: <%=f.version_str%>
 *   remote:  true
 */
<%=f.ret%> oci8_<%=f.name%>_nb(oci8_svcctx_t *svcctx, <%=f.args.collect {|arg| arg.dcl}.join(', ')%>, const char *file, int line);
#define <%=f.name%>_nb(svcctx, <%=f.args.collect do |a| a.name; end.join(', ')%>) \
      oci8_<%=f.name%>_nb(svcctx, <%=f.args.collect do |a| a.name; end.join(', ')%>, __FILE__, __LINE__)
#if defined RUNTIME_API_CHECK
extern int oci8_have_<%=f.name%>_nb;
#define have_<%=f.name%>_nb oci8_have_<%=f.name%>_nb
#elif ORACLE_CLIENT_VERSION >= <%=f.version_num%>
#define have_<%=f.name%>_nb (1)
#else
#define have_<%=f.name%>_nb (0)
#endif
<%
  else
%>
/*
 * <%=f.name%>
 *   version: <%=f.version_str%>
 *   remote:  false
 */
<%=f.ret%> oci8_<%=f.name%>(<%=f.args.collect {|arg| arg.dcl}.join(', ')%>, const char *file, int line);
#ifndef API_WRAP_C
#undef <%=f.name%>
#define <%=f.name%>(<%=f.args.collect do |a| a.name; end.join(', ')%>) \
      oci8_<%=f.name%>(<%=f.args.collect do |a| a.name; end.join(', ')%>, __FILE__, __LINE__)
#endif
#if defined RUNTIME_API_CHECK
extern int oci8_have_<%=f.name%>;
#define have_<%=f.name%> oci8_have_<%=f.name%>
#elif ORACLE_CLIENT_VERSION >= <%=f.version_num%>
#define have_<%=f.name%> (1)
#else
#define have_<%=f.name%> (0)
#endif
<%
  end
end # funcs.each
%>
#endif /* APIWRAP_H */

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
ruby-oci8-2.1.8 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.7 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.6 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.5 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.4 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.3 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.2 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.1 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.1.0 ext/oci8/apiwrap.h.tmpl
ruby-oci8-master-2.0.7 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.6 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.5 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.4 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.3 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.1 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.2 ext/oci8/apiwrap.h.tmpl
ruby-oci8-2.0.0 ext/oci8/apiwrap.h.tmpl