~ubuntu-branches/debian/squeeze/redland-bindings/squeeze

« back to all changes in this revision

Viewing changes to ruby/redland_wrap.c

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2009-04-07 00:24:21 UTC
  • mfrom: (0.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090407002421-dce2r4otm5vqtheg
Tags: 1.0.8.1-2
* Use new sections ruby, php for librdf-ruby and php5-librdf respectively.
* Merge features from ubuntu packaging.  Thanks to Matthias Klose
  (not taking linker -Wl,--as-needed since that makes dyloading fail
  to pull in raptor symbols):
  debian/rules:
  - get python lib dir from distutils
  - make dh_pycentral use symlinks
  debian/python-librdf.examples:
  - add data/dc.rdf to examples dir and adjust example.py
    to point to it (Closes: #402612)
* Patch python/Makefile.in so it can allow the include dir to be
  overridden by the particular python version build in debian/rules
  using PYTHON_INCLUDES

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ----------------------------------------------------------------------------
2
2
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.33
 
3
 * Version 1.3.35
4
4
 * 
5
5
 * This file is not intended to be easily readable and contains a number of 
6
6
 * coding conventions designed to improve portability and efficiency. Do not make
224
224
 
225
225
/* This should only be incremented when either the layout of swig_type_info changes,
226
226
   or for whatever reason, the runtime changes incompatibly */
227
 
#define SWIG_RUNTIME_VERSION "3"
 
227
#define SWIG_RUNTIME_VERSION "4"
228
228
 
229
229
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
230
230
#ifdef SWIG_TYPE_TABLE
259
259
 
260
260
/* Flags for pointer conversions */
261
261
#define SWIG_POINTER_DISOWN        0x1
 
262
#define SWIG_CAST_NEW_MEMORY       0x2
262
263
 
263
264
/* Flags for new pointer objects */
264
265
#define SWIG_POINTER_OWN           0x1
399
400
extern "C" {
400
401
#endif
401
402
 
402
 
typedef void *(*swig_converter_func)(void *);
 
403
typedef void *(*swig_converter_func)(void *, int *);
403
404
typedef struct swig_type_info *(*swig_dycast_func)(void **);
404
405
 
405
 
/* Structure to store inforomation on one type */
 
406
/* Structure to store information on one type */
406
407
typedef struct swig_type_info {
407
408
  const char             *name;                 /* mangled name of this type */
408
409
  const char             *str;                  /* human readable name of this type */
529
530
  Cast a pointer up an inheritance hierarchy
530
531
*/
531
532
SWIGRUNTIMEINLINE void *
532
 
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
533
 
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
 
533
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
 
534
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
534
535
}
535
536
 
536
537
/* 
840
841
#ifndef RSTRING_PTR
841
842
# define RSTRING_PTR(x) RSTRING(x)->ptr
842
843
#endif
 
844
#ifndef RSTRING_END
 
845
# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
 
846
#endif
843
847
#ifndef RARRAY_LEN
844
848
# define RARRAY_LEN(x) RARRAY(x)->len
845
849
#endif
846
850
#ifndef RARRAY_PTR
847
851
# define RARRAY_PTR(x) RARRAY(x)->ptr
848
852
#endif
 
853
#ifndef RFLOAT_VALUE
 
854
# define RFLOAT_VALUE(x) RFLOAT(x)->value
 
855
#endif
 
856
#ifndef DOUBLE2NUM
 
857
# define DOUBLE2NUM(x) rb_float_new(x)
 
858
#endif
 
859
#ifndef RHASH_TBL
 
860
# define RHASH_TBL(x) (RHASH(x)->tbl)
 
861
#endif
 
862
#ifndef RHASH_ITER_LEV
 
863
# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
 
864
#endif
 
865
#ifndef RHASH_IFNONE
 
866
# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
 
867
#endif
 
868
#ifndef RHASH_SIZE
 
869
# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
 
870
#endif
 
871
#ifndef RHASH_EMPTY_P
 
872
# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
 
873
#endif
 
874
#ifndef RSTRUCT_LEN
 
875
# define RSTRUCT_LEN(x) RSTRUCT(x)->len
 
876
#endif
 
877
#ifndef RSTRUCT_PTR
 
878
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
 
879
#endif
 
880
 
 
881
 
849
882
 
850
883
/*
851
884
 * Need to be very careful about how these macros are defined, especially
1321
1354
#define SWIG_MangleStr(value)                           SWIG_Ruby_MangleStr(value)                
1322
1355
#define SWIG_CheckConvert(value, ty)                    SWIG_Ruby_CheckConvert(value, ty)         
1323
1356
 
 
1357
#include "assert.h"
1324
1358
 
1325
1359
/* -----------------------------------------------------------------------------
1326
1360
 * pointers/data manipulation
1582
1616
    tc = SWIG_TypeCheck(c, ty);
1583
1617
    if (!tc) {
1584
1618
      return SWIG_ERROR;
 
1619
    } else {
 
1620
      int newmemory = 0;
 
1621
      *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
 
1622
      assert(!newmemory); /* newmemory handling not yet implemented */
1585
1623
    }
1586
 
    *ptr = SWIG_TypeCast(tc, vptr);
1587
1624
  } else {
1588
1625
    *ptr = vptr;
1589
1626
  }
1747
1784
#define SWIG_RUBY_THREAD_END_BLOCK
1748
1785
 
1749
1786
 
1750
 
#define SWIGVERSION 0x010333 
 
1787
#define SWIGVERSION 0x010335 
1751
1788
#define SWIG_VERSION SWIGVERSION
1752
1789
 
1753
1790
 
7555
7592
SWIG_InitializeModule(void *clientdata) {
7556
7593
  size_t i;
7557
7594
  swig_module_info *module_head, *iter;
7558
 
  int found;
 
7595
  int found, init;
7559
7596
 
7560
7597
  clientdata = clientdata;
7561
7598
 
7565
7602
    swig_module.type_initial = swig_type_initial;
7566
7603
    swig_module.cast_initial = swig_cast_initial;
7567
7604
    swig_module.next = &swig_module;
 
7605
    init = 1;
 
7606
  } else {
 
7607
    init = 0;
7568
7608
  }
7569
7609
 
7570
7610
  /* Try and load any already created modules */
7593
7633
    module_head->next = &swig_module;
7594
7634
  }
7595
7635
 
 
7636
  /* When multiple interpeters are used, a module could have already been initialized in
 
7637
     a different interpreter, but not yet have a pointer in this interpreter.
 
7638
     In this case, we do not want to continue adding types... everything should be
 
7639
     set up already */
 
7640
  if (init == 0) return;
 
7641
 
7596
7642
  /* Now work on filling in swig_module.types */
7597
7643
#ifdef SWIGRUNTIME_DEBUG
7598
7644
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);