~ubuntu-branches/ubuntu/karmic/lcms/karmic-security

« back to all changes in this revision

Viewing changes to python/lcms_wrap.cxx

  • 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
1
/* ----------------------------------------------------------------------------
2
2
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.31
 
3
 * Version 1.3.29
4
4
 * 
5
5
 * This file is not intended to be easily readable and contains a number of 
6
6
 * coding conventions designed to improve portability and efficiency. Do not make
120
120
#endif
121
121
 
122
122
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123
 
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
 
123
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124
124
# define _CRT_SECURE_NO_DEPRECATE
125
125
#endif
126
126
 
137
137
 
138
138
/* This should only be incremented when either the layout of swig_type_info changes,
139
139
   or for whatever reason, the runtime changes incompatibly */
140
 
#define SWIG_RUNTIME_VERSION "3"
 
140
#define SWIG_RUNTIME_VERSION "2"
141
141
 
142
142
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143
143
#ifdef SWIG_TYPE_TABLE
714
714
 
715
715
 
716
716
 
 
717
/* Python.h has to appear first */
 
718
#include <Python.h>
717
719
 
718
720
/* Add PyOS_snprintf for old Pythons */
719
721
#if PY_VERSION_HEX < 0x02020000
794
796
}
795
797
#endif
796
798
 
797
 
/* Py_ssize_t for old Pythons */
798
 
/* This code is as recommended by: */
799
 
/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
800
 
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
801
 
typedef int Py_ssize_t;
802
 
# define PY_SSIZE_T_MAX INT_MAX
803
 
# define PY_SSIZE_T_MIN INT_MIN
804
 
#endif
805
799
 
806
800
/* -----------------------------------------------------------------------------
807
801
 * error manipulation
1195
1189
SWIGRUNTIMEINLINE PyObject * 
1196
1190
_SWIG_Py_None(void)
1197
1191
{
1198
 
  PyObject *none = Py_BuildValue((char*)"");
 
1192
  PyObject *none = Py_BuildValue("");
1199
1193
  Py_DECREF(none);
1200
1194
  return none;
1201
1195
}
2054
2048
    void *vptr = 0;
2055
2049
    
2056
2050
    /* here we get the method pointer for callbacks */
2057
 
    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
 
2051
    char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2058
2052
    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2059
2053
    if (desc) {
2060
2054
      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2175
2169
   return;
2176
2170
 }
2177
2171
#endif
2178
 
 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
 
2172
 dict = PyObject_GetAttrString(inst, "__dict__");
2179
2173
 PyDict_SetItem(dict, SWIG_This(), swig_this);
2180
2174
 Py_DECREF(dict);
2181
2175
2316
2310
 
2317
2311
/* The python cached type query */
2318
2312
SWIGRUNTIME PyObject *
2319
 
SWIG_Python_TypeCache(void) {
 
2313
SWIG_Python_TypeCache() {
2320
2314
  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2321
2315
  return cache;
2322
2316
}
2557
2551
 
2558
2552
#if (PY_VERSION_HEX <= 0x02000000)
2559
2553
# if !defined(SWIG_PYTHON_CLASSIC)
2560
 
#  error "This python version requires swig to be run with the '-classic' option"
 
2554
#  error "This python version requires to use swig with the '-classic' option"
2561
2555
# endif
2562
2556
#endif
2563
2557
 
2568
2562
 
2569
2563
#define SWIG_name    "_lcms"
2570
2564
 
2571
 
#define SWIGVERSION 0x010331 
2572
 
#define SWIG_VERSION SWIGVERSION
 
2565
#define SWIGVERSION 0x010329 
2573
2566
 
2574
2567
 
2575
2568
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) 
2694
2687
        }
2695
2688
 
2696
2689
SWIGINTERN swig_type_info*
2697
 
SWIG_pchar_descriptor(void)
 
2690
SWIG_pchar_descriptor()
2698
2691
{
2699
2692
  static int init = 0;
2700
2693
  static swig_type_info* info = 0;
2923
2916
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2924
2917
{
2925
2918
  if (PyString_Check(obj)) {
2926
 
    char *cstr; Py_ssize_t len;
 
2919
    char *cstr; int len;
2927
2920
    PyString_AsStringAndSize(obj, &cstr, &len);
2928
2921
    if (cptr)  {
2929
2922
      if (alloc) {
3536
3529
  result = (char *)COLORW___repr__(arg1);
3537
3530
  if (InErrorFlag) SWIG_fail;             
3538
3531
  
3539
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
3532
  resultobj = SWIG_FromCharPtr(result);
3540
3533
  return resultobj;
3541
3534
fail:
3542
3535
  return NULL;
3781
3774
  result = (char *)COLORB___repr__(arg1);
3782
3775
  if (InErrorFlag) SWIG_fail;             
3783
3776
  
3784
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
3777
  resultobj = SWIG_FromCharPtr(result);
3785
3778
  return resultobj;
3786
3779
fail:
3787
3780
  return NULL;
3940
3933
  if (!SWIG_IsOK(res1)) {
3941
3934
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IT8" "', argument " "1"" of type '" "char const *""'");
3942
3935
  }
3943
 
  arg1 = reinterpret_cast< char * >(buf1);
 
3936
  arg1 = buf1;
3944
3937
  
3945
3938
  
3946
3939
  InErrorFlag = 0;      
3997
3990
  }
3998
3991
  
3999
3992
fail:
4000
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IT8'.\n  Possible C/C++ prototypes are:\n    IT8(char const *)\n    IT8()\n");
 
3993
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_IT8'");
4001
3994
  return NULL;
4002
3995
}
4003
3996
 
4049
4042
  result = (char *)IT8___repr__(arg1);
4050
4043
  if (InErrorFlag) SWIG_fail;             
4051
4044
  
4052
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
4045
  resultobj = SWIG_FromCharPtr(result);
4053
4046
  return resultobj;
4054
4047
fail:
4055
4048
  return NULL;
4079
4072
  if (!SWIG_IsOK(res2)) {
4080
4073
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_saveToFile" "', argument " "2"" of type '" "char const *""'");
4081
4074
  }
4082
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4075
  arg2 = buf2;
4083
4076
  
4084
4077
  
4085
4078
  InErrorFlag = 0;      
4178
4171
  result = (char *)IT8_getSheetType(arg1);
4179
4172
  if (InErrorFlag) SWIG_fail;             
4180
4173
  
4181
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
4174
  resultobj = SWIG_FromCharPtr(result);
4182
4175
  return resultobj;
4183
4176
fail:
4184
4177
  return NULL;
4208
4201
  if (!SWIG_IsOK(res2)) {
4209
4202
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setSheetType" "', argument " "2"" of type '" "char const *""'");
4210
4203
  }
4211
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4204
  arg2 = buf2;
4212
4205
  
4213
4206
  
4214
4207
  InErrorFlag = 0;      
4247
4240
  if (!SWIG_IsOK(res2)) {
4248
4241
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_addComment" "', argument " "2"" of type '" "char const *""'");
4249
4242
  }
4250
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4243
  arg2 = buf2;
4251
4244
  
4252
4245
  
4253
4246
  InErrorFlag = 0;      
4291
4284
  if (!SWIG_IsOK(res2)) {
4292
4285
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'");
4293
4286
  }
4294
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4287
  arg2 = buf2;
4295
4288
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4296
4289
  if (!SWIG_IsOK(res3)) {
4297
4290
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "char const *""'");
4298
4291
  }
4299
 
  arg3 = reinterpret_cast< char * >(buf3);
 
4292
  arg3 = buf3;
4300
4293
  
4301
4294
  
4302
4295
  InErrorFlag = 0;      
4341
4334
  if (!SWIG_IsOK(res2)) {
4342
4335
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'");
4343
4336
  }
4344
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4337
  arg2 = buf2;
4345
4338
  ecode3 = SWIG_AsVal_double(obj2, &val3);
4346
4339
  if (!SWIG_IsOK(ecode3)) {
4347
4340
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "double""'");
4410
4403
  }
4411
4404
  
4412
4405
fail:
4413
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setProperty'.\n  Possible C/C++ prototypes are:\n    setProperty(char const *,char const *)\n    setProperty(char const *,double)\n");
 
4406
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setProperty'");
4414
4407
  return NULL;
4415
4408
}
4416
4409
 
4442
4435
  if (!SWIG_IsOK(res2)) {
4443
4436
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyAsHex" "', argument " "2"" of type '" "char const *""'");
4444
4437
  }
4445
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4438
  arg2 = buf2;
4446
4439
  ecode3 = SWIG_AsVal_int(obj2, &val3);
4447
4440
  if (!SWIG_IsOK(ecode3)) {
4448
4441
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setPropertyAsHex" "', argument " "3"" of type '" "int""'");
4491
4484
  if (!SWIG_IsOK(res2)) {
4492
4485
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyUncooked" "', argument " "2"" of type '" "char const *""'");
4493
4486
  }
4494
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4487
  arg2 = buf2;
4495
4488
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4496
4489
  if (!SWIG_IsOK(res3)) {
4497
4490
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setPropertyUncooked" "', argument " "3"" of type '" "char const *""'");
4498
4491
  }
4499
 
  arg3 = reinterpret_cast< char * >(buf3);
 
4492
  arg3 = buf3;
4500
4493
  
4501
4494
  
4502
4495
  InErrorFlag = 0;      
4537
4530
  if (!SWIG_IsOK(res2)) {
4538
4531
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getProperty" "', argument " "2"" of type '" "char const *""'");
4539
4532
  }
4540
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4533
  arg2 = buf2;
4541
4534
  
4542
4535
  
4543
4536
  InErrorFlag = 0;      
4544
4537
  result = (char *)IT8_getProperty(arg1,(char const *)arg2);
4545
4538
  if (InErrorFlag) SWIG_fail;             
4546
4539
  
4547
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
4540
  resultobj = SWIG_FromCharPtr(result);
4548
4541
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4549
4542
  return resultobj;
4550
4543
fail:
4576
4569
  if (!SWIG_IsOK(res2)) {
4577
4570
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getPropertyAsDbl" "', argument " "2"" of type '" "char const *""'");
4578
4571
  }
4579
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4572
  arg2 = buf2;
4580
4573
  
4581
4574
  
4582
4575
  InErrorFlag = 0;      
4630
4623
  result = (char *)IT8_getData__SWIG_0(arg1,arg2,arg3);
4631
4624
  if (InErrorFlag) SWIG_fail;             
4632
4625
  
4633
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
4626
  resultobj = SWIG_FromCharPtr(result);
4634
4627
  return resultobj;
4635
4628
fail:
4636
4629
  return NULL;
4665
4658
  if (!SWIG_IsOK(res2)) {
4666
4659
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getData" "', argument " "2"" of type '" "char const *""'");
4667
4660
  }
4668
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4661
  arg2 = buf2;
4669
4662
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4670
4663
  if (!SWIG_IsOK(res3)) {
4671
4664
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getData" "', argument " "3"" of type '" "char const *""'");
4672
4665
  }
4673
 
  arg3 = reinterpret_cast< char * >(buf3);
 
4666
  arg3 = buf3;
4674
4667
  
4675
4668
  
4676
4669
  InErrorFlag = 0;      
4677
4670
  result = (char *)IT8_getData__SWIG_1(arg1,(char const *)arg2,(char const *)arg3);
4678
4671
  if (InErrorFlag) SWIG_fail;             
4679
4672
  
4680
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
4673
  resultobj = SWIG_FromCharPtr(result);
4681
4674
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4682
4675
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4683
4676
  return resultobj;
4738
4731
  }
4739
4732
  
4740
4733
fail:
4741
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getData'.\n  Possible C/C++ prototypes are:\n    getData(int,int)\n    getData(char const *,char const *)\n");
 
4734
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_getData'");
4742
4735
  return NULL;
4743
4736
}
4744
4737
 
4816
4809
  if (!SWIG_IsOK(res2)) {
4817
4810
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataAsDbl" "', argument " "2"" of type '" "char const *""'");
4818
4811
  }
4819
 
  arg2 = reinterpret_cast< char * >(buf2);
 
4812
  arg2 = buf2;
4820
4813
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4821
4814
  if (!SWIG_IsOK(res3)) {
4822
4815
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getDataAsDbl" "', argument " "3"" of type '" "char const *""'");
4823
4816
  }
4824
 
  arg3 = reinterpret_cast< char * >(buf3);
 
4817
  arg3 = buf3;
4825
4818
  
4826
4819
  
4827
4820
  InErrorFlag = 0;      
4889
4882
  }
4890
4883
  
4891
4884
fail:
4892
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getDataAsDbl'.\n  Possible C/C++ prototypes are:\n    getDataAsDbl(int,int)\n    getDataAsDbl(char const *,char const *)\n");
 
4885
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_getDataAsDbl'");
4893
4886
  return NULL;
4894
4887
}
4895
4888
 
4935
4928
  if (!SWIG_IsOK(res4)) {
4936
4929
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'");
4937
4930
  }
4938
 
  arg4 = reinterpret_cast< char * >(buf4);
 
4931
  arg4 = buf4;
4939
4932
  
4940
4933
  
4941
4934
  InErrorFlag = 0;      
5038
5031
  if (!SWIG_IsOK(res2)) {
5039
5032
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'");
5040
5033
  }
5041
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5034
  arg2 = buf2;
5042
5035
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5043
5036
  if (!SWIG_IsOK(res3)) {
5044
5037
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'");
5045
5038
  }
5046
 
  arg3 = reinterpret_cast< char * >(buf3);
 
5039
  arg3 = buf3;
5047
5040
  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
5048
5041
  if (!SWIG_IsOK(res4)) {
5049
5042
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'");
5050
5043
  }
5051
 
  arg4 = reinterpret_cast< char * >(buf4);
 
5044
  arg4 = buf4;
5052
5045
  
5053
5046
  
5054
5047
  InErrorFlag = 0;      
5100
5093
  if (!SWIG_IsOK(res2)) {
5101
5094
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'");
5102
5095
  }
5103
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5096
  arg2 = buf2;
5104
5097
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5105
5098
  if (!SWIG_IsOK(res3)) {
5106
5099
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'");
5107
5100
  }
5108
 
  arg3 = reinterpret_cast< char * >(buf3);
 
5101
  arg3 = buf3;
5109
5102
  ecode4 = SWIG_AsVal_double(obj3, &val4);
5110
5103
  if (!SWIG_IsOK(ecode4)) {
5111
5104
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IT8_setData" "', argument " "4"" of type '" "double""'");
5236
5229
  }
5237
5230
  
5238
5231
fail:
5239
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setData'.\n  Possible C/C++ prototypes are:\n    setData(int,int,char const *)\n    setData(int,int,double)\n    setData(char const *,char const *,char const *)\n    setData(char const *,char const *,double)\n");
 
5232
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setData'");
5240
5233
  return NULL;
5241
5234
}
5242
5235
 
5273
5266
  if (!SWIG_IsOK(res3)) {
5274
5267
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setDataFormat" "', argument " "3"" of type '" "char const *""'");
5275
5268
  }
5276
 
  arg3 = reinterpret_cast< char * >(buf3);
 
5269
  arg3 = buf3;
5277
5270
  
5278
5271
  
5279
5272
  InErrorFlag = 0;      
5318
5311
  result = (char *)IT8_getPatchName(arg1,arg2);
5319
5312
  if (InErrorFlag) SWIG_fail;             
5320
5313
  
5321
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
5314
  resultobj = SWIG_FromCharPtr(result);
5322
5315
  return resultobj;
5323
5316
fail:
5324
5317
  return NULL;
5348
5341
  if (!SWIG_IsOK(res2)) {
5349
5342
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataFormat" "', argument " "2"" of type '" "char const *""'");
5350
5343
  }
5351
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5344
  arg2 = buf2;
5352
5345
  
5353
5346
  
5354
5347
  InErrorFlag = 0;      
5451
5444
  if (!SWIG_IsOK(res2)) {
5452
5445
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
5453
5446
  }
5454
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5447
  arg2 = buf2;
5455
5448
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5456
5449
  if (!SWIG_IsOK(res3)) {
5457
5450
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'");
5458
5451
  }
5459
 
  arg3 = reinterpret_cast< char * >(buf3);
 
5452
  arg3 = buf3;
5460
5453
  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
5461
5454
  if (!SWIG_IsOK(res4)) {
5462
5455
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setTableByLabel" "', argument " "4"" of type '" "char const *""'");
5463
5456
  }
5464
 
  arg4 = reinterpret_cast< char * >(buf4);
 
5457
  arg4 = buf4;
5465
5458
  
5466
5459
  
5467
5460
  InErrorFlag = 0;      
5509
5502
  if (!SWIG_IsOK(res2)) {
5510
5503
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
5511
5504
  }
5512
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5505
  arg2 = buf2;
5513
5506
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5514
5507
  if (!SWIG_IsOK(res3)) {
5515
5508
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'");
5516
5509
  }
5517
 
  arg3 = reinterpret_cast< char * >(buf3);
 
5510
  arg3 = buf3;
5518
5511
  
5519
5512
  
5520
5513
  InErrorFlag = 0;      
5555
5548
  if (!SWIG_IsOK(res2)) {
5556
5549
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'");
5557
5550
  }
5558
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5551
  arg2 = buf2;
5559
5552
  
5560
5553
  
5561
5554
  InErrorFlag = 0;      
5634
5627
  }
5635
5628
  
5636
5629
fail:
5637
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setTableByLabel'.\n  Possible C/C++ prototypes are:\n    setTableByLabel(char const *,char const *,char const *)\n    setTableByLabel(char const *,char const *)\n    setTableByLabel(char const *)\n");
 
5630
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'IT8_setTableByLabel'");
5638
5631
  return NULL;
5639
5632
}
5640
5633
 
5698
5691
  if (!SWIG_IsOK(res2)) {
5699
5692
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getCol" "', argument " "2"" of type '" "char const *""'");
5700
5693
  }
5701
 
  arg2 = reinterpret_cast< char * >(buf2);
 
5694
  arg2 = buf2;
5702
5695
  
5703
5696
  
5704
5697
  InErrorFlag = 0;      
7761
7754
  }
7762
7755
  
7763
7756
fail:
7764
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_GAMMATABLE'.\n  Possible C/C++ prototypes are:\n    GAMMATABLE(double,int)\n    GAMMATABLE(double)\n");
 
7757
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GAMMATABLE'");
7765
7758
  return NULL;
7766
7759
}
7767
7760
 
7813
7806
  result = (char *)GAMMATABLE___repr__(arg1);
7814
7807
  if (InErrorFlag) SWIG_fail;             
7815
7808
  
7816
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
7809
  resultobj = SWIG_FromCharPtr(result);
7817
7810
  return resultobj;
7818
7811
fail:
7819
7812
  return NULL;
8155
8148
  }
8156
8149
  
8157
8150
fail:
8158
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_VEC3'.\n  Possible C/C++ prototypes are:\n    VEC3(double,double,double)\n    VEC3(double,double)\n    VEC3(double)\n    VEC3()\n");
 
8151
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_VEC3'");
8159
8152
  return NULL;
8160
8153
}
8161
8154
 
8287
8280
  result = (char *)VEC3___repr__(arg1);
8288
8281
  if (InErrorFlag) SWIG_fail;             
8289
8282
  
8290
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
8283
  resultobj = SWIG_FromCharPtr(result);
8291
8284
  return resultobj;
8292
8285
fail:
8293
8286
  return NULL;
8760
8753
  }
8761
8754
  
8762
8755
fail:
8763
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIEXYZ'.\n  Possible C/C++ prototypes are:\n    cmsCIEXYZ(double,double,double)\n    cmsCIEXYZ(double,double)\n    cmsCIEXYZ(double)\n    cmsCIEXYZ()\n");
 
8756
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIEXYZ'");
8764
8757
  return NULL;
8765
8758
}
8766
8759
 
8812
8805
  result = (char *)cmsCIEXYZ___repr__(arg1);
8813
8806
  if (InErrorFlag) SWIG_fail;             
8814
8807
  
8815
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
8808
  resultobj = SWIG_FromCharPtr(result);
8816
8809
  return resultobj;
8817
8810
fail:
8818
8811
  return NULL;
9174
9167
  }
9175
9168
  
9176
9169
fail:
9177
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIExyY'.\n  Possible C/C++ prototypes are:\n    cmsCIExyY(double,double,double)\n    cmsCIExyY(double,double)\n    cmsCIExyY(double)\n    cmsCIExyY()\n");
 
9170
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIExyY'");
9178
9171
  return NULL;
9179
9172
}
9180
9173
 
9226
9219
  result = (char *)cmsCIExyY___repr__(arg1);
9227
9220
  if (InErrorFlag) SWIG_fail;             
9228
9221
  
9229
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
9222
  resultobj = SWIG_FromCharPtr(result);
9230
9223
  return resultobj;
9231
9224
fail:
9232
9225
  return NULL;
9588
9581
  }
9589
9582
  
9590
9583
fail:
9591
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELab'.\n  Possible C/C++ prototypes are:\n    cmsCIELab(double,double,double)\n    cmsCIELab(double,double)\n    cmsCIELab(double)\n    cmsCIELab()\n");
 
9584
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIELab'");
9592
9585
  return NULL;
9593
9586
}
9594
9587
 
9640
9633
  result = (char *)cmsCIELab___repr__(arg1);
9641
9634
  if (InErrorFlag) SWIG_fail;             
9642
9635
  
9643
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
9636
  resultobj = SWIG_FromCharPtr(result);
9644
9637
  return resultobj;
9645
9638
fail:
9646
9639
  return NULL;
10038
10031
  }
10039
10032
  
10040
10033
fail:
10041
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELCh'.\n  Possible C/C++ prototypes are:\n    cmsCIELCh(double,double,double)\n    cmsCIELCh(double,double)\n    cmsCIELCh(double)\n    cmsCIELCh()\n");
 
10034
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsCIELCh'");
10042
10035
  return NULL;
10043
10036
}
10044
10037
 
10090
10083
  result = (char *)cmsCIELCh___repr__(arg1);
10091
10084
  if (InErrorFlag) SWIG_fail;             
10092
10085
  
10093
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
10086
  resultobj = SWIG_FromCharPtr(result);
10094
10087
  return resultobj;
10095
10088
fail:
10096
10089
  return NULL;
10452
10445
  }
10453
10446
  
10454
10447
fail:
10455
 
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsJCh'.\n  Possible C/C++ prototypes are:\n    cmsJCh(double,double,double)\n    cmsJCh(double,double)\n    cmsJCh(double)\n    cmsJCh()\n");
 
10448
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_cmsJCh'");
10456
10449
  return NULL;
10457
10450
}
10458
10451
 
10504
10497
  result = (char *)cmsJCh___repr__(arg1);
10505
10498
  if (InErrorFlag) SWIG_fail;             
10506
10499
  
10507
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
10500
  resultobj = SWIG_FromCharPtr(result);
10508
10501
  return resultobj;
10509
10502
fail:
10510
10503
  return NULL;
10769
10762
  result = (char *)cmsCIEXYZTRIPLE___repr__(arg1);
10770
10763
  if (InErrorFlag) SWIG_fail;             
10771
10764
  
10772
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
10765
  resultobj = SWIG_FromCharPtr(result);
10773
10766
  return resultobj;
10774
10767
fail:
10775
10768
  return NULL;
11034
11027
  result = (char *)cmsCIExyYTRIPLE___repr__(arg1);
11035
11028
  if (InErrorFlag) SWIG_fail;             
11036
11029
  
11037
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
11030
  resultobj = SWIG_FromCharPtr(result);
11038
11031
  return resultobj;
11039
11032
fail:
11040
11033
  return NULL;
11103
11096
  if (!SWIG_IsOK(res1)) {
11104
11097
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsOpenProfileFromFile" "', argument " "1"" of type '" "char const *""'");
11105
11098
  }
11106
 
  arg1 = reinterpret_cast< char * >(buf1);
 
11099
  arg1 = buf1;
11107
11100
  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
11108
11101
  if (!SWIG_IsOK(res2)) {
11109
11102
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsOpenProfileFromFile" "', argument " "2"" of type '" "char const *""'");
11110
11103
  }
11111
 
  arg2 = reinterpret_cast< char * >(buf2);
 
11104
  arg2 = buf2;
11112
11105
  
11113
11106
  
11114
11107
  InErrorFlag = 0;      
12564
12557
  result = (char *)cmsViewingConditions___repr__(arg1);
12565
12558
  if (InErrorFlag) SWIG_fail;             
12566
12559
  
12567
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
12560
  resultobj = SWIG_FromCharPtr(result);
12568
12561
  return resultobj;
12569
12562
fail:
12570
12563
  return NULL;
13597
13590
  result = (char *)cmsTakeProductName(arg1);
13598
13591
  if (InErrorFlag) SWIG_fail;             
13599
13592
  
13600
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
13593
  resultobj = SWIG_FromCharPtr(result);
13601
13594
  return resultobj;
13602
13595
fail:
13603
13596
  return NULL;
13622
13615
  result = (char *)cmsTakeProductDesc(arg1);
13623
13616
  if (InErrorFlag) SWIG_fail;             
13624
13617
  
13625
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
13618
  resultobj = SWIG_FromCharPtr(result);
13626
13619
  return resultobj;
13627
13620
fail:
13628
13621
  return NULL;
13647
13640
  result = (char *)cmsTakeProductInfo(arg1);
13648
13641
  if (InErrorFlag) SWIG_fail;             
13649
13642
  
13650
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
13643
  resultobj = SWIG_FromCharPtr(result);
13651
13644
  return resultobj;
13652
13645
fail:
13653
13646
  return NULL;
13672
13665
  result = (char *)cmsTakeManufacturer(arg1);
13673
13666
  if (InErrorFlag) SWIG_fail;             
13674
13667
  
13675
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
13668
  resultobj = SWIG_FromCharPtr(result);
13676
13669
  return resultobj;
13677
13670
fail:
13678
13671
  return NULL;
13697
13690
  result = (char *)cmsTakeModel(arg1);
13698
13691
  if (InErrorFlag) SWIG_fail;             
13699
13692
  
13700
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
13693
  resultobj = SWIG_FromCharPtr(result);
13701
13694
  return resultobj;
13702
13695
fail:
13703
13696
  return NULL;
13722
13715
  result = (char *)cmsTakeCopyright(arg1);
13723
13716
  if (InErrorFlag) SWIG_fail;             
13724
13717
  
13725
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
13718
  resultobj = SWIG_FromCharPtr(result);
13726
13719
  return resultobj;
13727
13720
fail:
13728
13721
  return NULL;
13974
13967
  if (!SWIG_IsOK(res3)) {
13975
13968
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCTextEx" "', argument " "3"" of type '" "char *""'");
13976
13969
  }
13977
 
  arg3 = reinterpret_cast< char * >(buf3);
 
13970
  arg3 = buf3;
13978
13971
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
13979
13972
  if (!SWIG_IsOK(ecode4)) {
13980
13973
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsReadICCTextEx" "', argument " "4"" of type '" "size_t""'");
14033
14026
  if (!SWIG_IsOK(res3)) {
14034
14027
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCText" "', argument " "3"" of type '" "char *""'");
14035
14028
  }
14036
 
  arg3 = reinterpret_cast< char * >(buf3);
 
14029
  arg3 = buf3;
14037
14030
  
14038
14031
  
14039
14032
  InErrorFlag = 0;      
14312
14305
  if (!SWIG_IsOK(res2)) {
14313
14306
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Manufacturer_set" "', argument " "2"" of type '" "char [512]""'");
14314
14307
  }
14315
 
  arg2 = reinterpret_cast< char * >(temp2);
 
14308
  arg2 = temp2;
14316
14309
  if (arg2) memcpy(arg1->Manufacturer,arg2,512*sizeof(char));
14317
14310
  else memset(arg1->Manufacturer,0,512*sizeof(char));
14318
14311
  resultobj = SWIG_Py_Void();
14371
14364
  if (!SWIG_IsOK(res2)) {
14372
14365
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Model_set" "', argument " "2"" of type '" "char [512]""'");
14373
14366
  }
14374
 
  arg2 = reinterpret_cast< char * >(temp2);
 
14367
  arg2 = temp2;
14375
14368
  if (arg2) memcpy(arg1->Model,arg2,512*sizeof(char));
14376
14369
  else memset(arg1->Model,0,512*sizeof(char));
14377
14370
  resultobj = SWIG_Py_Void();
14888
14881
  if (!SWIG_IsOK(res2)) {
14889
14882
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsGAMUTEX_Description_set" "', argument " "2"" of type '" "char [512]""'");
14890
14883
  }
14891
 
  arg2 = reinterpret_cast< char * >(temp2);
 
14884
  arg2 = temp2;
14892
14885
  if (arg2) memcpy(arg1->Description,arg2,512*sizeof(char));
14893
14886
  else memset(arg1->Description,0,512*sizeof(char));
14894
14887
  resultobj = SWIG_Py_Void();
16339
16332
  if (!SWIG_IsOK(res2)) {
16340
16333
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLOR_Name_set" "', argument " "2"" of type '" "char [(256)]""'");
16341
16334
  }
16342
 
  arg2 = reinterpret_cast< char * >(temp2);
 
16335
  arg2 = temp2;
16343
16336
  if (arg2) memcpy(arg1->Name,arg2,(256)*sizeof(char));
16344
16337
  else memset(arg1->Name,0,(256)*sizeof(char));
16345
16338
  resultobj = SWIG_Py_Void();
16727
16720
  if (!SWIG_IsOK(res2)) {
16728
16721
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Prefix_set" "', argument " "2"" of type '" "char [33]""'");
16729
16722
  }
16730
 
  arg2 = reinterpret_cast< char * >(temp2);
 
16723
  arg2 = temp2;
16731
16724
  if (arg2) memcpy(arg1->Prefix,arg2,33*sizeof(char));
16732
16725
  else memset(arg1->Prefix,0,33*sizeof(char));
16733
16726
  resultobj = SWIG_Py_Void();
16786
16779
  if (!SWIG_IsOK(res2)) {
16787
16780
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Suffix_set" "', argument " "2"" of type '" "char [33]""'");
16788
16781
  }
16789
 
  arg2 = reinterpret_cast< char * >(temp2);
 
16782
  arg2 = temp2;
16790
16783
  if (arg2) memcpy(arg1->Suffix,arg2,33*sizeof(char));
16791
16784
  else memset(arg1->Suffix,0,33*sizeof(char));
16792
16785
  resultobj = SWIG_Py_Void();
17000
16993
  if (!SWIG_IsOK(res3)) {
17001
16994
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsNamedColorInfo" "', argument " "3"" of type '" "char *""'");
17002
16995
  }
17003
 
  arg3 = reinterpret_cast< char * >(buf3);
 
16996
  arg3 = buf3;
17004
16997
  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
17005
16998
  if (!SWIG_IsOK(res4)) {
17006
16999
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsNamedColorInfo" "', argument " "4"" of type '" "char *""'");
17007
17000
  }
17008
 
  arg4 = reinterpret_cast< char * >(buf4);
 
17001
  arg4 = buf4;
17009
17002
  res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
17010
17003
  if (!SWIG_IsOK(res5)) {
17011
17004
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsNamedColorInfo" "', argument " "5"" of type '" "char *""'");
17012
17005
  }
17013
 
  arg5 = reinterpret_cast< char * >(buf5);
 
17006
  arg5 = buf5;
17014
17007
  
17015
17008
  
17016
17009
  InErrorFlag = 0;      
17051
17044
  if (!SWIG_IsOK(res2)) {
17052
17045
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNamedColorIndex" "', argument " "2"" of type '" "char const *""'");
17053
17046
  }
17054
 
  arg2 = reinterpret_cast< char * >(buf2);
 
17047
  arg2 = buf2;
17055
17048
  
17056
17049
  
17057
17050
  InErrorFlag = 0;      
17246
17239
  if (!SWIG_IsOK(res2)) {
17247
17240
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSaveProfile" "', argument " "2"" of type '" "char const *""'");
17248
17241
  }
17249
 
  arg2 = reinterpret_cast< char * >(buf2);
 
17242
  arg2 = buf2;
17250
17243
  
17251
17244
  
17252
17245
  InErrorFlag = 0;      
18198
18191
  if (!SWIG_IsOK(res1)) {
18199
18192
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8LoadFromFile" "', argument " "1"" of type '" "char const *""'");
18200
18193
  }
18201
 
  arg1 = reinterpret_cast< char * >(buf1);
 
18194
  arg1 = buf1;
18202
18195
  
18203
18196
  
18204
18197
  InErrorFlag = 0;      
18269
18262
  if (!SWIG_IsOK(res2)) {
18270
18263
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SaveToFile" "', argument " "2"" of type '" "char const *""'");
18271
18264
  }
18272
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18265
  arg2 = buf2;
18273
18266
  
18274
18267
  
18275
18268
  InErrorFlag = 0;      
18344
18337
  result = (char *)cmsIT8GetSheetType(arg1);
18345
18338
  if (InErrorFlag) SWIG_fail;             
18346
18339
  
18347
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
18340
  resultobj = SWIG_FromCharPtr(result);
18348
18341
  return resultobj;
18349
18342
fail:
18350
18343
  return NULL;
18372
18365
  if (!SWIG_IsOK(res2)) {
18373
18366
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetSheetType" "', argument " "2"" of type '" "char const *""'");
18374
18367
  }
18375
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18368
  arg2 = buf2;
18376
18369
  
18377
18370
  
18378
18371
  InErrorFlag = 0;      
18409
18402
  if (!SWIG_IsOK(res2)) {
18410
18403
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetComment" "', argument " "2"" of type '" "char const *""'");
18411
18404
  }
18412
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18405
  arg2 = buf2;
18413
18406
  
18414
18407
  
18415
18408
  InErrorFlag = 0;      
18451
18444
  if (!SWIG_IsOK(res2)) {
18452
18445
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyStr" "', argument " "2"" of type '" "char const *""'");
18453
18446
  }
18454
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18447
  arg2 = buf2;
18455
18448
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18456
18449
  if (!SWIG_IsOK(res3)) {
18457
18450
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyStr" "', argument " "3"" of type '" "char const *""'");
18458
18451
  }
18459
 
  arg3 = reinterpret_cast< char * >(buf3);
 
18452
  arg3 = buf3;
18460
18453
  
18461
18454
  
18462
18455
  InErrorFlag = 0;      
18499
18492
  if (!SWIG_IsOK(res2)) {
18500
18493
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyDbl" "', argument " "2"" of type '" "char const *""'");
18501
18494
  }
18502
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18495
  arg2 = buf2;
18503
18496
  ecode3 = SWIG_AsVal_double(obj2, &val3);
18504
18497
  if (!SWIG_IsOK(ecode3)) {
18505
18498
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyDbl" "', argument " "3"" of type '" "double""'");
18545
18538
  if (!SWIG_IsOK(res2)) {
18546
18539
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyHex" "', argument " "2"" of type '" "char const *""'");
18547
18540
  }
18548
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18541
  arg2 = buf2;
18549
18542
  ecode3 = SWIG_AsVal_int(obj2, &val3);
18550
18543
  if (!SWIG_IsOK(ecode3)) {
18551
18544
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyHex" "', argument " "3"" of type '" "int""'");
18592
18585
  if (!SWIG_IsOK(res2)) {
18593
18586
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "2"" of type '" "char const *""'");
18594
18587
  }
18595
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18588
  arg2 = buf2;
18596
18589
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18597
18590
  if (!SWIG_IsOK(res3)) {
18598
18591
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "3"" of type '" "char const *""'");
18599
18592
  }
18600
 
  arg3 = reinterpret_cast< char * >(buf3);
 
18593
  arg3 = buf3;
18601
18594
  
18602
18595
  
18603
18596
  InErrorFlag = 0;      
18636
18629
  if (!SWIG_IsOK(res2)) {
18637
18630
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetProperty" "', argument " "2"" of type '" "char const *""'");
18638
18631
  }
18639
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18632
  arg2 = buf2;
18640
18633
  
18641
18634
  
18642
18635
  InErrorFlag = 0;      
18643
18636
  result = (char *)cmsIT8GetProperty(arg1,(char const *)arg2);
18644
18637
  if (InErrorFlag) SWIG_fail;             
18645
18638
  
18646
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
18639
  resultobj = SWIG_FromCharPtr(result);
18647
18640
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
18648
18641
  return resultobj;
18649
18642
fail:
18673
18666
  if (!SWIG_IsOK(res2)) {
18674
18667
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetPropertyDbl" "', argument " "2"" of type '" "char const *""'");
18675
18668
  }
18676
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18669
  arg2 = buf2;
18677
18670
  
18678
18671
  
18679
18672
  InErrorFlag = 0;      
18759
18752
  result = (char *)cmsIT8GetDataRowCol(arg1,arg2,arg3);
18760
18753
  if (InErrorFlag) SWIG_fail;             
18761
18754
  
18762
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
18755
  resultobj = SWIG_FromCharPtr(result);
18763
18756
  return resultobj;
18764
18757
fail:
18765
18758
  return NULL;
18848
18841
  if (!SWIG_IsOK(res4)) {
18849
18842
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetDataRowCol" "', argument " "4"" of type '" "char const *""'");
18850
18843
  }
18851
 
  arg4 = reinterpret_cast< char * >(buf4);
 
18844
  arg4 = buf4;
18852
18845
  
18853
18846
  
18854
18847
  InErrorFlag = 0;      
18942
18935
  if (!SWIG_IsOK(res2)) {
18943
18936
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetData" "', argument " "2"" of type '" "char const *""'");
18944
18937
  }
18945
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18938
  arg2 = buf2;
18946
18939
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18947
18940
  if (!SWIG_IsOK(res3)) {
18948
18941
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetData" "', argument " "3"" of type '" "char const *""'");
18949
18942
  }
18950
 
  arg3 = reinterpret_cast< char * >(buf3);
 
18943
  arg3 = buf3;
18951
18944
  
18952
18945
  
18953
18946
  InErrorFlag = 0;      
18954
18947
  result = (char *)cmsIT8GetData(arg1,(char const *)arg2,(char const *)arg3);
18955
18948
  if (InErrorFlag) SWIG_fail;             
18956
18949
  
18957
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
18950
  resultobj = SWIG_FromCharPtr(result);
18958
18951
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
18959
18952
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
18960
18953
  return resultobj;
18991
18984
  if (!SWIG_IsOK(res2)) {
18992
18985
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataDbl" "', argument " "2"" of type '" "char const *""'");
18993
18986
  }
18994
 
  arg2 = reinterpret_cast< char * >(buf2);
 
18987
  arg2 = buf2;
18995
18988
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
18996
18989
  if (!SWIG_IsOK(res3)) {
18997
18990
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetDataDbl" "', argument " "3"" of type '" "char const *""'");
18998
18991
  }
18999
 
  arg3 = reinterpret_cast< char * >(buf3);
 
18992
  arg3 = buf3;
19000
18993
  
19001
18994
  
19002
18995
  InErrorFlag = 0;      
19045
19038
  if (!SWIG_IsOK(res2)) {
19046
19039
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetData" "', argument " "2"" of type '" "char const *""'");
19047
19040
  }
19048
 
  arg2 = reinterpret_cast< char * >(buf2);
 
19041
  arg2 = buf2;
19049
19042
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
19050
19043
  if (!SWIG_IsOK(res3)) {
19051
19044
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetData" "', argument " "3"" of type '" "char const *""'");
19052
19045
  }
19053
 
  arg3 = reinterpret_cast< char * >(buf3);
 
19046
  arg3 = buf3;
19054
19047
  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
19055
19048
  if (!SWIG_IsOK(res4)) {
19056
19049
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetData" "', argument " "4"" of type '" "char const *""'");
19057
19050
  }
19058
 
  arg4 = reinterpret_cast< char * >(buf4);
 
19051
  arg4 = buf4;
19059
19052
  
19060
19053
  
19061
19054
  InErrorFlag = 0;      
19105
19098
  if (!SWIG_IsOK(res2)) {
19106
19099
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetDataDbl" "', argument " "2"" of type '" "char const *""'");
19107
19100
  }
19108
 
  arg2 = reinterpret_cast< char * >(buf2);
 
19101
  arg2 = buf2;
19109
19102
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
19110
19103
  if (!SWIG_IsOK(res3)) {
19111
19104
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataDbl" "', argument " "3"" of type '" "char const *""'");
19112
19105
  }
19113
 
  arg3 = reinterpret_cast< char * >(buf3);
 
19106
  arg3 = buf3;
19114
19107
  ecode4 = SWIG_AsVal_double(obj3, &val4);
19115
19108
  if (!SWIG_IsOK(ecode4)) {
19116
19109
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsIT8SetDataDbl" "', argument " "4"" of type '" "double""'");
19154
19147
  if (!SWIG_IsOK(res2)) {
19155
19148
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataFormat" "', argument " "2"" of type '" "char const *""'");
19156
19149
  }
19157
 
  arg2 = reinterpret_cast< char * >(buf2);
 
19150
  arg2 = buf2;
19158
19151
  
19159
19152
  
19160
19153
  InErrorFlag = 0;      
19200
19193
  if (!SWIG_IsOK(res3)) {
19201
19194
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataFormat" "', argument " "3"" of type '" "char const *""'");
19202
19195
  }
19203
 
  arg3 = reinterpret_cast< char * >(buf3);
 
19196
  arg3 = buf3;
19204
19197
  
19205
19198
  
19206
19199
  InErrorFlag = 0;      
19280
19273
  if (!SWIG_IsOK(res3)) {
19281
19274
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetPatchName" "', argument " "3"" of type '" "char *""'");
19282
19275
  }
19283
 
  arg3 = reinterpret_cast< char * >(buf3);
 
19276
  arg3 = buf3;
19284
19277
  
19285
19278
  
19286
19279
  InErrorFlag = 0;      
19287
19280
  result = (char *)cmsIT8GetPatchName(arg1,arg2,arg3);
19288
19281
  if (InErrorFlag) SWIG_fail;             
19289
19282
  
19290
 
  resultobj = SWIG_FromCharPtr((const char *)result);
 
19283
  resultobj = SWIG_FromCharPtr(result);
19291
19284
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
19292
19285
  return resultobj;
19293
19286
fail:
19327
19320
  if (!SWIG_IsOK(res2)) {
19328
19321
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetTableByLabel" "', argument " "2"" of type '" "char const *""'");
19329
19322
  }
19330
 
  arg2 = reinterpret_cast< char * >(buf2);
 
19323
  arg2 = buf2;
19331
19324
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
19332
19325
  if (!SWIG_IsOK(res3)) {
19333
19326
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetTableByLabel" "', argument " "3"" of type '" "char const *""'");
19334
19327
  }
19335
 
  arg3 = reinterpret_cast< char * >(buf3);
 
19328
  arg3 = buf3;
19336
19329
  res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
19337
19330
  if (!SWIG_IsOK(res4)) {
19338
19331
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetTableByLabel" "', argument " "4"" of type '" "char const *""'");
19339
19332
  }
19340
 
  arg4 = reinterpret_cast< char * >(buf4);
 
19333
  arg4 = buf4;
19341
19334
  
19342
19335
  
19343
19336
  InErrorFlag = 0;      
19377
19370
  if (!SWIG_IsOK(res2)) {
19378
19371
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8DefineDblFormat" "', argument " "2"" of type '" "char const *""'");
19379
19372
  }
19380
 
  arg2 = reinterpret_cast< char * >(buf2);
 
19373
  arg2 = buf2;
19381
19374
  
19382
19375
  
19383
19376
  InErrorFlag = 0;      
19641
19634
  if (!SWIG_IsOK(res3)) {
19642
19635
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddTextTag" "', argument " "3"" of type '" "char const *""'");
19643
19636
  }
19644
 
  arg3 = reinterpret_cast< char * >(buf3);
 
19637
  arg3 = buf3;
19645
19638
  
19646
19639
  
19647
19640
  InErrorFlag = 0;      
20168
20161
  if (!SWIG_IsOK(res2)) {
20169
20162
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSignalError" "', argument " "2"" of type '" "char const *""'");
20170
20163
  }
20171
 
  arg2 = reinterpret_cast< char * >(buf2);
 
20164
  arg2 = buf2;
20172
20165
  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
20173
20166
  if (!SWIG_IsOK(res3)) {
20174
20167
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsSignalError" "', argument " "3"" of type '" "char *""'");
20175
20168
  }
20176
 
  arg3 = reinterpret_cast< char * >(buf3);
 
20169
  arg3 = buf3;
20177
20170
  
20178
20171
  
20179
20172
  InErrorFlag = 0;      
26818
26811
  if (!SWIG_IsOK(res1)) {
26819
26812
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIdentifyWhitePoint" "', argument " "1"" of type '" "char *""'");
26820
26813
  }
26821
 
  arg1 = reinterpret_cast< char * >(buf1);
 
26814
  arg1 = buf1;
26822
26815
  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 |  0 );
26823
26816
  if (!SWIG_IsOK(res2)) {
26824
26817
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsIdentifyWhitePoint" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); 
27014
27007
  if (!SWIG_IsOK(res2)) {
27015
27008
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAppendNamedColor" "', argument " "2"" of type '" "char const *""'");
27016
27009
  }
27017
 
  arg2 = reinterpret_cast< char * >(buf2);
 
27010
  arg2 = buf2;
27018
27011
  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 |  0 );
27019
27012
  if (!SWIG_IsOK(res3)) {
27020
27013
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAppendNamedColor" "', argument " "3"" of type '" "WORD [3]""'"); 
28107
28100
  if (!SWIG_IsOK(res2)) {
28108
28101
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_PhysicalFile_set" "', argument " "2"" of type '" "char [(256)]""'");
28109
28102
  }
28110
 
  arg2 = reinterpret_cast< char * >(temp2);
 
28103
  arg2 = temp2;
28111
28104
  if (arg2) memcpy(arg1->PhysicalFile,arg2,(256)*sizeof(char));
28112
28105
  else memset(arg1->PhysicalFile,0,(256)*sizeof(char));
28113
28106
  resultobj = SWIG_Py_Void();
28822
28815
  if (!SWIG_IsOK(res1)) {
28823
28816
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsCreateProfileFromFilePlaceholder" "', argument " "1"" of type '" "char const *""'");
28824
28817
  }
28825
 
  arg1 = reinterpret_cast< char * >(buf1);
 
28818
  arg1 = buf1;
28826
28819
  
28827
28820
  
28828
28821
  InErrorFlag = 0;      
28894
28887
  if (!SWIG_IsOK(res2)) {
28895
28888
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsSetSaveToDisk" "', argument " "2"" of type '" "char const *""'");
28896
28889
  }
28897
 
  arg2 = reinterpret_cast< char * >(buf2);
 
28890
  arg2 = buf2;
28898
28891
  
28899
28892
  
28900
28893
  InErrorFlag = 0;      
32211
32204
  if (!SWIG_IsOK(res1)) {
32212
32205
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrPointer" "', argument " "1"" of type '" "char *""'");
32213
32206
  }
32214
 
  arg1 = reinterpret_cast< char * >(buf1);
 
32207
  arg1 = buf1;
32215
32208
  
32216
32209
  
32217
32210
  InErrorFlag = 0;      
33492
33485
 * structures together.
33493
33486
 *
33494
33487
 * The generated swig_type_info structures are assigned staticly to an initial 
33495
 
 * array. We just loop through that array, and handle each type individually.
 
33488
 * array. We just loop though that array, and handle each type individually.
33496
33489
 * First we lookup if this type has been already loaded, and if so, use the
33497
33490
 * loaded structure instead of the generated one. Then we have to fill in the
33498
33491
 * cast linked list. The cast data is initially stored in something like a
33530
33523
#define SWIGRUNTIME_DEBUG
33531
33524
#endif
33532
33525
 
33533
 
 
33534
33526
SWIGRUNTIME void
33535
33527
SWIG_InitializeModule(void *clientdata) {
33536
33528
  size_t i;
33537
 
  swig_module_info *module_head, *iter;
33538
 
  int found;
 
33529
  swig_module_info *module_head;
 
33530
  static int init_run = 0;
33539
33531
  
33540
33532
  clientdata = clientdata;
33541
33533
  
33542
 
  /* check to see if the circular list has been setup, if not, set it up */
33543
 
  if (swig_module.next==0) {
33544
 
    /* Initialize the swig_module */
33545
 
    swig_module.type_initial = swig_type_initial;
33546
 
    swig_module.cast_initial = swig_cast_initial;
33547
 
    swig_module.next = &swig_module;
33548
 
  }
 
33534
  if (init_run) return;
 
33535
  init_run = 1;
 
33536
  
 
33537
  /* Initialize the swig_module */
 
33538
  swig_module.type_initial = swig_type_initial;
 
33539
  swig_module.cast_initial = swig_cast_initial;
33549
33540
  
33550
33541
  /* Try and load any already created modules */
33551
33542
  module_head = SWIG_GetModule(clientdata);
33552
 
  if (!module_head) {
33553
 
    /* This is the first module loaded for this interpreter */
33554
 
    /* so set the swig module into the interpreter */
33555
 
    SWIG_SetModule(clientdata, &swig_module);
33556
 
    module_head = &swig_module;
33557
 
  } else {
33558
 
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
33559
 
    found=0;
33560
 
    iter=module_head;
33561
 
    do {
33562
 
      if (iter==&swig_module) {
33563
 
        found=1;
33564
 
        break;
33565
 
      }
33566
 
      iter=iter->next;
33567
 
    } while (iter!= module_head);
33568
 
    
33569
 
    /* if the is found in the list, then all is done and we may leave */
33570
 
    if (found) return;
33571
 
    /* otherwise we must add out module into the list */
 
33543
  if (module_head) {
33572
33544
    swig_module.next = module_head->next;
33573
33545
    module_head->next = &swig_module;
 
33546
  } else {
 
33547
    /* This is the first module loaded */
 
33548
    swig_module.next = &swig_module;
 
33549
    SWIG_SetModule(clientdata, &swig_module);
33574
33550
  }
33575
33551
  
33576
33552
  /* Now work on filling in swig_module.types */
33883
33859
  }
33884
33860
  
33885
33861
  SWIGINTERN PyObject *
33886
 
  SWIG_globals(void) {
 
33862
  SWIG_globals() {
33887
33863
    static PyObject *_SWIG_globals = 0; 
33888
33864
    if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();  
33889
33865
    return _SWIG_globals;
33928
33904
    swig_type_info **types_initial) {
33929
33905
    size_t i;
33930
33906
    for (i = 0; methods[i].ml_name; ++i) {
33931
 
      const char *c = methods[i].ml_doc;
 
33907
      char *c = methods[i].ml_doc;
33932
33908
      if (c && (c = strstr(c, "swig_ptr: "))) {
33933
33909
        int j;
33934
33910
        swig_const_info *ci = 0;
33935
 
        const char *name = c + 10;
 
33911
        char *name = c + 10;
33936
33912
        for (j = 0; const_table[j].type; ++j) {
33937
33913
          if (strncmp(const_table[j].name, name, 
33938
33914
              strlen(const_table[j].name)) == 0) {