~vorlon/ubuntu/oneiric/lcms/multiarch

« back to all changes in this revision

Viewing changes to debian/patches/02_lcms_wrap.cxx.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2008-04-20 12:31:46 UTC
  • Revision ID: james.westby@ubuntu.com-20080420123146-kys84qka83yrewja
Tags: 1.16-10
debian/tmp/usr/lib/*.so usr/lib/ got lost from liblcms1-dev.install at
some point of making 1.16-9. Add it back (Closes: #477035).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 02_lcms_wrap.cxx.dpatch by Oleksandr Moskalenko <malex@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: swig 2 patch
 
6
 
 
7
@DPATCH@
 
8
 
 
9
--- lcms-1.16/python/lcms_wrap.cxx      2006-12-13 04:22:44.000000000 -0700
 
10
+++ lcms-1.16-patched/python/lcms_wrap.cxx      2008-04-17 18:09:30.000000000 -0600
 
11
@@ -1,6 +1,6 @@
 
12
 /* ----------------------------------------------------------------------------
 
13
  * This file was automatically generated by SWIG (http://www.swig.org).
 
14
- * Version 1.3.29
 
15
+ * Version 1.3.35
 
16
  * 
 
17
  * This file is not intended to be easily readable and contains a number of 
 
18
  * coding conventions designed to improve portability and efficiency. Do not make
 
19
@@ -12,7 +12,7 @@
 
20
 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
 
21
 
 
22
 #ifdef __cplusplus
 
23
-template<class T> class SwigValueWrapper {
 
24
+template<typename T> class SwigValueWrapper {
 
25
     T *tt;
 
26
 public:
 
27
     SwigValueWrapper() : tt(0) { }
 
28
@@ -25,6 +25,10 @@
 
29
 private:
 
30
     SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
 
31
 };
 
32
+
 
33
+template <typename T> T SwigValueInit() {
 
34
+  return T();
 
35
+}
 
36
 #endif
 
37
 
 
38
 /* -----------------------------------------------------------------------------
 
39
@@ -34,14 +38,14 @@
 
40
 
 
41
 /* template workaround for compilers that cannot correctly implement the C++ standard */
 
42
 #ifndef SWIGTEMPLATEDISAMBIGUATOR
 
43
-# if defined(__SUNPRO_CC)
 
44
-#   if (__SUNPRO_CC <= 0x560)
 
45
-#     define SWIGTEMPLATEDISAMBIGUATOR template
 
46
-#   else
 
47
-#     define SWIGTEMPLATEDISAMBIGUATOR 
 
48
-#   endif
 
49
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
 
50
+#  define SWIGTEMPLATEDISAMBIGUATOR template
 
51
+# elif defined(__HP_aCC)
 
52
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
 
53
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
 
54
+#  define SWIGTEMPLATEDISAMBIGUATOR template
 
55
 # else
 
56
-#   define SWIGTEMPLATEDISAMBIGUATOR 
 
57
+#  define SWIGTEMPLATEDISAMBIGUATOR
 
58
 # endif
 
59
 #endif
 
60
 
 
61
@@ -120,10 +124,16 @@
 
62
 #endif
 
63
 
 
64
 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
 
65
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
 
66
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
 
67
 # define _CRT_SECURE_NO_DEPRECATE
 
68
 #endif
 
69
 
 
70
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
 
71
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
 
72
+# define _SCL_SECURE_NO_DEPRECATE
 
73
+#endif
 
74
+
 
75
+
 
76
 
 
77
 /* Python.h has to appear first */
 
78
 #include <Python.h>
 
79
@@ -137,7 +147,7 @@
 
80
 
 
81
 /* This should only be incremented when either the layout of swig_type_info changes,
 
82
    or for whatever reason, the runtime changes incompatibly */
 
83
-#define SWIG_RUNTIME_VERSION "2"
 
84
+#define SWIG_RUNTIME_VERSION "4"
 
85
 
 
86
 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
 
87
 #ifdef SWIG_TYPE_TABLE
 
88
@@ -172,6 +182,7 @@
 
89
 
 
90
 /* Flags for pointer conversions */
 
91
 #define SWIG_POINTER_DISOWN        0x1
 
92
+#define SWIG_CAST_NEW_MEMORY       0x2
 
93
 
 
94
 /* Flags for new pointer objects */
 
95
 #define SWIG_POINTER_OWN           0x1
 
96
@@ -312,10 +323,10 @@
 
97
 extern "C" {
 
98
 #endif
 
99
 
 
100
-typedef void *(*swig_converter_func)(void *);
 
101
+typedef void *(*swig_converter_func)(void *, int *);
 
102
 typedef struct swig_type_info *(*swig_dycast_func)(void **);
 
103
 
 
104
-/* Structure to store inforomation on one type */
 
105
+/* Structure to store information on one type */
 
106
 typedef struct swig_type_info {
 
107
   const char             *name;                        /* mangled name of this type */
 
108
   const char             *str;                 /* human readable name of this type */
 
109
@@ -360,7 +371,7 @@
 
110
     while ((*f2 == ' ') && (f2 != l2)) ++f2;
 
111
     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
 
112
   }
 
113
-  return (l1 - f1) - (l2 - f2);
 
114
+  return (int)((l1 - f1) - (l2 - f2));
 
115
 }
 
116
 
 
117
 /*
 
118
@@ -442,8 +453,8 @@
 
119
   Cast a pointer up an inheritance hierarchy
 
120
 */
 
121
 SWIGRUNTIMEINLINE void *
 
122
-SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
 
123
-  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
 
124
+SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
 
125
+  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
 
126
 }
 
127
 
 
128
 /* 
 
129
@@ -714,8 +725,6 @@
 
130
 
 
131
 
 
132
 
 
133
-/* Python.h has to appear first */
 
134
-#include <Python.h>
 
135
 
 
136
 /* Add PyOS_snprintf for old Pythons */
 
137
 #if PY_VERSION_HEX < 0x02020000
 
138
@@ -796,6 +805,14 @@
 
139
 }
 
140
 #endif
 
141
 
 
142
+/* Py_ssize_t for old Pythons */
 
143
+/* This code is as recommended by: */
 
144
+/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
 
145
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
 
146
+typedef int Py_ssize_t;
 
147
+# define PY_SSIZE_T_MAX INT_MAX
 
148
+# define PY_SSIZE_T_MIN INT_MIN
 
149
+#endif
 
150
 
 
151
 /* -----------------------------------------------------------------------------
 
152
  * error manipulation
 
153
@@ -861,7 +878,7 @@
 
154
     Py_DECREF(old_str);
 
155
     Py_DECREF(value);
 
156
   } else {
 
157
-    PyErr_Format(PyExc_RuntimeError, mesg);
 
158
+    PyErr_SetString(PyExc_RuntimeError, mesg);
 
159
   }
 
160
 }
 
161
 
 
162
@@ -1101,14 +1118,14 @@
 
163
 /* Unpack the argument tuple */
 
164
 
 
165
 SWIGINTERN int
 
166
-SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
 
167
+SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
 
168
 {
 
169
   if (!args) {
 
170
     if (!min && !max) {
 
171
       return 1;
 
172
     } else {
 
173
       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", 
 
174
-                  name, (min == max ? "" : "at least "), min);
 
175
+                  name, (min == max ? "" : "at least "), (int)min);
 
176
       return 0;
 
177
     }
 
178
   }  
 
179
@@ -1116,14 +1133,14 @@
 
180
     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
 
181
     return 0;
 
182
   } else {
 
183
-    register int l = PyTuple_GET_SIZE(args);
 
184
+    register Py_ssize_t l = PyTuple_GET_SIZE(args);
 
185
     if (l < min) {
 
186
       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
 
187
-                  name, (min == max ? "" : "at least "), min, l);
 
188
+                  name, (min == max ? "" : "at least "), (int)min, (int)l);
 
189
       return 0;
 
190
     } else if (l > max) {
 
191
       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
 
192
-                  name, (min == max ? "" : "at most "), max, l);
 
193
+                  name, (min == max ? "" : "at most "), (int)max, (int)l);
 
194
       return 0;
 
195
     } else {
 
196
       register int i;
 
197
@@ -1189,7 +1206,7 @@
 
198
 SWIGRUNTIMEINLINE PyObject * 
 
199
 _SWIG_Py_None(void)
 
200
 {
 
201
-  PyObject *none = Py_BuildValue("");
 
202
+  PyObject *none = Py_BuildValue((char*)"");
 
203
   Py_DECREF(none);
 
204
   return none;
 
205
 }
 
206
@@ -1421,7 +1438,7 @@
 
207
 {
 
208
   PySwigObject *sobj = (PySwigObject *) v;
 
209
   PyObject *next = sobj->next;
 
210
-  if (sobj->own) {
 
211
+  if (sobj->own == SWIG_POINTER_OWN) {
 
212
     swig_type_info *ty = sobj->ty;
 
213
     PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
 
214
     PyObject *destroy = data ? data->destroy : 0;
 
215
@@ -1439,12 +1456,13 @@
 
216
        res = ((*meth)(mself, v));
 
217
       }
 
218
       Py_XDECREF(res);
 
219
-    } else {
 
220
-      const char *name = SWIG_TypePrettyName(ty);
 
221
+    } 
 
222
 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
 
223
-      printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
 
224
-#endif
 
225
+    else {
 
226
+      const char *name = SWIG_TypePrettyName(ty);
 
227
+      printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
 
228
     }
 
229
+#endif
 
230
   } 
 
231
   Py_XDECREF(next);
 
232
   PyObject_DEL(v);
 
233
@@ -1602,9 +1620,11 @@
 
234
     (unaryfunc)0,                 /*nb_float*/
 
235
     (unaryfunc)PySwigObject_oct,  /*nb_oct*/
 
236
     (unaryfunc)PySwigObject_hex,  /*nb_hex*/
 
237
-#if PY_VERSION_HEX >= 0x02020000
 
238
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ 
 
239
-#elif PY_VERSION_HEX >= 0x02000000
 
240
+#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
 
241
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
 
242
+#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
 
243
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
 
244
+#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
 
245
     0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
 
246
 #endif
 
247
   };
 
248
@@ -1947,7 +1967,7 @@
 
249
 
 
250
 SWIGRUNTIME int
 
251
 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
 
252
-  if (own) {
 
253
+  if (own == SWIG_POINTER_OWN) {
 
254
     PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
 
255
     if (sobj) {
 
256
       int oldown = sobj->own;
 
257
@@ -1968,6 +1988,8 @@
 
258
     return SWIG_OK;
 
259
   } else {
 
260
     PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
 
261
+    if (own)
 
262
+      *own = 0;
 
263
     while (sobj) {
 
264
       void *vptr = sobj->ptr;
 
265
       if (ty) {
 
266
@@ -1981,7 +2003,15 @@
 
267
          if (!tc) {
 
268
            sobj = (PySwigObject *)sobj->next;
 
269
          } else {
 
270
-           if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
 
271
+           if (ptr) {
 
272
+              int newmemory = 0;
 
273
+              *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
 
274
+              if (newmemory == SWIG_CAST_NEW_MEMORY) {
 
275
+                assert(own);
 
276
+                if (own)
 
277
+                  *own = *own | SWIG_CAST_NEW_MEMORY;
 
278
+              }
 
279
+            }
 
280
            break;
 
281
          }
 
282
        }
 
283
@@ -1991,7 +2021,8 @@
 
284
       }
 
285
     }
 
286
     if (sobj) {
 
287
-      if (own) *own = sobj->own;
 
288
+      if (own)
 
289
+        *own = *own | sobj->own;
 
290
       if (flags & SWIG_POINTER_DISOWN) {
 
291
        sobj->own = 0;
 
292
       }
 
293
@@ -2048,7 +2079,7 @@
 
294
     void *vptr = 0;
 
295
     
 
296
     /* here we get the method pointer for callbacks */
 
297
-    char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
 
298
+    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
 
299
     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
 
300
     if (desc) {
 
301
       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
 
302
@@ -2056,8 +2087,13 @@
 
303
     }
 
304
     if (ty) {
 
305
       swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
 
306
-      if (!tc) return SWIG_ERROR;
 
307
-      *ptr = SWIG_TypeCast(tc,vptr);
 
308
+      if (tc) {
 
309
+        int newmemory = 0;
 
310
+        *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
 
311
+        assert(!newmemory); /* newmemory handling not yet implemented */
 
312
+      } else {
 
313
+        return SWIG_ERROR;
 
314
+      }
 
315
     } else {
 
316
       *ptr = vptr;
 
317
     }
 
318
@@ -2169,7 +2205,7 @@
 
319
    return;
 
320
  }
 
321
 #endif
 
322
- dict = PyObject_GetAttrString(inst, "__dict__");
 
323
+ dict = PyObject_GetAttrString(inst, (char*)"__dict__");
 
324
  PyDict_SetItem(dict, SWIG_This(), swig_this);
 
325
  Py_DECREF(dict);
 
326
 } 
 
327
@@ -2310,7 +2346,7 @@
 
328
 
 
329
 /* The python cached type query */
 
330
 SWIGRUNTIME PyObject *
 
331
-SWIG_Python_TypeCache() {
 
332
+SWIG_Python_TypeCache(void) {
 
333
   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
 
334
   return cache;
 
335
 }
 
336
@@ -2551,7 +2587,7 @@
 
337
 
 
338
 #if (PY_VERSION_HEX <= 0x02000000)
 
339
 # if !defined(SWIG_PYTHON_CLASSIC)
 
340
-#  error "This python version requires to use swig with the '-classic' option"
 
341
+#  error "This python version requires swig to be run with the '-classic' option"
 
342
 # endif
 
343
 #endif
 
344
 
 
345
@@ -2562,7 +2598,8 @@
 
346
 
 
347
 #define SWIG_name    "_lcms"
 
348
 
 
349
-#define SWIGVERSION 0x010329 
 
350
+#define SWIGVERSION 0x010335 
 
351
+#define SWIG_VERSION SWIGVERSION
 
352
 
 
353
 
 
354
 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) 
 
355
@@ -2589,7 +2626,9 @@
 
356
     
 
357
     PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
 
358
     {
 
359
-      if (initial_ref) Py_XINCREF(_obj);
 
360
+      if (initial_ref) {
 
361
+        Py_XINCREF(_obj);
 
362
+      }
 
363
     }
 
364
     
 
365
     PyObject_ptr & operator=(const PyObject_ptr& item) 
 
366
@@ -2687,7 +2726,7 @@
 
367
         }
 
368
 
 
369
 SWIGINTERN swig_type_info*
 
370
-SWIG_pchar_descriptor()
 
371
+SWIG_pchar_descriptor(void)
 
372
 {
 
373
   static int init = 0;
 
374
   static swig_type_info* info = 0;
 
375
@@ -2724,14 +2763,12 @@
 
376
 
 
377
 
 
378
 #include <limits.h>
 
379
-#ifndef LLONG_MIN
 
380
-# define LLONG_MIN     LONG_LONG_MIN
 
381
-#endif
 
382
-#ifndef LLONG_MAX
 
383
-# define LLONG_MAX     LONG_LONG_MAX
 
384
-#endif
 
385
-#ifndef ULLONG_MAX
 
386
-# define ULLONG_MAX    ULONG_LONG_MAX
 
387
+#if !defined(SWIG_NO_LLONG_MAX)
 
388
+# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
 
389
+#   define LLONG_MAX __LONG_LONG_MAX__
 
390
+#   define LLONG_MIN (-LLONG_MAX - 1LL)
 
391
+#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
 
392
+# endif
 
393
 #endif
 
394
 
 
395
 
 
396
@@ -2916,7 +2953,7 @@
 
397
 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
 
398
 {
 
399
   if (PyString_Check(obj)) {
 
400
-    char *cstr; int len;
 
401
+    char *cstr; Py_ssize_t len;
 
402
     PyString_AsStringAndSize(obj, &cstr, &len);
 
403
     if (cptr)  {
 
404
       if (alloc) {
 
405
@@ -3529,7 +3566,7 @@
 
406
   result = (char *)COLORW___repr__(arg1);
 
407
   if (InErrorFlag) SWIG_fail;            
 
408
   
 
409
-  resultobj = SWIG_FromCharPtr(result);
 
410
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
411
   return resultobj;
 
412
 fail:
 
413
   return NULL;
 
414
@@ -3645,7 +3682,7 @@
 
415
 
 
416
 SWIGINTERN PyObject *COLORW_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
417
   PyObject *obj;
 
418
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
419
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
420
   SWIG_TypeNewClientData(SWIGTYPE_p_COLORW, SWIG_NewClientData(obj));
 
421
   return SWIG_Py_Void();
 
422
 }
 
423
@@ -3774,7 +3811,7 @@
 
424
   result = (char *)COLORB___repr__(arg1);
 
425
   if (InErrorFlag) SWIG_fail;            
 
426
   
 
427
-  resultobj = SWIG_FromCharPtr(result);
 
428
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
429
   return resultobj;
 
430
 fail:
 
431
   return NULL;
 
432
@@ -3863,7 +3900,7 @@
 
433
 
 
434
 SWIGINTERN PyObject *COLORB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
435
   PyObject *obj;
 
436
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
437
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
438
   SWIG_TypeNewClientData(SWIGTYPE_p_COLORB, SWIG_NewClientData(obj));
 
439
   return SWIG_Py_Void();
 
440
 }
 
441
@@ -3933,7 +3970,7 @@
 
442
   if (!SWIG_IsOK(res1)) {
 
443
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IT8" "', argument " "1"" of type '" "char const *""'");
 
444
   }
 
445
-  arg1 = buf1;
 
446
+  arg1 = reinterpret_cast< char * >(buf1);
 
447
   
 
448
   
 
449
   InErrorFlag = 0;     
 
450
@@ -3973,7 +4010,7 @@
 
451
   int ii;
 
452
   
 
453
   if (!PyTuple_Check(args)) SWIG_fail;
 
454
-  argc = PyObject_Length(args);
 
455
+  argc = (int)PyObject_Length(args);
 
456
   for (ii = 0; (ii < argc) && (ii < 1); ii++) {
 
457
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
458
   }
 
459
@@ -3990,7 +4027,10 @@
 
460
   }
 
461
   
 
462
 fail:
 
463
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_IT8'");
 
464
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IT8'.\n"
 
465
+    "  Possible C/C++ prototypes are:\n"
 
466
+    "    IT8(char const *)\n"
 
467
+    "    IT8()\n");
 
468
   return NULL;
 
469
 }
 
470
 
 
471
@@ -4042,7 +4082,7 @@
 
472
   result = (char *)IT8___repr__(arg1);
 
473
   if (InErrorFlag) SWIG_fail;            
 
474
   
 
475
-  resultobj = SWIG_FromCharPtr(result);
 
476
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
477
   return resultobj;
 
478
 fail:
 
479
   return NULL;
 
480
@@ -4072,7 +4112,7 @@
 
481
   if (!SWIG_IsOK(res2)) {
 
482
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_saveToFile" "', argument " "2"" of type '" "char const *""'");
 
483
   }
 
484
-  arg2 = buf2;
 
485
+  arg2 = reinterpret_cast< char * >(buf2);
 
486
   
 
487
   
 
488
   InErrorFlag = 0;     
 
489
@@ -4171,7 +4211,7 @@
 
490
   result = (char *)IT8_getSheetType(arg1);
 
491
   if (InErrorFlag) SWIG_fail;            
 
492
   
 
493
-  resultobj = SWIG_FromCharPtr(result);
 
494
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
495
   return resultobj;
 
496
 fail:
 
497
   return NULL;
 
498
@@ -4201,7 +4241,7 @@
 
499
   if (!SWIG_IsOK(res2)) {
 
500
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setSheetType" "', argument " "2"" of type '" "char const *""'");
 
501
   }
 
502
-  arg2 = buf2;
 
503
+  arg2 = reinterpret_cast< char * >(buf2);
 
504
   
 
505
   
 
506
   InErrorFlag = 0;     
 
507
@@ -4240,7 +4280,7 @@
 
508
   if (!SWIG_IsOK(res2)) {
 
509
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_addComment" "', argument " "2"" of type '" "char const *""'");
 
510
   }
 
511
-  arg2 = buf2;
 
512
+  arg2 = reinterpret_cast< char * >(buf2);
 
513
   
 
514
   
 
515
   InErrorFlag = 0;     
 
516
@@ -4284,12 +4324,12 @@
 
517
   if (!SWIG_IsOK(res2)) {
 
518
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'");
 
519
   }
 
520
-  arg2 = buf2;
 
521
+  arg2 = reinterpret_cast< char * >(buf2);
 
522
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
523
   if (!SWIG_IsOK(res3)) {
 
524
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "char const *""'");
 
525
   }
 
526
-  arg3 = buf3;
 
527
+  arg3 = reinterpret_cast< char * >(buf3);
 
528
   
 
529
   
 
530
   InErrorFlag = 0;     
 
531
@@ -4334,7 +4374,7 @@
 
532
   if (!SWIG_IsOK(res2)) {
 
533
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'");
 
534
   }
 
535
-  arg2 = buf2;
 
536
+  arg2 = reinterpret_cast< char * >(buf2);
 
537
   ecode3 = SWIG_AsVal_double(obj2, &val3);
 
538
   if (!SWIG_IsOK(ecode3)) {
 
539
     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "double""'");
 
540
@@ -4361,7 +4401,7 @@
 
541
   int ii;
 
542
   
 
543
   if (!PyTuple_Check(args)) SWIG_fail;
 
544
-  argc = PyObject_Length(args);
 
545
+  argc = (int)PyObject_Length(args);
 
546
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
547
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
548
   }
 
549
@@ -4403,7 +4443,10 @@
 
550
   }
 
551
   
 
552
 fail:
 
553
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setProperty'");
 
554
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setProperty'.\n"
 
555
+    "  Possible C/C++ prototypes are:\n"
 
556
+    "    setProperty(IT8 *,char const *,char const *)\n"
 
557
+    "    setProperty(IT8 *,char const *,double)\n");
 
558
   return NULL;
 
559
 }
 
560
 
 
561
@@ -4435,7 +4478,7 @@
 
562
   if (!SWIG_IsOK(res2)) {
 
563
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyAsHex" "', argument " "2"" of type '" "char const *""'");
 
564
   }
 
565
-  arg2 = buf2;
 
566
+  arg2 = reinterpret_cast< char * >(buf2);
 
567
   ecode3 = SWIG_AsVal_int(obj2, &val3);
 
568
   if (!SWIG_IsOK(ecode3)) {
 
569
     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setPropertyAsHex" "', argument " "3"" of type '" "int""'");
 
570
@@ -4484,12 +4527,12 @@
 
571
   if (!SWIG_IsOK(res2)) {
 
572
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyUncooked" "', argument " "2"" of type '" "char const *""'");
 
573
   }
 
574
-  arg2 = buf2;
 
575
+  arg2 = reinterpret_cast< char * >(buf2);
 
576
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
577
   if (!SWIG_IsOK(res3)) {
 
578
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setPropertyUncooked" "', argument " "3"" of type '" "char const *""'");
 
579
   }
 
580
-  arg3 = buf3;
 
581
+  arg3 = reinterpret_cast< char * >(buf3);
 
582
   
 
583
   
 
584
   InErrorFlag = 0;     
 
585
@@ -4530,14 +4573,14 @@
 
586
   if (!SWIG_IsOK(res2)) {
 
587
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getProperty" "', argument " "2"" of type '" "char const *""'");
 
588
   }
 
589
-  arg2 = buf2;
 
590
+  arg2 = reinterpret_cast< char * >(buf2);
 
591
   
 
592
   
 
593
   InErrorFlag = 0;     
 
594
   result = (char *)IT8_getProperty(arg1,(char const *)arg2);
 
595
   if (InErrorFlag) SWIG_fail;            
 
596
   
 
597
-  resultobj = SWIG_FromCharPtr(result);
 
598
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
599
   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
 
600
   return resultobj;
 
601
 fail:
 
602
@@ -4569,7 +4612,7 @@
 
603
   if (!SWIG_IsOK(res2)) {
 
604
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getPropertyAsDbl" "', argument " "2"" of type '" "char const *""'");
 
605
   }
 
606
-  arg2 = buf2;
 
607
+  arg2 = reinterpret_cast< char * >(buf2);
 
608
   
 
609
   
 
610
   InErrorFlag = 0;     
 
611
@@ -4623,7 +4666,7 @@
 
612
   result = (char *)IT8_getData__SWIG_0(arg1,arg2,arg3);
 
613
   if (InErrorFlag) SWIG_fail;            
 
614
   
 
615
-  resultobj = SWIG_FromCharPtr(result);
 
616
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
617
   return resultobj;
 
618
 fail:
 
619
   return NULL;
 
620
@@ -4658,19 +4701,19 @@
 
621
   if (!SWIG_IsOK(res2)) {
 
622
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getData" "', argument " "2"" of type '" "char const *""'");
 
623
   }
 
624
-  arg2 = buf2;
 
625
+  arg2 = reinterpret_cast< char * >(buf2);
 
626
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
627
   if (!SWIG_IsOK(res3)) {
 
628
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getData" "', argument " "3"" of type '" "char const *""'");
 
629
   }
 
630
-  arg3 = buf3;
 
631
+  arg3 = reinterpret_cast< char * >(buf3);
 
632
   
 
633
   
 
634
   InErrorFlag = 0;     
 
635
   result = (char *)IT8_getData__SWIG_1(arg1,(char const *)arg2,(char const *)arg3);
 
636
   if (InErrorFlag) SWIG_fail;            
 
637
   
 
638
-  resultobj = SWIG_FromCharPtr(result);
 
639
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
640
   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
 
641
   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
 
642
   return resultobj;
 
643
@@ -4687,7 +4730,7 @@
 
644
   int ii;
 
645
   
 
646
   if (!PyTuple_Check(args)) SWIG_fail;
 
647
-  argc = PyObject_Length(args);
 
648
+  argc = (int)PyObject_Length(args);
 
649
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
650
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
651
   }
 
652
@@ -4731,7 +4774,10 @@
 
653
   }
 
654
   
 
655
 fail:
 
656
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_getData'");
 
657
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getData'.\n"
 
658
+    "  Possible C/C++ prototypes are:\n"
 
659
+    "    getData(IT8 *,int,int)\n"
 
660
+    "    getData(IT8 *,char const *,char const *)\n");
 
661
   return NULL;
 
662
 }
 
663
 
 
664
@@ -4809,12 +4855,12 @@
 
665
   if (!SWIG_IsOK(res2)) {
 
666
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataAsDbl" "', argument " "2"" of type '" "char const *""'");
 
667
   }
 
668
-  arg2 = buf2;
 
669
+  arg2 = reinterpret_cast< char * >(buf2);
 
670
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
671
   if (!SWIG_IsOK(res3)) {
 
672
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getDataAsDbl" "', argument " "3"" of type '" "char const *""'");
 
673
   }
 
674
-  arg3 = buf3;
 
675
+  arg3 = reinterpret_cast< char * >(buf3);
 
676
   
 
677
   
 
678
   InErrorFlag = 0;     
 
679
@@ -4838,7 +4884,7 @@
 
680
   int ii;
 
681
   
 
682
   if (!PyTuple_Check(args)) SWIG_fail;
 
683
-  argc = PyObject_Length(args);
 
684
+  argc = (int)PyObject_Length(args);
 
685
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
686
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
687
   }
 
688
@@ -4882,7 +4928,10 @@
 
689
   }
 
690
   
 
691
 fail:
 
692
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_getDataAsDbl'");
 
693
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getDataAsDbl'.\n"
 
694
+    "  Possible C/C++ prototypes are:\n"
 
695
+    "    getDataAsDbl(IT8 *,int,int)\n"
 
696
+    "    getDataAsDbl(IT8 *,char const *,char const *)\n");
 
697
   return NULL;
 
698
 }
 
699
 
 
700
@@ -4928,7 +4977,7 @@
 
701
   if (!SWIG_IsOK(res4)) {
 
702
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'");
 
703
   }
 
704
-  arg4 = buf4;
 
705
+  arg4 = reinterpret_cast< char * >(buf4);
 
706
   
 
707
   
 
708
   InErrorFlag = 0;     
 
709
@@ -5031,17 +5080,17 @@
 
710
   if (!SWIG_IsOK(res2)) {
 
711
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'");
 
712
   }
 
713
-  arg2 = buf2;
 
714
+  arg2 = reinterpret_cast< char * >(buf2);
 
715
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
716
   if (!SWIG_IsOK(res3)) {
 
717
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'");
 
718
   }
 
719
-  arg3 = buf3;
 
720
+  arg3 = reinterpret_cast< char * >(buf3);
 
721
   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
 
722
   if (!SWIG_IsOK(res4)) {
 
723
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'");
 
724
   }
 
725
-  arg4 = buf4;
 
726
+  arg4 = reinterpret_cast< char * >(buf4);
 
727
   
 
728
   
 
729
   InErrorFlag = 0;     
 
730
@@ -5093,12 +5142,12 @@
 
731
   if (!SWIG_IsOK(res2)) {
 
732
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'");
 
733
   }
 
734
-  arg2 = buf2;
 
735
+  arg2 = reinterpret_cast< char * >(buf2);
 
736
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
737
   if (!SWIG_IsOK(res3)) {
 
738
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'");
 
739
   }
 
740
-  arg3 = buf3;
 
741
+  arg3 = reinterpret_cast< char * >(buf3);
 
742
   ecode4 = SWIG_AsVal_double(obj3, &val4);
 
743
   if (!SWIG_IsOK(ecode4)) {
 
744
     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IT8_setData" "', argument " "4"" of type '" "double""'");
 
745
@@ -5127,7 +5176,7 @@
 
746
   int ii;
 
747
   
 
748
   if (!PyTuple_Check(args)) SWIG_fail;
 
749
-  argc = PyObject_Length(args);
 
750
+  argc = (int)PyObject_Length(args);
 
751
   for (ii = 0; (ii < argc) && (ii < 4); ii++) {
 
752
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
753
   }
 
754
@@ -5229,7 +5278,12 @@
 
755
   }
 
756
   
 
757
 fail:
 
758
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setData'");
 
759
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setData'.\n"
 
760
+    "  Possible C/C++ prototypes are:\n"
 
761
+    "    setData(IT8 *,int,int,char const *)\n"
 
762
+    "    setData(IT8 *,int,int,double)\n"
 
763
+    "    setData(IT8 *,char const *,char const *,char const *)\n"
 
764
+    "    setData(IT8 *,char const *,char const *,double)\n");
 
765
   return NULL;
 
766
 }
 
767
 
 
768
@@ -5266,7 +5320,7 @@
 
769
   if (!SWIG_IsOK(res3)) {
 
770
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setDataFormat" "', argument " "3"" of type '" "char const *""'");
 
771
   }
 
772
-  arg3 = buf3;
 
773
+  arg3 = reinterpret_cast< char * >(buf3);
 
774
   
 
775
   
 
776
   InErrorFlag = 0;     
 
777
@@ -5311,7 +5365,7 @@
 
778
   result = (char *)IT8_getPatchName(arg1,arg2);
 
779
   if (InErrorFlag) SWIG_fail;            
 
780
   
 
781
-  resultobj = SWIG_FromCharPtr(result);
 
782
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
783
   return resultobj;
 
784
 fail:
 
785
   return NULL;
 
786
@@ -5341,7 +5395,7 @@
 
787
   if (!SWIG_IsOK(res2)) {
 
788
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataFormat" "', argument " "2"" of type '" "char const *""'");
 
789
   }
 
790
-  arg2 = buf2;
 
791
+  arg2 = reinterpret_cast< char * >(buf2);
 
792
   
 
793
   
 
794
   InErrorFlag = 0;     
 
795
@@ -5444,17 +5498,17 @@
 
796
   if (!SWIG_IsOK(res2)) {
 
797
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
 
798
   }
 
799
-  arg2 = buf2;
 
800
+  arg2 = reinterpret_cast< char * >(buf2);
 
801
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
802
   if (!SWIG_IsOK(res3)) {
 
803
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'");
 
804
   }
 
805
-  arg3 = buf3;
 
806
+  arg3 = reinterpret_cast< char * >(buf3);
 
807
   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
 
808
   if (!SWIG_IsOK(res4)) {
 
809
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setTableByLabel" "', argument " "4"" of type '" "char const *""'");
 
810
   }
 
811
-  arg4 = buf4;
 
812
+  arg4 = reinterpret_cast< char * >(buf4);
 
813
   
 
814
   
 
815
   InErrorFlag = 0;     
 
816
@@ -5502,12 +5556,12 @@
 
817
   if (!SWIG_IsOK(res2)) {
 
818
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
 
819
   }
 
820
-  arg2 = buf2;
 
821
+  arg2 = reinterpret_cast< char * >(buf2);
 
822
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
823
   if (!SWIG_IsOK(res3)) {
 
824
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'");
 
825
   }
 
826
-  arg3 = buf3;
 
827
+  arg3 = reinterpret_cast< char * >(buf3);
 
828
   
 
829
   
 
830
   InErrorFlag = 0;     
 
831
@@ -5548,7 +5602,7 @@
 
832
   if (!SWIG_IsOK(res2)) {
 
833
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
 
834
   }
 
835
-  arg2 = buf2;
 
836
+  arg2 = reinterpret_cast< char * >(buf2);
 
837
   
 
838
   
 
839
   InErrorFlag = 0;     
 
840
@@ -5570,7 +5624,7 @@
 
841
   int ii;
 
842
   
 
843
   if (!PyTuple_Check(args)) SWIG_fail;
 
844
-  argc = PyObject_Length(args);
 
845
+  argc = (int)PyObject_Length(args);
 
846
   for (ii = 0; (ii < argc) && (ii < 4); ii++) {
 
847
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
848
   }
 
849
@@ -5627,7 +5681,11 @@
 
850
   }
 
851
   
 
852
 fail:
 
853
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setTableByLabel'");
 
854
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setTableByLabel'.\n"
 
855
+    "  Possible C/C++ prototypes are:\n"
 
856
+    "    setTableByLabel(IT8 *,char const *,char const *,char const *)\n"
 
857
+    "    setTableByLabel(IT8 *,char const *,char const *)\n"
 
858
+    "    setTableByLabel(IT8 *,char const *)\n");
 
859
   return NULL;
 
860
 }
 
861
 
 
862
@@ -5691,7 +5749,7 @@
 
863
   if (!SWIG_IsOK(res2)) {
 
864
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getCol" "', argument " "2"" of type '" "char const *""'");
 
865
   }
 
866
-  arg2 = buf2;
 
867
+  arg2 = reinterpret_cast< char * >(buf2);
 
868
   
 
869
   
 
870
   InErrorFlag = 0;     
 
871
@@ -5709,7 +5767,7 @@
 
872
 
 
873
 SWIGINTERN PyObject *IT8_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
874
   PyObject *obj;
 
875
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
876
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
877
   SWIG_TypeNewClientData(SWIGTYPE_p_IT8, SWIG_NewClientData(obj));
 
878
   return SWIG_Py_Void();
 
879
 }
 
880
@@ -6064,7 +6122,7 @@
 
881
 
 
882
 SWIGINTERN PyObject *icCLutStruct_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
883
   PyObject *obj;
 
884
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
885
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
886
   SWIG_TypeNewClientData(SWIGTYPE_p_icCLutStruct, SWIG_NewClientData(obj));
 
887
   return SWIG_Py_Void();
 
888
 }
 
889
@@ -6665,7 +6723,7 @@
 
890
 
 
891
 SWIGINTERN PyObject *icLutAtoB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
892
   PyObject *obj;
 
893
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
894
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
895
   SWIG_TypeNewClientData(SWIGTYPE_p_icLutAtoB, SWIG_NewClientData(obj));
 
896
   return SWIG_Py_Void();
 
897
 }
 
898
@@ -7266,7 +7324,7 @@
 
899
 
 
900
 SWIGINTERN PyObject *icLutBtoA_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
901
   PyObject *obj;
 
902
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
903
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
904
   SWIG_TypeNewClientData(SWIGTYPE_p_icLutBtoA, SWIG_NewClientData(obj));
 
905
   return SWIG_Py_Void();
 
906
 }
 
907
@@ -7483,7 +7541,7 @@
 
908
 
 
909
 SWIGINTERN PyObject *LCMSGAMMAPARAMS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
910
   PyObject *obj;
 
911
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
912
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
913
   SWIG_TypeNewClientData(SWIGTYPE_p_LCMSGAMMAPARAMS, SWIG_NewClientData(obj));
 
914
   return SWIG_Py_Void();
 
915
 }
 
916
@@ -7722,7 +7780,7 @@
 
917
   int ii;
 
918
   
 
919
   if (!PyTuple_Check(args)) SWIG_fail;
 
920
-  argc = PyObject_Length(args);
 
921
+  argc = (int)PyObject_Length(args);
 
922
   for (ii = 0; (ii < argc) && (ii < 2); ii++) {
 
923
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
924
   }
 
925
@@ -7754,7 +7812,10 @@
 
926
   }
 
927
   
 
928
 fail:
 
929
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GAMMATABLE'");
 
930
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_GAMMATABLE'.\n"
 
931
+    "  Possible C/C++ prototypes are:\n"
 
932
+    "    GAMMATABLE(double,int)\n"
 
933
+    "    GAMMATABLE(double)\n");
 
934
   return NULL;
 
935
 }
 
936
 
 
937
@@ -7806,7 +7867,7 @@
 
938
   result = (char *)GAMMATABLE___repr__(arg1);
 
939
   if (InErrorFlag) SWIG_fail;            
 
940
   
 
941
-  resultobj = SWIG_FromCharPtr(result);
 
942
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
943
   return resultobj;
 
944
 fail:
 
945
   return NULL;
 
946
@@ -7895,7 +7956,7 @@
 
947
 
 
948
 SWIGINTERN PyObject *GAMMATABLE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
949
   PyObject *obj;
 
950
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
951
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
952
   SWIG_TypeNewClientData(SWIGTYPE_p_GAMMATABLE, SWIG_NewClientData(obj));
 
953
   return SWIG_Py_Void();
 
954
 }
 
955
@@ -8091,7 +8152,7 @@
 
956
   int ii;
 
957
   
 
958
   if (!PyTuple_Check(args)) SWIG_fail;
 
959
-  argc = PyObject_Length(args);
 
960
+  argc = (int)PyObject_Length(args);
 
961
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
962
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
963
   }
 
964
@@ -8148,7 +8209,12 @@
 
965
   }
 
966
   
 
967
 fail:
 
968
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_VEC3'");
 
969
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_VEC3'.\n"
 
970
+    "  Possible C/C++ prototypes are:\n"
 
971
+    "    VEC3(double,double,double)\n"
 
972
+    "    VEC3(double,double)\n"
 
973
+    "    VEC3(double)\n"
 
974
+    "    VEC3()\n");
 
975
   return NULL;
 
976
 }
 
977
 
 
978
@@ -8280,7 +8346,7 @@
 
979
   result = (char *)VEC3___repr__(arg1);
 
980
   if (InErrorFlag) SWIG_fail;            
 
981
   
 
982
-  resultobj = SWIG_FromCharPtr(result);
 
983
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
984
   return resultobj;
 
985
 fail:
 
986
   return NULL;
 
987
@@ -8289,7 +8355,7 @@
 
988
 
 
989
 SWIGINTERN PyObject *VEC3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
990
   PyObject *obj;
 
991
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
992
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
993
   SWIG_TypeNewClientData(SWIGTYPE_p_VEC3, SWIG_NewClientData(obj));
 
994
   return SWIG_Py_Void();
 
995
 }
 
996
@@ -8400,7 +8466,7 @@
 
997
 
 
998
 SWIGINTERN PyObject *MAT3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
999
   PyObject *obj;
 
1000
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1001
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1002
   SWIG_TypeNewClientData(SWIGTYPE_p_MAT3, SWIG_NewClientData(obj));
 
1003
   return SWIG_Py_Void();
 
1004
 }
 
1005
@@ -8696,7 +8762,7 @@
 
1006
   int ii;
 
1007
   
 
1008
   if (!PyTuple_Check(args)) SWIG_fail;
 
1009
-  argc = PyObject_Length(args);
 
1010
+  argc = (int)PyObject_Length(args);
 
1011
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
1012
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
1013
   }
 
1014
@@ -8753,7 +8819,12 @@
 
1015
   }
 
1016
   
 
1017
 fail:
 
1018
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIEXYZ'");
 
1019
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIEXYZ'.\n"
 
1020
+    "  Possible C/C++ prototypes are:\n"
 
1021
+    "    cmsCIEXYZ(double,double,double)\n"
 
1022
+    "    cmsCIEXYZ(double,double)\n"
 
1023
+    "    cmsCIEXYZ(double)\n"
 
1024
+    "    cmsCIEXYZ()\n");
 
1025
   return NULL;
 
1026
 }
 
1027
 
 
1028
@@ -8805,7 +8876,7 @@
 
1029
   result = (char *)cmsCIEXYZ___repr__(arg1);
 
1030
   if (InErrorFlag) SWIG_fail;            
 
1031
   
 
1032
-  resultobj = SWIG_FromCharPtr(result);
 
1033
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1034
   return resultobj;
 
1035
 fail:
 
1036
   return NULL;
 
1037
@@ -8814,7 +8885,7 @@
 
1038
 
 
1039
 SWIGINTERN PyObject *cmsCIEXYZ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1040
   PyObject *obj;
 
1041
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1042
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1043
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIEXYZ, SWIG_NewClientData(obj));
 
1044
   return SWIG_Py_Void();
 
1045
 }
 
1046
@@ -9110,7 +9181,7 @@
 
1047
   int ii;
 
1048
   
 
1049
   if (!PyTuple_Check(args)) SWIG_fail;
 
1050
-  argc = PyObject_Length(args);
 
1051
+  argc = (int)PyObject_Length(args);
 
1052
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
1053
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
1054
   }
 
1055
@@ -9167,7 +9238,12 @@
 
1056
   }
 
1057
   
 
1058
 fail:
 
1059
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIExyY'");
 
1060
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIExyY'.\n"
 
1061
+    "  Possible C/C++ prototypes are:\n"
 
1062
+    "    cmsCIExyY(double,double,double)\n"
 
1063
+    "    cmsCIExyY(double,double)\n"
 
1064
+    "    cmsCIExyY(double)\n"
 
1065
+    "    cmsCIExyY()\n");
 
1066
   return NULL;
 
1067
 }
 
1068
 
 
1069
@@ -9219,7 +9295,7 @@
 
1070
   result = (char *)cmsCIExyY___repr__(arg1);
 
1071
   if (InErrorFlag) SWIG_fail;            
 
1072
   
 
1073
-  resultobj = SWIG_FromCharPtr(result);
 
1074
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1075
   return resultobj;
 
1076
 fail:
 
1077
   return NULL;
 
1078
@@ -9228,7 +9304,7 @@
 
1079
 
 
1080
 SWIGINTERN PyObject *cmsCIExyY_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1081
   PyObject *obj;
 
1082
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1083
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1084
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIExyY, SWIG_NewClientData(obj));
 
1085
   return SWIG_Py_Void();
 
1086
 }
 
1087
@@ -9524,7 +9600,7 @@
 
1088
   int ii;
 
1089
   
 
1090
   if (!PyTuple_Check(args)) SWIG_fail;
 
1091
-  argc = PyObject_Length(args);
 
1092
+  argc = (int)PyObject_Length(args);
 
1093
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
1094
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
1095
   }
 
1096
@@ -9581,7 +9657,12 @@
 
1097
   }
 
1098
   
 
1099
 fail:
 
1100
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIELab'");
 
1101
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELab'.\n"
 
1102
+    "  Possible C/C++ prototypes are:\n"
 
1103
+    "    cmsCIELab(double,double,double)\n"
 
1104
+    "    cmsCIELab(double,double)\n"
 
1105
+    "    cmsCIELab(double)\n"
 
1106
+    "    cmsCIELab()\n");
 
1107
   return NULL;
 
1108
 }
 
1109
 
 
1110
@@ -9633,7 +9714,7 @@
 
1111
   result = (char *)cmsCIELab___repr__(arg1);
 
1112
   if (InErrorFlag) SWIG_fail;            
 
1113
   
 
1114
-  resultobj = SWIG_FromCharPtr(result);
 
1115
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1116
   return resultobj;
 
1117
 fail:
 
1118
   return NULL;
 
1119
@@ -9678,7 +9759,7 @@
 
1120
 
 
1121
 SWIGINTERN PyObject *cmsCIELab_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1122
   PyObject *obj;
 
1123
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1124
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1125
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIELab, SWIG_NewClientData(obj));
 
1126
   return SWIG_Py_Void();
 
1127
 }
 
1128
@@ -9974,7 +10055,7 @@
 
1129
   int ii;
 
1130
   
 
1131
   if (!PyTuple_Check(args)) SWIG_fail;
 
1132
-  argc = PyObject_Length(args);
 
1133
+  argc = (int)PyObject_Length(args);
 
1134
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
1135
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
1136
   }
 
1137
@@ -10031,7 +10112,12 @@
 
1138
   }
 
1139
   
 
1140
 fail:
 
1141
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIELCh'");
 
1142
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELCh'.\n"
 
1143
+    "  Possible C/C++ prototypes are:\n"
 
1144
+    "    cmsCIELCh(double,double,double)\n"
 
1145
+    "    cmsCIELCh(double,double)\n"
 
1146
+    "    cmsCIELCh(double)\n"
 
1147
+    "    cmsCIELCh()\n");
 
1148
   return NULL;
 
1149
 }
 
1150
 
 
1151
@@ -10083,7 +10169,7 @@
 
1152
   result = (char *)cmsCIELCh___repr__(arg1);
 
1153
   if (InErrorFlag) SWIG_fail;            
 
1154
   
 
1155
-  resultobj = SWIG_FromCharPtr(result);
 
1156
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1157
   return resultobj;
 
1158
 fail:
 
1159
   return NULL;
 
1160
@@ -10092,7 +10178,7 @@
 
1161
 
 
1162
 SWIGINTERN PyObject *cmsCIELCh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1163
   PyObject *obj;
 
1164
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1165
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1166
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIELCh, SWIG_NewClientData(obj));
 
1167
   return SWIG_Py_Void();
 
1168
 }
 
1169
@@ -10388,7 +10474,7 @@
 
1170
   int ii;
 
1171
   
 
1172
   if (!PyTuple_Check(args)) SWIG_fail;
 
1173
-  argc = PyObject_Length(args);
 
1174
+  argc = (int)PyObject_Length(args);
 
1175
   for (ii = 0; (ii < argc) && (ii < 3); ii++) {
 
1176
     argv[ii] = PyTuple_GET_ITEM(args,ii);
 
1177
   }
 
1178
@@ -10445,7 +10531,12 @@
 
1179
   }
 
1180
   
 
1181
 fail:
 
1182
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsJCh'");
 
1183
+  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsJCh'.\n"
 
1184
+    "  Possible C/C++ prototypes are:\n"
 
1185
+    "    cmsJCh(double,double,double)\n"
 
1186
+    "    cmsJCh(double,double)\n"
 
1187
+    "    cmsJCh(double)\n"
 
1188
+    "    cmsJCh()\n");
 
1189
   return NULL;
 
1190
 }
 
1191
 
 
1192
@@ -10497,7 +10588,7 @@
 
1193
   result = (char *)cmsJCh___repr__(arg1);
 
1194
   if (InErrorFlag) SWIG_fail;            
 
1195
   
 
1196
-  resultobj = SWIG_FromCharPtr(result);
 
1197
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1198
   return resultobj;
 
1199
 fail:
 
1200
   return NULL;
 
1201
@@ -10506,7 +10597,7 @@
 
1202
 
 
1203
 SWIGINTERN PyObject *cmsJCh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1204
   PyObject *obj;
 
1205
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1206
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1207
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsJCh, SWIG_NewClientData(obj));
 
1208
   return SWIG_Py_Void();
 
1209
 }
 
1210
@@ -10762,7 +10853,7 @@
 
1211
   result = (char *)cmsCIEXYZTRIPLE___repr__(arg1);
 
1212
   if (InErrorFlag) SWIG_fail;            
 
1213
   
 
1214
-  resultobj = SWIG_FromCharPtr(result);
 
1215
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1216
   return resultobj;
 
1217
 fail:
 
1218
   return NULL;
 
1219
@@ -10771,7 +10862,7 @@
 
1220
 
 
1221
 SWIGINTERN PyObject *cmsCIEXYZTRIPLE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1222
   PyObject *obj;
 
1223
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1224
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1225
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIEXYZTRIPLE, SWIG_NewClientData(obj));
 
1226
   return SWIG_Py_Void();
 
1227
 }
 
1228
@@ -11027,7 +11118,7 @@
 
1229
   result = (char *)cmsCIExyYTRIPLE___repr__(arg1);
 
1230
   if (InErrorFlag) SWIG_fail;            
 
1231
   
 
1232
-  resultobj = SWIG_FromCharPtr(result);
 
1233
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1234
   return resultobj;
 
1235
 fail:
 
1236
   return NULL;
 
1237
@@ -11036,7 +11127,7 @@
 
1238
 
 
1239
 SWIGINTERN PyObject *cmsCIExyYTRIPLE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1240
   PyObject *obj;
 
1241
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1242
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1243
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIExyYTRIPLE, SWIG_NewClientData(obj));
 
1244
   return SWIG_Py_Void();
 
1245
 }
 
1246
@@ -11096,12 +11187,12 @@
 
1247
   if (!SWIG_IsOK(res1)) {
 
1248
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsOpenProfileFromFile" "', argument " "1"" of type '" "char const *""'");
 
1249
   }
 
1250
-  arg1 = buf1;
 
1251
+  arg1 = reinterpret_cast< char * >(buf1);
 
1252
   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
 
1253
   if (!SWIG_IsOK(res2)) {
 
1254
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsOpenProfileFromFile" "', argument " "2"" of type '" "char const *""'");
 
1255
   }
 
1256
-  arg2 = buf2;
 
1257
+  arg2 = reinterpret_cast< char * >(buf2);
 
1258
   
 
1259
   
 
1260
   InErrorFlag = 0;     
 
1261
@@ -12557,7 +12648,7 @@
 
1262
   result = (char *)cmsViewingConditions___repr__(arg1);
 
1263
   if (InErrorFlag) SWIG_fail;            
 
1264
   
 
1265
-  resultobj = SWIG_FromCharPtr(result);
 
1266
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1267
   return resultobj;
 
1268
 fail:
 
1269
   return NULL;
 
1270
@@ -12566,7 +12657,7 @@
 
1271
 
 
1272
 SWIGINTERN PyObject *cmsViewingConditions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1273
   PyObject *obj;
 
1274
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1275
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1276
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsViewingConditions, SWIG_NewClientData(obj));
 
1277
   return SWIG_Py_Void();
 
1278
 }
 
1279
@@ -13270,7 +13361,7 @@
 
1280
 SWIGINTERN PyObject *_wrap_cmsReadICCGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1281
   PyObject *resultobj = 0;
 
1282
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1283
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1284
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1285
   LPGAMMATABLE result;
 
1286
   int res1 ;
 
1287
   void *argp2 ;
 
1288
@@ -13312,7 +13403,7 @@
 
1289
 SWIGINTERN PyObject *_wrap_cmsReadICCGammaReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1290
   PyObject *resultobj = 0;
 
1291
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1292
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1293
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1294
   LPGAMMATABLE result;
 
1295
   int res1 ;
 
1296
   void *argp2 ;
 
1297
@@ -13590,7 +13681,7 @@
 
1298
   result = (char *)cmsTakeProductName(arg1);
 
1299
   if (InErrorFlag) SWIG_fail;            
 
1300
   
 
1301
-  resultobj = SWIG_FromCharPtr(result);
 
1302
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1303
   return resultobj;
 
1304
 fail:
 
1305
   return NULL;
 
1306
@@ -13615,7 +13706,7 @@
 
1307
   result = (char *)cmsTakeProductDesc(arg1);
 
1308
   if (InErrorFlag) SWIG_fail;            
 
1309
   
 
1310
-  resultobj = SWIG_FromCharPtr(result);
 
1311
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1312
   return resultobj;
 
1313
 fail:
 
1314
   return NULL;
 
1315
@@ -13640,7 +13731,7 @@
 
1316
   result = (char *)cmsTakeProductInfo(arg1);
 
1317
   if (InErrorFlag) SWIG_fail;            
 
1318
   
 
1319
-  resultobj = SWIG_FromCharPtr(result);
 
1320
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1321
   return resultobj;
 
1322
 fail:
 
1323
   return NULL;
 
1324
@@ -13665,7 +13756,7 @@
 
1325
   result = (char *)cmsTakeManufacturer(arg1);
 
1326
   if (InErrorFlag) SWIG_fail;            
 
1327
   
 
1328
-  resultobj = SWIG_FromCharPtr(result);
 
1329
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1330
   return resultobj;
 
1331
 fail:
 
1332
   return NULL;
 
1333
@@ -13690,7 +13781,7 @@
 
1334
   result = (char *)cmsTakeModel(arg1);
 
1335
   if (InErrorFlag) SWIG_fail;            
 
1336
   
 
1337
-  resultobj = SWIG_FromCharPtr(result);
 
1338
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1339
   return resultobj;
 
1340
 fail:
 
1341
   return NULL;
 
1342
@@ -13715,7 +13806,7 @@
 
1343
   result = (char *)cmsTakeCopyright(arg1);
 
1344
   if (InErrorFlag) SWIG_fail;            
 
1345
   
 
1346
-  resultobj = SWIG_FromCharPtr(result);
 
1347
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1348
   return resultobj;
 
1349
 fail:
 
1350
   return NULL;
 
1351
@@ -13818,7 +13909,7 @@
 
1352
 SWIGINTERN PyObject *_wrap_cmsIsTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1353
   PyObject *resultobj = 0;
 
1354
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1355
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1356
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1357
   BOOL result;
 
1358
   int res1 ;
 
1359
   void *argp2 ;
 
1360
@@ -13928,7 +14019,7 @@
 
1361
 SWIGINTERN PyObject *_wrap_cmsReadICCTextEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1362
   PyObject *resultobj = 0;
 
1363
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1364
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1365
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1366
   char *arg3 = (char *) 0 ;
 
1367
   size_t arg4 ;
 
1368
   int result;
 
1369
@@ -13967,7 +14058,7 @@
 
1370
   if (!SWIG_IsOK(res3)) {
 
1371
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCTextEx" "', argument " "3"" of type '" "char *""'");
 
1372
   }
 
1373
-  arg3 = buf3;
 
1374
+  arg3 = reinterpret_cast< char * >(buf3);
 
1375
   ecode4 = SWIG_AsVal_size_t(obj3, &val4);
 
1376
   if (!SWIG_IsOK(ecode4)) {
 
1377
     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsReadICCTextEx" "', argument " "4"" of type '" "size_t""'");
 
1378
@@ -13991,7 +14082,7 @@
 
1379
 SWIGINTERN PyObject *_wrap_cmsReadICCText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1380
   PyObject *resultobj = 0;
 
1381
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1382
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1383
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1384
   char *arg3 = (char *) 0 ;
 
1385
   int result;
 
1386
   int res1 ;
 
1387
@@ -14026,7 +14117,7 @@
 
1388
   if (!SWIG_IsOK(res3)) {
 
1389
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCText" "', argument " "3"" of type '" "char *""'");
 
1390
   }
 
1391
-  arg3 = buf3;
 
1392
+  arg3 = reinterpret_cast< char * >(buf3);
 
1393
   
 
1394
   
 
1395
   InErrorFlag = 0;     
 
1396
@@ -14305,7 +14396,7 @@
 
1397
   if (!SWIG_IsOK(res2)) {
 
1398
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Manufacturer_set" "', argument " "2"" of type '" "char [512]""'");
 
1399
   }
 
1400
-  arg2 = temp2;
 
1401
+  arg2 = reinterpret_cast< char * >(temp2);
 
1402
   if (arg2) memcpy(arg1->Manufacturer,arg2,512*sizeof(char));
 
1403
   else memset(arg1->Manufacturer,0,512*sizeof(char));
 
1404
   resultobj = SWIG_Py_Void();
 
1405
@@ -14364,7 +14455,7 @@
 
1406
   if (!SWIG_IsOK(res2)) {
 
1407
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Model_set" "', argument " "2"" of type '" "char [512]""'");
 
1408
   }
 
1409
-  arg2 = temp2;
 
1410
+  arg2 = reinterpret_cast< char * >(temp2);
 
1411
   if (arg2) memcpy(arg1->Model,arg2,512*sizeof(char));
 
1412
   else memset(arg1->Model,0,512*sizeof(char));
 
1413
   resultobj = SWIG_Py_Void();
 
1414
@@ -14449,7 +14540,7 @@
 
1415
 
 
1416
 SWIGINTERN PyObject *cmsPSEQDESC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1417
   PyObject *obj;
 
1418
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1419
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1420
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsPSEQDESC, SWIG_NewClientData(obj));
 
1421
   return SWIG_Py_Void();
 
1422
 }
 
1423
@@ -14613,7 +14704,7 @@
 
1424
 
 
1425
 SWIGINTERN PyObject *cmsSEQ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1426
   PyObject *obj;
 
1427
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1428
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1429
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsSEQ, SWIG_NewClientData(obj));
 
1430
   return SWIG_Py_Void();
 
1431
 }
 
1432
@@ -14881,7 +14972,7 @@
 
1433
   if (!SWIG_IsOK(res2)) {
 
1434
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsGAMUTEX_Description_set" "', argument " "2"" of type '" "char [512]""'");
 
1435
   }
 
1436
-  arg2 = temp2;
 
1437
+  arg2 = reinterpret_cast< char * >(temp2);
 
1438
   if (arg2) memcpy(arg1->Description,arg2,512*sizeof(char));
 
1439
   else memset(arg1->Description,0,512*sizeof(char));
 
1440
   resultobj = SWIG_Py_Void();
 
1441
@@ -15139,7 +15230,7 @@
 
1442
 
 
1443
 SWIGINTERN PyObject *cmsGAMUTEX_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1444
   PyObject *obj;
 
1445
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1446
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1447
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsGAMUTEX, SWIG_NewClientData(obj));
 
1448
   return SWIG_Py_Void();
 
1449
 }
 
1450
@@ -15539,7 +15630,7 @@
 
1451
   PyObject *resultobj = 0;
 
1452
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1453
   icInt32Number arg2 ;
 
1454
-  SwigValueWrapper<icTagSignature > result;
 
1455
+  SwigValueWrapper< icTagSignature > result;
 
1456
   int res1 ;
 
1457
   void *argp2 ;
 
1458
   int res2 = 0 ;
 
1459
@@ -16332,7 +16423,7 @@
 
1460
   if (!SWIG_IsOK(res2)) {
 
1461
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLOR_Name_set" "', argument " "2"" of type '" "char [(256)]""'");
 
1462
   }
 
1463
-  arg2 = temp2;
 
1464
+  arg2 = reinterpret_cast< char * >(temp2);
 
1465
   if (arg2) memcpy(arg1->Name,arg2,(256)*sizeof(char));
 
1466
   else memset(arg1->Name,0,(256)*sizeof(char));
 
1467
   resultobj = SWIG_Py_Void();
 
1468
@@ -16535,7 +16626,7 @@
 
1469
 
 
1470
 SWIGINTERN PyObject *cmsNAMEDCOLOR_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1471
   PyObject *obj;
 
1472
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1473
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1474
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsNAMEDCOLOR, SWIG_NewClientData(obj));
 
1475
   return SWIG_Py_Void();
 
1476
 }
 
1477
@@ -16720,7 +16811,7 @@
 
1478
   if (!SWIG_IsOK(res2)) {
 
1479
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Prefix_set" "', argument " "2"" of type '" "char [33]""'");
 
1480
   }
 
1481
-  arg2 = temp2;
 
1482
+  arg2 = reinterpret_cast< char * >(temp2);
 
1483
   if (arg2) memcpy(arg1->Prefix,arg2,33*sizeof(char));
 
1484
   else memset(arg1->Prefix,0,33*sizeof(char));
 
1485
   resultobj = SWIG_Py_Void();
 
1486
@@ -16779,7 +16870,7 @@
 
1487
   if (!SWIG_IsOK(res2)) {
 
1488
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Suffix_set" "', argument " "2"" of type '" "char [33]""'");
 
1489
   }
 
1490
-  arg2 = temp2;
 
1491
+  arg2 = reinterpret_cast< char * >(temp2);
 
1492
   if (arg2) memcpy(arg1->Suffix,arg2,33*sizeof(char));
 
1493
   else memset(arg1->Suffix,0,33*sizeof(char));
 
1494
   resultobj = SWIG_Py_Void();
 
1495
@@ -16923,7 +17014,7 @@
 
1496
 
 
1497
 SWIGINTERN PyObject *cmsNAMEDCOLORLIST_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1498
   PyObject *obj;
 
1499
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1500
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1501
   SWIG_TypeNewClientData(SWIGTYPE_p_cmsNAMEDCOLORLIST, SWIG_NewClientData(obj));
 
1502
   return SWIG_Py_Void();
 
1503
 }
 
1504
@@ -16993,17 +17084,17 @@
 
1505
   if (!SWIG_IsOK(res3)) {
 
1506
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsNamedColorInfo" "', argument " "3"" of type '" "char *""'");
 
1507
   }
 
1508
-  arg3 = buf3;
 
1509
+  arg3 = reinterpret_cast< char * >(buf3);
 
1510
   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
 
1511
   if (!SWIG_IsOK(res4)) {
 
1512
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsNamedColorInfo" "', argument " "4"" of type '" "char *""'");
 
1513
   }
 
1514
-  arg4 = buf4;
 
1515
+  arg4 = reinterpret_cast< char * >(buf4);
 
1516
   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
 
1517
   if (!SWIG_IsOK(res5)) {
 
1518
     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsNamedColorInfo" "', argument " "5"" of type '" "char *""'");
 
1519
   }
 
1520
-  arg5 = buf5;
 
1521
+  arg5 = reinterpret_cast< char * >(buf5);
 
1522
   
 
1523
   
 
1524
   InErrorFlag = 0;     
 
1525
@@ -17044,7 +17135,7 @@
 
1526
   if (!SWIG_IsOK(res2)) {
 
1527
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNamedColorIndex" "', argument " "2"" of type '" "char const *""'");
 
1528
   }
 
1529
-  arg2 = buf2;
 
1530
+  arg2 = reinterpret_cast< char * >(buf2);
 
1531
   
 
1532
   
 
1533
   InErrorFlag = 0;     
 
1534
@@ -17063,7 +17154,7 @@
 
1535
 SWIGINTERN PyObject *_wrap_cmsReadColorantTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1536
   PyObject *resultobj = 0;
 
1537
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1538
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1539
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1540
   LPcmsNAMEDCOLORLIST result;
 
1541
   int res1 ;
 
1542
   void *argp2 ;
 
1543
@@ -17105,7 +17196,7 @@
 
1544
 SWIGINTERN PyObject *_wrap_cmsAddTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1545
   PyObject *resultobj = 0;
 
1546
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1547
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1548
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1549
   void *arg3 = (void *) 0 ;
 
1550
   BOOL result;
 
1551
   int res1 ;
 
1552
@@ -17239,7 +17330,7 @@
 
1553
   if (!SWIG_IsOK(res2)) {
 
1554
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSaveProfile" "', argument " "2"" of type '" "char const *""'");
 
1555
   }
 
1556
-  arg2 = buf2;
 
1557
+  arg2 = reinterpret_cast< char * >(buf2);
 
1558
   
 
1559
   
 
1560
   InErrorFlag = 0;     
 
1561
@@ -17841,7 +17932,7 @@
 
1562
 SWIGINTERN PyObject *_wrap_cmsReadICCLut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1563
   PyObject *resultobj = 0;
 
1564
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1565
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1566
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1567
   LPLUT result;
 
1568
   int res1 ;
 
1569
   void *argp2 ;
 
1570
@@ -18191,7 +18282,7 @@
 
1571
   if (!SWIG_IsOK(res1)) {
 
1572
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8LoadFromFile" "', argument " "1"" of type '" "char const *""'");
 
1573
   }
 
1574
-  arg1 = buf1;
 
1575
+  arg1 = reinterpret_cast< char * >(buf1);
 
1576
   
 
1577
   
 
1578
   InErrorFlag = 0;     
 
1579
@@ -18262,7 +18353,7 @@
 
1580
   if (!SWIG_IsOK(res2)) {
 
1581
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SaveToFile" "', argument " "2"" of type '" "char const *""'");
 
1582
   }
 
1583
-  arg2 = buf2;
 
1584
+  arg2 = reinterpret_cast< char * >(buf2);
 
1585
   
 
1586
   
 
1587
   InErrorFlag = 0;     
 
1588
@@ -18337,7 +18428,7 @@
 
1589
   result = (char *)cmsIT8GetSheetType(arg1);
 
1590
   if (InErrorFlag) SWIG_fail;            
 
1591
   
 
1592
-  resultobj = SWIG_FromCharPtr(result);
 
1593
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1594
   return resultobj;
 
1595
 fail:
 
1596
   return NULL;
 
1597
@@ -18365,7 +18456,7 @@
 
1598
   if (!SWIG_IsOK(res2)) {
 
1599
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetSheetType" "', argument " "2"" of type '" "char const *""'");
 
1600
   }
 
1601
-  arg2 = buf2;
 
1602
+  arg2 = reinterpret_cast< char * >(buf2);
 
1603
   
 
1604
   
 
1605
   InErrorFlag = 0;     
 
1606
@@ -18402,7 +18493,7 @@
 
1607
   if (!SWIG_IsOK(res2)) {
 
1608
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetComment" "', argument " "2"" of type '" "char const *""'");
 
1609
   }
 
1610
-  arg2 = buf2;
 
1611
+  arg2 = reinterpret_cast< char * >(buf2);
 
1612
   
 
1613
   
 
1614
   InErrorFlag = 0;     
 
1615
@@ -18444,12 +18535,12 @@
 
1616
   if (!SWIG_IsOK(res2)) {
 
1617
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyStr" "', argument " "2"" of type '" "char const *""'");
 
1618
   }
 
1619
-  arg2 = buf2;
 
1620
+  arg2 = reinterpret_cast< char * >(buf2);
 
1621
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1622
   if (!SWIG_IsOK(res3)) {
 
1623
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyStr" "', argument " "3"" of type '" "char const *""'");
 
1624
   }
 
1625
-  arg3 = buf3;
 
1626
+  arg3 = reinterpret_cast< char * >(buf3);
 
1627
   
 
1628
   
 
1629
   InErrorFlag = 0;     
 
1630
@@ -18492,7 +18583,7 @@
 
1631
   if (!SWIG_IsOK(res2)) {
 
1632
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyDbl" "', argument " "2"" of type '" "char const *""'");
 
1633
   }
 
1634
-  arg2 = buf2;
 
1635
+  arg2 = reinterpret_cast< char * >(buf2);
 
1636
   ecode3 = SWIG_AsVal_double(obj2, &val3);
 
1637
   if (!SWIG_IsOK(ecode3)) {
 
1638
     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyDbl" "', argument " "3"" of type '" "double""'");
 
1639
@@ -18538,7 +18629,7 @@
 
1640
   if (!SWIG_IsOK(res2)) {
 
1641
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyHex" "', argument " "2"" of type '" "char const *""'");
 
1642
   }
 
1643
-  arg2 = buf2;
 
1644
+  arg2 = reinterpret_cast< char * >(buf2);
 
1645
   ecode3 = SWIG_AsVal_int(obj2, &val3);
 
1646
   if (!SWIG_IsOK(ecode3)) {
 
1647
     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyHex" "', argument " "3"" of type '" "int""'");
 
1648
@@ -18585,12 +18676,12 @@
 
1649
   if (!SWIG_IsOK(res2)) {
 
1650
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "2"" of type '" "char const *""'");
 
1651
   }
 
1652
-  arg2 = buf2;
 
1653
+  arg2 = reinterpret_cast< char * >(buf2);
 
1654
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1655
   if (!SWIG_IsOK(res3)) {
 
1656
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "3"" of type '" "char const *""'");
 
1657
   }
 
1658
-  arg3 = buf3;
 
1659
+  arg3 = reinterpret_cast< char * >(buf3);
 
1660
   
 
1661
   
 
1662
   InErrorFlag = 0;     
 
1663
@@ -18629,14 +18720,14 @@
 
1664
   if (!SWIG_IsOK(res2)) {
 
1665
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetProperty" "', argument " "2"" of type '" "char const *""'");
 
1666
   }
 
1667
-  arg2 = buf2;
 
1668
+  arg2 = reinterpret_cast< char * >(buf2);
 
1669
   
 
1670
   
 
1671
   InErrorFlag = 0;     
 
1672
   result = (char *)cmsIT8GetProperty(arg1,(char const *)arg2);
 
1673
   if (InErrorFlag) SWIG_fail;            
 
1674
   
 
1675
-  resultobj = SWIG_FromCharPtr(result);
 
1676
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1677
   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
 
1678
   return resultobj;
 
1679
 fail:
 
1680
@@ -18666,7 +18757,7 @@
 
1681
   if (!SWIG_IsOK(res2)) {
 
1682
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetPropertyDbl" "', argument " "2"" of type '" "char const *""'");
 
1683
   }
 
1684
-  arg2 = buf2;
 
1685
+  arg2 = reinterpret_cast< char * >(buf2);
 
1686
   
 
1687
   
 
1688
   InErrorFlag = 0;     
 
1689
@@ -18752,7 +18843,7 @@
 
1690
   result = (char *)cmsIT8GetDataRowCol(arg1,arg2,arg3);
 
1691
   if (InErrorFlag) SWIG_fail;            
 
1692
   
 
1693
-  resultobj = SWIG_FromCharPtr(result);
 
1694
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1695
   return resultobj;
 
1696
 fail:
 
1697
   return NULL;
 
1698
@@ -18841,7 +18932,7 @@
 
1699
   if (!SWIG_IsOK(res4)) {
 
1700
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetDataRowCol" "', argument " "4"" of type '" "char const *""'");
 
1701
   }
 
1702
-  arg4 = buf4;
 
1703
+  arg4 = reinterpret_cast< char * >(buf4);
 
1704
   
 
1705
   
 
1706
   InErrorFlag = 0;     
 
1707
@@ -18935,19 +19026,19 @@
 
1708
   if (!SWIG_IsOK(res2)) {
 
1709
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetData" "', argument " "2"" of type '" "char const *""'");
 
1710
   }
 
1711
-  arg2 = buf2;
 
1712
+  arg2 = reinterpret_cast< char * >(buf2);
 
1713
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1714
   if (!SWIG_IsOK(res3)) {
 
1715
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetData" "', argument " "3"" of type '" "char const *""'");
 
1716
   }
 
1717
-  arg3 = buf3;
 
1718
+  arg3 = reinterpret_cast< char * >(buf3);
 
1719
   
 
1720
   
 
1721
   InErrorFlag = 0;     
 
1722
   result = (char *)cmsIT8GetData(arg1,(char const *)arg2,(char const *)arg3);
 
1723
   if (InErrorFlag) SWIG_fail;            
 
1724
   
 
1725
-  resultobj = SWIG_FromCharPtr(result);
 
1726
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1727
   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
 
1728
   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
 
1729
   return resultobj;
 
1730
@@ -18984,12 +19075,12 @@
 
1731
   if (!SWIG_IsOK(res2)) {
 
1732
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataDbl" "', argument " "2"" of type '" "char const *""'");
 
1733
   }
 
1734
-  arg2 = buf2;
 
1735
+  arg2 = reinterpret_cast< char * >(buf2);
 
1736
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1737
   if (!SWIG_IsOK(res3)) {
 
1738
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetDataDbl" "', argument " "3"" of type '" "char const *""'");
 
1739
   }
 
1740
-  arg3 = buf3;
 
1741
+  arg3 = reinterpret_cast< char * >(buf3);
 
1742
   
 
1743
   
 
1744
   InErrorFlag = 0;     
 
1745
@@ -19038,17 +19129,17 @@
 
1746
   if (!SWIG_IsOK(res2)) {
 
1747
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetData" "', argument " "2"" of type '" "char const *""'");
 
1748
   }
 
1749
-  arg2 = buf2;
 
1750
+  arg2 = reinterpret_cast< char * >(buf2);
 
1751
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1752
   if (!SWIG_IsOK(res3)) {
 
1753
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetData" "', argument " "3"" of type '" "char const *""'");
 
1754
   }
 
1755
-  arg3 = buf3;
 
1756
+  arg3 = reinterpret_cast< char * >(buf3);
 
1757
   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
 
1758
   if (!SWIG_IsOK(res4)) {
 
1759
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetData" "', argument " "4"" of type '" "char const *""'");
 
1760
   }
 
1761
-  arg4 = buf4;
 
1762
+  arg4 = reinterpret_cast< char * >(buf4);
 
1763
   
 
1764
   
 
1765
   InErrorFlag = 0;     
 
1766
@@ -19098,12 +19189,12 @@
 
1767
   if (!SWIG_IsOK(res2)) {
 
1768
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetDataDbl" "', argument " "2"" of type '" "char const *""'");
 
1769
   }
 
1770
-  arg2 = buf2;
 
1771
+  arg2 = reinterpret_cast< char * >(buf2);
 
1772
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1773
   if (!SWIG_IsOK(res3)) {
 
1774
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataDbl" "', argument " "3"" of type '" "char const *""'");
 
1775
   }
 
1776
-  arg3 = buf3;
 
1777
+  arg3 = reinterpret_cast< char * >(buf3);
 
1778
   ecode4 = SWIG_AsVal_double(obj3, &val4);
 
1779
   if (!SWIG_IsOK(ecode4)) {
 
1780
     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsIT8SetDataDbl" "', argument " "4"" of type '" "double""'");
 
1781
@@ -19147,7 +19238,7 @@
 
1782
   if (!SWIG_IsOK(res2)) {
 
1783
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataFormat" "', argument " "2"" of type '" "char const *""'");
 
1784
   }
 
1785
-  arg2 = buf2;
 
1786
+  arg2 = reinterpret_cast< char * >(buf2);
 
1787
   
 
1788
   
 
1789
   InErrorFlag = 0;     
 
1790
@@ -19193,7 +19284,7 @@
 
1791
   if (!SWIG_IsOK(res3)) {
 
1792
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataFormat" "', argument " "3"" of type '" "char const *""'");
 
1793
   }
 
1794
-  arg3 = buf3;
 
1795
+  arg3 = reinterpret_cast< char * >(buf3);
 
1796
   
 
1797
   
 
1798
   InErrorFlag = 0;     
 
1799
@@ -19273,14 +19364,14 @@
 
1800
   if (!SWIG_IsOK(res3)) {
 
1801
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetPatchName" "', argument " "3"" of type '" "char *""'");
 
1802
   }
 
1803
-  arg3 = buf3;
 
1804
+  arg3 = reinterpret_cast< char * >(buf3);
 
1805
   
 
1806
   
 
1807
   InErrorFlag = 0;     
 
1808
   result = (char *)cmsIT8GetPatchName(arg1,arg2,arg3);
 
1809
   if (InErrorFlag) SWIG_fail;            
 
1810
   
 
1811
-  resultobj = SWIG_FromCharPtr(result);
 
1812
+  resultobj = SWIG_FromCharPtr((const char *)result);
 
1813
   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
 
1814
   return resultobj;
 
1815
 fail:
 
1816
@@ -19320,17 +19411,17 @@
 
1817
   if (!SWIG_IsOK(res2)) {
 
1818
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetTableByLabel" "', argument " "2"" of type '" "char const *""'");
 
1819
   }
 
1820
-  arg2 = buf2;
 
1821
+  arg2 = reinterpret_cast< char * >(buf2);
 
1822
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1823
   if (!SWIG_IsOK(res3)) {
 
1824
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetTableByLabel" "', argument " "3"" of type '" "char const *""'");
 
1825
   }
 
1826
-  arg3 = buf3;
 
1827
+  arg3 = reinterpret_cast< char * >(buf3);
 
1828
   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
 
1829
   if (!SWIG_IsOK(res4)) {
 
1830
     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetTableByLabel" "', argument " "4"" of type '" "char const *""'");
 
1831
   }
 
1832
-  arg4 = buf4;
 
1833
+  arg4 = reinterpret_cast< char * >(buf4);
 
1834
   
 
1835
   
 
1836
   InErrorFlag = 0;     
 
1837
@@ -19370,7 +19461,7 @@
 
1838
   if (!SWIG_IsOK(res2)) {
 
1839
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8DefineDblFormat" "', argument " "2"" of type '" "char const *""'");
 
1840
   }
 
1841
-  arg2 = buf2;
 
1842
+  arg2 = reinterpret_cast< char * >(buf2);
 
1843
   
 
1844
   
 
1845
   InErrorFlag = 0;     
 
1846
@@ -19599,7 +19690,7 @@
 
1847
 SWIGINTERN PyObject *_wrap__cmsAddTextTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1848
   PyObject *resultobj = 0;
 
1849
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1850
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1851
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1852
   char *arg3 = (char *) 0 ;
 
1853
   BOOL result;
 
1854
   int res1 ;
 
1855
@@ -19634,7 +19725,7 @@
 
1856
   if (!SWIG_IsOK(res3)) {
 
1857
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddTextTag" "', argument " "3"" of type '" "char const *""'");
 
1858
   }
 
1859
-  arg3 = buf3;
 
1860
+  arg3 = reinterpret_cast< char * >(buf3);
 
1861
   
 
1862
   
 
1863
   InErrorFlag = 0;     
 
1864
@@ -19653,7 +19744,7 @@
 
1865
 SWIGINTERN PyObject *_wrap__cmsAddXYZTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1866
   PyObject *resultobj = 0;
 
1867
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1868
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1869
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1870
   cmsCIEXYZ *arg3 = (cmsCIEXYZ *) 0 ;
 
1871
   BOOL result;
 
1872
   int res1 ;
 
1873
@@ -19704,7 +19795,7 @@
 
1874
 SWIGINTERN PyObject *_wrap__cmsAddLUTTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1875
   PyObject *resultobj = 0;
 
1876
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1877
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1878
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1879
   void *arg3 = (void *) 0 ;
 
1880
   BOOL result;
 
1881
   int res1 ;
 
1882
@@ -19753,7 +19844,7 @@
 
1883
 SWIGINTERN PyObject *_wrap__cmsAddGammaTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1884
   PyObject *resultobj = 0;
 
1885
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1886
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1887
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1888
   LPGAMMATABLE arg3 = (LPGAMMATABLE) 0 ;
 
1889
   BOOL result;
 
1890
   int res1 ;
 
1891
@@ -19804,7 +19895,7 @@
 
1892
 SWIGINTERN PyObject *_wrap__cmsAddChromaticityTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1893
   PyObject *resultobj = 0;
 
1894
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1895
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1896
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1897
   LPcmsCIExyYTRIPLE arg3 = (LPcmsCIExyYTRIPLE) 0 ;
 
1898
   BOOL result;
 
1899
   int res1 ;
 
1900
@@ -19855,7 +19946,7 @@
 
1901
 SWIGINTERN PyObject *_wrap__cmsAddSequenceDescriptionTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1902
   PyObject *resultobj = 0;
 
1903
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1904
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1905
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1906
   LPcmsSEQ arg3 ;
 
1907
   BOOL result;
 
1908
   int res1 ;
 
1909
@@ -19914,7 +20005,7 @@
 
1910
 SWIGINTERN PyObject *_wrap__cmsAddNamedColorTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1911
   PyObject *resultobj = 0;
 
1912
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1913
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1914
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1915
   LPcmsNAMEDCOLORLIST arg3 ;
 
1916
   BOOL result;
 
1917
   int res1 ;
 
1918
@@ -19973,7 +20064,7 @@
 
1919
 SWIGINTERN PyObject *_wrap__cmsAddDateTimeTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1920
   PyObject *resultobj = 0;
 
1921
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1922
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1923
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1924
   tm *arg3 = (tm *) 0 ;
 
1925
   BOOL result;
 
1926
   int res1 ;
 
1927
@@ -20024,7 +20115,7 @@
 
1928
 SWIGINTERN PyObject *_wrap__cmsAddColorantTableTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1929
   PyObject *resultobj = 0;
 
1930
   cmsHPROFILE arg1 = (cmsHPROFILE) 0 ;
 
1931
-  SwigValueWrapper<icTagSignature > arg2 ;
 
1932
+  SwigValueWrapper< icTagSignature > arg2 ;
 
1933
   LPcmsNAMEDCOLORLIST arg3 ;
 
1934
   BOOL result;
 
1935
   int res1 ;
 
1936
@@ -20161,12 +20252,12 @@
 
1937
   if (!SWIG_IsOK(res2)) {
 
1938
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSignalError" "', argument " "2"" of type '" "char const *""'");
 
1939
   }
 
1940
-  arg2 = buf2;
 
1941
+  arg2 = reinterpret_cast< char * >(buf2);
 
1942
   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
 
1943
   if (!SWIG_IsOK(res3)) {
 
1944
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsSignalError" "', argument " "3"" of type '" "char *""'");
 
1945
   }
 
1946
-  arg3 = buf3;
 
1947
+  arg3 = reinterpret_cast< char * >(buf3);
 
1948
   
 
1949
   
 
1950
   InErrorFlag = 0;     
 
1951
@@ -20353,7 +20444,7 @@
 
1952
 
 
1953
 SWIGINTERN PyObject *_cmsTestAlign16_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1954
   PyObject *obj;
 
1955
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1956
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1957
   SWIG_TypeNewClientData(SWIGTYPE_p__cmsTestAlign16, SWIG_NewClientData(obj));
 
1958
   return SWIG_Py_Void();
 
1959
 }
 
1960
@@ -20527,7 +20618,7 @@
 
1961
 
 
1962
 SWIGINTERN PyObject *_cmsTestAlign8_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1963
   PyObject *obj;
 
1964
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1965
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1966
   SWIG_TypeNewClientData(SWIGTYPE_p__cmsTestAlign8, SWIG_NewClientData(obj));
 
1967
   return SWIG_Py_Void();
 
1968
 }
 
1969
@@ -20900,7 +20991,7 @@
 
1970
 
 
1971
 SWIGINTERN PyObject *WVEC3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1972
   PyObject *obj;
 
1973
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1974
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1975
   SWIG_TypeNewClientData(SWIGTYPE_p_WVEC3, SWIG_NewClientData(obj));
 
1976
   return SWIG_Py_Void();
 
1977
 }
 
1978
@@ -21011,7 +21102,7 @@
 
1979
 
 
1980
 SWIGINTERN PyObject *WMAT3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1981
   PyObject *obj;
 
1982
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1983
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1984
   SWIG_TypeNewClientData(SWIGTYPE_p_WMAT3, SWIG_NewClientData(obj));
 
1985
   return SWIG_Py_Void();
 
1986
 }
 
1987
@@ -22714,7 +22805,7 @@
 
1988
 
 
1989
 SWIGINTERN PyObject *L8PARAMS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1990
   PyObject *obj;
 
1991
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
1992
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
1993
   SWIG_TypeNewClientData(SWIGTYPE_p__lcms_l8opt_struc, SWIG_NewClientData(obj));
 
1994
   return SWIG_Py_Void();
 
1995
 }
 
1996
@@ -23507,7 +23598,7 @@
 
1997
 
 
1998
 SWIGINTERN PyObject *L16PARAMS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
1999
   PyObject *obj;
 
2000
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2001
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2002
   SWIG_TypeNewClientData(SWIGTYPE_p__lcms_l16params_struc, SWIG_NewClientData(obj));
 
2003
   return SWIG_Py_Void();
 
2004
 }
 
2005
@@ -25471,7 +25562,7 @@
 
2006
 
 
2007
 SWIGINTERN PyObject *_lcms_LUT_struc_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2008
   PyObject *obj;
 
2009
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2010
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2011
   SWIG_TypeNewClientData(SWIGTYPE_p__lcms_LUT_struc, SWIG_NewClientData(obj));
 
2012
   return SWIG_Py_Void();
 
2013
 }
 
2014
@@ -26290,7 +26381,7 @@
 
2015
 
 
2016
 SWIGINTERN PyObject *MATSHAPER_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2017
   PyObject *obj;
 
2018
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2019
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2020
   SWIG_TypeNewClientData(SWIGTYPE_p_MATSHAPER, SWIG_NewClientData(obj));
 
2021
   return SWIG_Py_Void();
 
2022
 }
 
2023
@@ -26811,7 +26902,7 @@
 
2024
   if (!SWIG_IsOK(res1)) {
 
2025
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIdentifyWhitePoint" "', argument " "1"" of type '" "char *""'");
 
2026
   }
 
2027
-  arg1 = buf1;
 
2028
+  arg1 = reinterpret_cast< char * >(buf1);
 
2029
   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 |  0 );
 
2030
   if (!SWIG_IsOK(res2)) {
 
2031
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsIdentifyWhitePoint" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); 
 
2032
@@ -26899,7 +26990,7 @@
 
2033
   PyObject *resultobj = 0;
 
2034
   cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ;
 
2035
   cmsHPROFILE arg2 = (cmsHPROFILE) 0 ;
 
2036
-  SwigValueWrapper<icTagSignature > arg3 ;
 
2037
+  SwigValueWrapper< icTagSignature > arg3 ;
 
2038
   int result;
 
2039
   int res1 ;
 
2040
   int res2 ;
 
2041
@@ -27007,7 +27098,7 @@
 
2042
   if (!SWIG_IsOK(res2)) {
 
2043
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAppendNamedColor" "', argument " "2"" of type '" "char const *""'");
 
2044
   }
 
2045
-  arg2 = buf2;
 
2046
+  arg2 = reinterpret_cast< char * >(buf2);
 
2047
   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 |  0 );
 
2048
   if (!SWIG_IsOK(res3)) {
 
2049
     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAppendNamedColor" "', argument " "3"" of type '" "WORD [3]""'"); 
 
2050
@@ -28100,7 +28191,7 @@
 
2051
   if (!SWIG_IsOK(res2)) {
 
2052
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_PhysicalFile_set" "', argument " "2"" of type '" "char [(256)]""'");
 
2053
   }
 
2054
-  arg2 = temp2;
 
2055
+  arg2 = reinterpret_cast< char * >(temp2);
 
2056
   if (arg2) memcpy(arg1->PhysicalFile,arg2,(256)*sizeof(char));
 
2057
   else memset(arg1->PhysicalFile,0,(256)*sizeof(char));
 
2058
   resultobj = SWIG_Py_Void();
 
2059
@@ -28665,7 +28756,7 @@
 
2060
 
 
2061
 SWIGINTERN PyObject *LCMSICCPROFILE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2062
   PyObject *obj;
 
2063
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2064
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2065
   SWIG_TypeNewClientData(SWIGTYPE_p__lcms_iccprofile_struct, SWIG_NewClientData(obj));
 
2066
   return SWIG_Py_Void();
 
2067
 }
 
2068
@@ -28691,7 +28782,7 @@
 
2069
 SWIGINTERN PyObject *_wrap__cmsSearchTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2070
   PyObject *resultobj = 0;
 
2071
   LPLCMSICCPROFILE arg1 = (LPLCMSICCPROFILE) 0 ;
 
2072
-  SwigValueWrapper<icTagSignature > arg2 ;
 
2073
+  SwigValueWrapper< icTagSignature > arg2 ;
 
2074
   BOOL arg3 ;
 
2075
   icInt32Number result;
 
2076
   void *argp1 = 0 ;
 
2077
@@ -28744,7 +28835,7 @@
 
2078
 SWIGINTERN PyObject *_wrap__cmsInitTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2079
   PyObject *resultobj = 0;
 
2080
   LPLCMSICCPROFILE arg1 = (LPLCMSICCPROFILE) 0 ;
 
2081
-  SwigValueWrapper<icTagSignature > arg2 ;
 
2082
+  SwigValueWrapper< icTagSignature > arg2 ;
 
2083
   size_t arg3 ;
 
2084
   void *arg4 = (void *) 0 ;
 
2085
   LPVOID result;
 
2086
@@ -28815,7 +28906,7 @@
 
2087
   if (!SWIG_IsOK(res1)) {
 
2088
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsCreateProfileFromFilePlaceholder" "', argument " "1"" of type '" "char const *""'");
 
2089
   }
 
2090
-  arg1 = buf1;
 
2091
+  arg1 = reinterpret_cast< char * >(buf1);
 
2092
   
 
2093
   
 
2094
   InErrorFlag = 0;     
 
2095
@@ -28887,7 +28978,7 @@
 
2096
   if (!SWIG_IsOK(res2)) {
 
2097
     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsSetSaveToDisk" "', argument " "2"" of type '" "char const *""'");
 
2098
   }
 
2099
-  arg2 = buf2;
 
2100
+  arg2 = reinterpret_cast< char * >(buf2);
 
2101
   
 
2102
   
 
2103
   InErrorFlag = 0;     
 
2104
@@ -31318,7 +31409,7 @@
 
2105
 
 
2106
 SWIGINTERN PyObject *_cmsTRANSFORM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2107
   PyObject *obj;
 
2108
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2109
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2110
   SWIG_TypeNewClientData(SWIGTYPE_p__cmstransform_struct, SWIG_NewClientData(obj));
 
2111
   return SWIG_Py_Void();
 
2112
 }
 
2113
@@ -32185,7 +32276,7 @@
 
2114
 
 
2115
 SWIGINTERN PyObject *icTagSignature_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2116
   PyObject *obj;
 
2117
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2118
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2119
   SWIG_TypeNewClientData(SWIGTYPE_p_icTagSignature, SWIG_NewClientData(obj));
 
2120
   return SWIG_Py_Void();
 
2121
 }
 
2122
@@ -32204,7 +32295,7 @@
 
2123
   if (!SWIG_IsOK(res1)) {
 
2124
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrPointer" "', argument " "1"" of type '" "char *""'");
 
2125
   }
 
2126
-  arg1 = buf1;
 
2127
+  arg1 = reinterpret_cast< char * >(buf1);
 
2128
   
 
2129
   
 
2130
   InErrorFlag = 0;     
 
2131
@@ -32249,7 +32340,7 @@
 
2132
 
 
2133
 SWIGINTERN PyObject *StrPointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
 
2134
   PyObject *obj;
 
2135
-  if (!PyArg_ParseTuple(args,(char*)"O|swigregister", &obj)) return NULL;
 
2136
+  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
 
2137
   SWIG_TypeNewClientData(SWIGTYPE_p_StrPointer, SWIG_NewClientData(obj));
 
2138
   return SWIG_Py_Void();
 
2139
 }
 
2140
@@ -33133,47 +33224,47 @@
 
2141
 static swig_type_info _swigt__p_LPcmsGAMUTEX = {"_p_LPcmsGAMUTEX", "LPcmsGAMUTEX *", 0, 0, (void*)0, 0};
 
2142
 static swig_type_info _swigt__p_LPcmsNAMEDCOLORLIST = {"_p_LPcmsNAMEDCOLORLIST", "LPcmsNAMEDCOLORLIST *", 0, 0, (void*)0, 0};
 
2143
 static swig_type_info _swigt__p_LPcmsSEQ = {"_p_LPcmsSEQ", "LPcmsSEQ *", 0, 0, (void*)0, 0};
 
2144
-static swig_type_info _swigt__p_MAT3 = {"_p_MAT3", "MAT3 *|LPMAT3", 0, 0, (void*)0, 0};
 
2145
+static swig_type_info _swigt__p_MAT3 = {"_p_MAT3", "LPMAT3|MAT3 *", 0, 0, (void*)0, 0};
 
2146
 static swig_type_info _swigt__p_MATSHAPER = {"_p_MATSHAPER", "MATSHAPER *", 0, 0, (void*)0, 0};
 
2147
-static swig_type_info _swigt__p_SAMPLEDCURVE = {"_p_SAMPLEDCURVE", "SAMPLEDCURVE *|LPSAMPLEDCURVE", 0, 0, (void*)0, 0};
 
2148
+static swig_type_info _swigt__p_SAMPLEDCURVE = {"_p_SAMPLEDCURVE", "LPSAMPLEDCURVE|SAMPLEDCURVE *", 0, 0, (void*)0, 0};
 
2149
 static swig_type_info _swigt__p_StrPointer = {"_p_StrPointer", "StrPointer *", 0, 0, (void*)0, 0};
 
2150
 static swig_type_info _swigt__p_VEC3 = {"_p_VEC3", "VEC3 *|LPVEC3", 0, 0, (void*)0, 0};
 
2151
 static swig_type_info _swigt__p_WMAT3 = {"_p_WMAT3", "WMAT3 *", 0, 0, (void*)0, 0};
 
2152
 static swig_type_info _swigt__p_WVEC3 = {"_p_WVEC3", "WVEC3 *", 0, 0, (void*)0, 0};
 
2153
 static swig_type_info _swigt__p__cmsTestAlign16 = {"_p__cmsTestAlign16", "_cmsTestAlign16 *", 0, 0, (void*)0, 0};
 
2154
 static swig_type_info _swigt__p__cmsTestAlign8 = {"_p__cmsTestAlign8", "_cmsTestAlign8 *", 0, 0, (void*)0, 0};
 
2155
-static swig_type_info _swigt__p__cmstransform_struct = {"_p__cmstransform_struct", "_cmstransform_struct *|_LPcmsTRANSFORM", 0, 0, (void*)0, 0};
 
2156
-static swig_type_info _swigt__p__lcms_LUT_struc = {"_p__lcms_LUT_struc", "_lcms_LUT_struc *|LPLUT", 0, 0, (void*)0, 0};
 
2157
-static swig_type_info _swigt__p__lcms_iccprofile_struct = {"_p__lcms_iccprofile_struct", "_lcms_iccprofile_struct *|LPLCMSICCPROFILE", 0, 0, (void*)0, 0};
 
2158
-static swig_type_info _swigt__p__lcms_l16params_struc = {"_p__lcms_l16params_struc", "_lcms_l16params_struc *|L16PARAMS *", 0, 0, (void*)0, 0};
 
2159
-static swig_type_info _swigt__p__lcms_l8opt_struc = {"_p__lcms_l8opt_struc", "_lcms_l8opt_struc *|LPL8PARAMS", 0, 0, (void*)0, 0};
 
2160
+static swig_type_info _swigt__p__cmstransform_struct = {"_p__cmstransform_struct", "_cmsTRANSFORM *|_LPcmsTRANSFORM|_cmstransform_struct *", 0, 0, (void*)0, 0};
 
2161
+static swig_type_info _swigt__p__lcms_LUT_struc = {"_p__lcms_LUT_struc", "_lcms_LUT_struc *|LPLUT|LUT *", 0, 0, (void*)0, 0};
 
2162
+static swig_type_info _swigt__p__lcms_iccprofile_struct = {"_p__lcms_iccprofile_struct", "LCMSICCPROFILE *|LPLCMSICCPROFILE|_lcms_iccprofile_struct *", 0, 0, (void*)0, 0};
 
2163
+static swig_type_info _swigt__p__lcms_l16params_struc = {"_p__lcms_l16params_struc", "_lcms_l16params_struc *|L16PARAMS *|LPL16PARAMS", 0, 0, (void*)0, 0};
 
2164
+static swig_type_info _swigt__p__lcms_l8opt_struc = {"_p__lcms_l8opt_struc", "_lcms_l8opt_struc *|L8PARAMS *|LPL8PARAMS", 0, 0, (void*)0, 0};
 
2165
 static swig_type_info _swigt__p_a_16__LCMSGAMMAPARAMS = {"_p_a_16__LCMSGAMMAPARAMS", "LCMSGAMMAPARAMS (*)[16]", 0, 0, (void*)0, 0};
 
2166
 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
 
2167
-static swig_type_info _swigt__p_cmsCIELCh = {"_p_cmsCIELCh", "cmsCIELCh *", 0, 0, (void*)0, 0};
 
2168
-static swig_type_info _swigt__p_cmsCIELab = {"_p_cmsCIELab", "cmsCIELab *", 0, 0, (void*)0, 0};
 
2169
-static swig_type_info _swigt__p_cmsCIEXYZ = {"_p_cmsCIEXYZ", "cmsCIEXYZ *|LPcmsCIEXYZ", 0, 0, (void*)0, 0};
 
2170
+static swig_type_info _swigt__p_cmsCIELCh = {"_p_cmsCIELCh", "LPcmsCIELCh|cmsCIELCh *", 0, 0, (void*)0, 0};
 
2171
+static swig_type_info _swigt__p_cmsCIELab = {"_p_cmsCIELab", "cmsCIELab *|LPcmsCIELab", 0, 0, (void*)0, 0};
 
2172
+static swig_type_info _swigt__p_cmsCIEXYZ = {"_p_cmsCIEXYZ", "LPcmsCIEXYZ|cmsCIEXYZ *", 0, 0, (void*)0, 0};
 
2173
 static swig_type_info _swigt__p_cmsCIEXYZTRIPLE = {"_p_cmsCIEXYZTRIPLE", "cmsCIEXYZTRIPLE *|LPcmsCIEXYZTRIPLE", 0, 0, (void*)0, 0};
 
2174
 static swig_type_info _swigt__p_cmsCIExyY = {"_p_cmsCIExyY", "cmsCIExyY *|LPcmsCIExyY", 0, 0, (void*)0, 0};
 
2175
 static swig_type_info _swigt__p_cmsCIExyYTRIPLE = {"_p_cmsCIExyYTRIPLE", "cmsCIExyYTRIPLE *|LPcmsCIExyYTRIPLE", 0, 0, (void*)0, 0};
 
2176
 static swig_type_info _swigt__p_cmsGAMUTEX = {"_p_cmsGAMUTEX", "cmsGAMUTEX *", 0, 0, (void*)0, 0};
 
2177
-static swig_type_info _swigt__p_cmsJCh = {"_p_cmsJCh", "cmsJCh *|LPcmsJCh", 0, 0, (void*)0, 0};
 
2178
+static swig_type_info _swigt__p_cmsJCh = {"_p_cmsJCh", "LPcmsJCh|cmsJCh *", 0, 0, (void*)0, 0};
 
2179
 static swig_type_info _swigt__p_cmsNAMEDCOLOR = {"_p_cmsNAMEDCOLOR", "cmsNAMEDCOLOR *", 0, 0, (void*)0, 0};
 
2180
 static swig_type_info _swigt__p_cmsNAMEDCOLORLIST = {"_p_cmsNAMEDCOLORLIST", "cmsNAMEDCOLORLIST *", 0, 0, (void*)0, 0};
 
2181
 static swig_type_info _swigt__p_cmsPSEQDESC = {"_p_cmsPSEQDESC", "cmsPSEQDESC *", 0, 0, (void*)0, 0};
 
2182
 static swig_type_info _swigt__p_cmsSEQ = {"_p_cmsSEQ", "cmsSEQ *", 0, 0, (void*)0, 0};
 
2183
-static swig_type_info _swigt__p_cmsViewingConditions = {"_p_cmsViewingConditions", "cmsViewingConditions *", 0, 0, (void*)0, 0};
 
2184
+static swig_type_info _swigt__p_cmsViewingConditions = {"_p_cmsViewingConditions", "cmsViewingConditions *|LPcmsViewingConditions", 0, 0, (void*)0, 0};
 
2185
 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
 
2186
 static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void = {"_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void", "void (*)(unsigned short [],unsigned short [],LPWMAT3,LPWVEC3)|_cmsADJFN", 0, 0, (void*)0, 0};
 
2187
-static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void = {"_p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void", "void (*)(unsigned short [],unsigned short [],unsigned short [],_lcms_l16params_struc *)|_cms3DLERP", 0, 0, (void*)0, 0};
 
2188
+static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void = {"_p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void", "_cms3DLERP|void (*)(unsigned short [],unsigned short [],unsigned short [],_lcms_l16params_struc *)", 0, 0, (void*)0, 0};
 
2189
 static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_p_void__int = {"_p_f_a___unsigned_short_a___unsigned_short_p_void__int", "int (*)(unsigned short [],unsigned short [],void *)|_cmsSAMPLER", 0, 0, (void*)0, 0};
 
2190
 static swig_type_info _swigt__p_f_int_p_q_const__char__int = {"_p_f_int_p_q_const__char__int", "int (*)(int,char const *)|cmsErrorHandlerFunction", 0, 0, (void*)0, 0};
 
2191
-static swig_type_info _swigt__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void = {"_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void", "void (*)(_cmstransform_struct *,unsigned short [],unsigned short [])|_cmsTRANSFN", 0, 0, (void*)0, 0};
 
2192
-static swig_type_info _swigt__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char", "unsigned char *(*)(_cmstransform_struct *,unsigned short [],unsigned char *)|_cmsFIXFN", 0, 0, (void*)0, 0};
 
2193
+static swig_type_info _swigt__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void = {"_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void", "_cmsTRANSFN|void (*)(_cmstransform_struct *,unsigned short [],unsigned short [])", 0, 0, (void*)0, 0};
 
2194
+static swig_type_info _swigt__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char", "_cmsFIXFN|unsigned char *(*)(_cmstransform_struct *,unsigned short [],unsigned char *)", 0, 0, (void*)0, 0};
 
2195
 static swig_type_info _swigt__p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void = {"_p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void", "void (*)(_cmstransform_struct *,void *,void *,unsigned int)|_cmsCOLORCALLBACKFN", 0, 0, (void*)0, 0};
 
2196
 static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct__int = {"_p_f_p__lcms_iccprofile_struct__int", "int (*)(_lcms_iccprofile_struct *)|BOOL (*)(_lcms_iccprofile_struct *)", 0, 0, (void*)0, 0};
 
2197
 static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct__size_t = {"_p_f_p__lcms_iccprofile_struct__size_t", "size_t (*)(_lcms_iccprofile_struct *)", 0, 0, (void*)0, 0};
 
2198
 static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct_size_t__int = {"_p_f_p__lcms_iccprofile_struct_size_t__int", "int (*)(_lcms_iccprofile_struct *,size_t)|BOOL (*)(_lcms_iccprofile_struct *,size_t)", 0, 0, (void*)0, 0};
 
2199
-static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct_size_t_p_void__int = {"_p_f_p__lcms_iccprofile_struct_size_t_p_void__int", "int (*)(_lcms_iccprofile_struct *,size_t,void *)|BOOL (*)(_lcms_iccprofile_struct *,size_t,LPVOID)", 0, 0, (void*)0, 0};
 
2200
+static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct_size_t_p_void__int = {"_p_f_p__lcms_iccprofile_struct_size_t_p_void__int", "BOOL (*)(_lcms_iccprofile_struct *,size_t,LPVOID)|int (*)(_lcms_iccprofile_struct *,size_t,void *)", 0, 0, (void*)0, 0};
 
2201
 static swig_type_info _swigt__p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char", "unsigned char *(*)(void *,unsigned short [],unsigned char *)|cmsFORMATTER", 0, 0, (void*)0, 0};
 
2202
 static swig_type_info _swigt__p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t = {"_p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t", "size_t (*)(void *,size_t,size_t,_lcms_iccprofile_struct *)", 0, 0, (void*)0, 0};
 
2203
 static swig_type_info _swigt__p_icCLutStruct = {"_p_icCLutStruct", "icCLutStruct *", 0, 0, (void*)0, 0};
 
2204
@@ -33190,21 +33281,21 @@
 
2205
 static swig_type_info _swigt__p_icUInt16Number = {"_p_icUInt16Number", "icUInt16Number *", 0, 0, (void*)0, 0};
 
2206
 static swig_type_info _swigt__p_icUInt32Number = {"_p_icUInt32Number", "icUInt32Number *", 0, 0, (void*)0, 0};
 
2207
 static swig_type_info _swigt__p_icUInt8Number = {"_p_icUInt8Number", "icUInt8Number *", 0, 0, (void*)0, 0};
 
2208
-static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
 
2209
+static swig_type_info _swigt__p_int = {"_p_int", "BOOL *|int *|LCMS_RWLOCK_T *", 0, 0, (void*)0, 0};
 
2210
 static swig_type_info _swigt__p_p_GAMMATABLE = {"_p_p_GAMMATABLE", "GAMMATABLE **|LPGAMMATABLE *", 0, 0, (void*)0, 0};
 
2211
 static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
 
2212
 static swig_type_info _swigt__p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void = {"_p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void", "void (**)(unsigned short [],unsigned short [],LPWMAT3,LPWVEC3)|_cmsADJFN *", 0, 0, (void*)0, 0};
 
2213
-static swig_type_info _swigt__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char", "unsigned char *(**)(void *,unsigned short [],unsigned char *)|cmsFORMATTER *", 0, 0, (void*)0, 0};
 
2214
+static swig_type_info _swigt__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char", "cmsFORMATTER *|unsigned char *(**)(void *,unsigned short [],unsigned char *)", 0, 0, (void*)0, 0};
 
2215
 static swig_type_info _swigt__p_p_p_char = {"_p_p_p_char", "char ***", 0, 0, (void*)0, 0};
 
2216
-static swig_type_info _swigt__p_p_unsigned_short = {"_p_p_unsigned_short", "unsigned short **|WORD **", 0, 0, (void*)0, 0};
 
2217
-static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **|cmsHTRANSFORM *", 0, 0, (void*)0, 0};
 
2218
+static swig_type_info _swigt__p_p_unsigned_short = {"_p_p_unsigned_short", "WORD **|LPWORD *|unsigned short **", 0, 0, (void*)0, 0};
 
2219
+static swig_type_info _swigt__p_p_void = {"_p_p_void", "cmsHTRANSFORM *|cmsHPROFILE *|LPVOID *|void **", 0, 0, (void*)0, 0};
 
2220
 static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0};
 
2221
 static swig_type_info _swigt__p_tm = {"_p_tm", "tm *", 0, 0, (void*)0, 0};
 
2222
-static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|BYTE *", 0, 0, (void*)0, 0};
 
2223
+static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|BYTE *|LPBYTE", 0, 0, (void*)0, 0};
 
2224
 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0};
 
2225
-static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|LPDWORD", 0, 0, (void*)0, 0};
 
2226
-static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|WORD *", 0, 0, (void*)0, 0};
 
2227
-static swig_type_info _swigt__p_void = {"_p_void", "void *|cmsHPROFILE", 0, 0, (void*)0, 0};
 
2228
+static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "LPDWORD|DWORD *|unsigned long *", 0, 0, (void*)0, 0};
 
2229
+static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "WORD *|unsigned short *|LPWORD", 0, 0, (void*)0, 0};
 
2230
+static swig_type_info _swigt__p_void = {"_p_void", "cmsHTRANSFORM|LCMSHANDLE|cmsHPROFILE|LPVOID|void *", 0, 0, (void*)0, 0};
 
2231
 
 
2232
 static swig_type_info *swig_type_initial[] = {
 
2233
   &_swigt__p_COLORB,
 
2234
@@ -33485,7 +33576,7 @@
 
2235
  * structures together.
 
2236
  *
 
2237
  * The generated swig_type_info structures are assigned staticly to an initial 
 
2238
- * array. We just loop though that array, and handle each type individually.
 
2239
+ * array. We just loop through that array, and handle each type individually.
 
2240
  * First we lookup if this type has been already loaded, and if so, use the
 
2241
  * loaded structure instead of the generated one. Then we have to fill in the
 
2242
  * cast linked list. The cast data is initially stored in something like a
 
2243
@@ -33523,32 +33614,58 @@
 
2244
 #define SWIGRUNTIME_DEBUG
 
2245
 #endif
 
2246
 
 
2247
+
 
2248
 SWIGRUNTIME void
 
2249
 SWIG_InitializeModule(void *clientdata) {
 
2250
   size_t i;
 
2251
-  swig_module_info *module_head;
 
2252
-  static int init_run = 0;
 
2253
+  swig_module_info *module_head, *iter;
 
2254
+  int found, init;
 
2255
   
 
2256
   clientdata = clientdata;
 
2257
   
 
2258
-  if (init_run) return;
 
2259
-  init_run = 1;
 
2260
-  
 
2261
-  /* Initialize the swig_module */
 
2262
-  swig_module.type_initial = swig_type_initial;
 
2263
-  swig_module.cast_initial = swig_cast_initial;
 
2264
+  /* check to see if the circular list has been setup, if not, set it up */
 
2265
+  if (swig_module.next==0) {
 
2266
+    /* Initialize the swig_module */
 
2267
+    swig_module.type_initial = swig_type_initial;
 
2268
+    swig_module.cast_initial = swig_cast_initial;
 
2269
+    swig_module.next = &swig_module;
 
2270
+    init = 1;
 
2271
+  } else {
 
2272
+    init = 0;
 
2273
+  }
 
2274
   
 
2275
   /* Try and load any already created modules */
 
2276
   module_head = SWIG_GetModule(clientdata);
 
2277
-  if (module_head) {
 
2278
+  if (!module_head) {
 
2279
+    /* This is the first module loaded for this interpreter */
 
2280
+    /* so set the swig module into the interpreter */
 
2281
+    SWIG_SetModule(clientdata, &swig_module);
 
2282
+    module_head = &swig_module;
 
2283
+  } else {
 
2284
+    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
 
2285
+    found=0;
 
2286
+    iter=module_head;
 
2287
+    do {
 
2288
+      if (iter==&swig_module) {
 
2289
+        found=1;
 
2290
+        break;
 
2291
+      }
 
2292
+      iter=iter->next;
 
2293
+    } while (iter!= module_head);
 
2294
+    
 
2295
+    /* if the is found in the list, then all is done and we may leave */
 
2296
+    if (found) return;
 
2297
+    /* otherwise we must add out module into the list */
 
2298
     swig_module.next = module_head->next;
 
2299
     module_head->next = &swig_module;
 
2300
-  } else {
 
2301
-    /* This is the first module loaded */
 
2302
-    swig_module.next = &swig_module;
 
2303
-    SWIG_SetModule(clientdata, &swig_module);
 
2304
   }
 
2305
   
 
2306
+  /* When multiple interpeters are used, a module could have already been initialized in
 
2307
+       a different interpreter, but not yet have a pointer in this interpreter.
 
2308
+       In this case, we do not want to continue adding types... everything should be
 
2309
+       set up already */
 
2310
+  if (init == 0) return;
 
2311
+  
 
2312
   /* Now work on filling in swig_module.types */
 
2313
 #ifdef SWIGRUNTIME_DEBUG
 
2314
   printf("SWIG_InitializeModule: size %d\n", swig_module.size);
 
2315
@@ -33859,7 +33976,7 @@
 
2316
   }
 
2317
   
 
2318
   SWIGINTERN PyObject *
 
2319
-  SWIG_globals() {
 
2320
+  SWIG_globals(void) {
 
2321
     static PyObject *_SWIG_globals = 0; 
 
2322
     if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();  
 
2323
     return _SWIG_globals;
 
2324
@@ -33904,11 +34021,11 @@
 
2325
     swig_type_info **types_initial) {
 
2326
     size_t i;
 
2327
     for (i = 0; methods[i].ml_name; ++i) {
 
2328
-      char *c = methods[i].ml_doc;
 
2329
+      const char *c = methods[i].ml_doc;
 
2330
       if (c && (c = strstr(c, "swig_ptr: "))) {
 
2331
         int j;
 
2332
         swig_const_info *ci = 0;
 
2333
-        char *name = c + 10;
 
2334
+        const char *name = c + 10;
 
2335
         for (j = 0; const_table[j].type; ++j) {
 
2336
           if (strncmp(const_table[j].name, name, 
 
2337
               strlen(const_table[j].name)) == 0) {