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

« back to all changes in this revision

Viewing changes to php/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
120
120
 
121
121
/* This should only be incremented when either the layout of swig_type_info changes,
122
122
   or for whatever reason, the runtime changes incompatibly */
123
 
#define SWIG_RUNTIME_VERSION "3"
 
123
#define SWIG_RUNTIME_VERSION "4"
124
124
 
125
125
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
126
126
#ifdef SWIG_TYPE_TABLE
155
155
 
156
156
/* Flags for pointer conversions */
157
157
#define SWIG_POINTER_DISOWN        0x1
 
158
#define SWIG_CAST_NEW_MEMORY       0x2
158
159
 
159
160
/* Flags for new pointer objects */
160
161
#define SWIG_POINTER_OWN           0x1
295
296
extern "C" {
296
297
#endif
297
298
 
298
 
typedef void *(*swig_converter_func)(void *);
 
299
typedef void *(*swig_converter_func)(void *, int *);
299
300
typedef struct swig_type_info *(*swig_dycast_func)(void **);
300
301
 
301
 
/* Structure to store inforomation on one type */
 
302
/* Structure to store information on one type */
302
303
typedef struct swig_type_info {
303
304
  const char             *name;                 /* mangled name of this type */
304
305
  const char             *str;                  /* human readable name of this type */
425
426
  Cast a pointer up an inheritance hierarchy
426
427
*/
427
428
SWIGRUNTIMEINLINE void *
428
 
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
429
 
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
 
429
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
 
430
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
430
431
}
431
432
 
432
433
/* 
804
805
static void *
805
806
SWIG_ZTS_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty TSRMLS_DC) {
806
807
  swig_cast_info *tc;
 
808
  void *result = 0;
807
809
 
808
810
  if (!ty) {
809
811
    /* They don't care about the target type, so just pass on the pointer! */
817
819
 
818
820
  /* convert and cast p from type_name to ptr as ty. */
819
821
  tc = SWIG_TypeCheck(type_name, ty);
820
 
  if (!tc) return NULL;
821
 
  return SWIG_TypeCast(tc, p);
 
822
  if (tc) {
 
823
    int newmemory = 0;
 
824
    result = SWIG_TypeCast(tc, p, &newmemory);
 
825
    assert(!newmemory); /* newmemory handling not yet implemented */
 
826
  }
 
827
  return result;
822
828
}
823
829
 
824
830
/* This function returns a pointer of type ty by extracting the pointer
7541
7547
SWIG_InitializeModule(void *clientdata) {
7542
7548
  size_t i;
7543
7549
  swig_module_info *module_head, *iter;
7544
 
  int found;
 
7550
  int found, init;
7545
7551
 
7546
7552
  clientdata = clientdata;
7547
7553
 
7551
7557
    swig_module.type_initial = swig_type_initial;
7552
7558
    swig_module.cast_initial = swig_cast_initial;
7553
7559
    swig_module.next = &swig_module;
 
7560
    init = 1;
 
7561
  } else {
 
7562
    init = 0;
7554
7563
  }
7555
7564
 
7556
7565
  /* Try and load any already created modules */
7579
7588
    module_head->next = &swig_module;
7580
7589
  }
7581
7590
 
 
7591
  /* When multiple interpeters are used, a module could have already been initialized in
 
7592
     a different interpreter, but not yet have a pointer in this interpreter.
 
7593
     In this case, we do not want to continue adding types... everything should be
 
7594
     set up already */
 
7595
  if (init == 0) return;
 
7596
 
7582
7597
  /* Now work on filling in swig_module.types */
7583
7598
#ifdef SWIGRUNTIME_DEBUG
7584
7599
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);