[KoCo-CVS] [Commit] cjkcodecs/src/maps Makefile generic.c.in map_big5.c map_cp932.c map_cp949.c map_
Brought to you by:
perky
perky 03/05/17 14:01:00 Added: src/maps Makefile generic.c.in map_big5.c map_cp932.c map_cp949.c map_cp949ext.c map_cp950ext.c map_gb18030ext.c map_gb2312.c map_gbcommon.c map_gbkext.c map_jisx0208.c map_jisx0212.c map_jisxcommon.c map_ksx1001.c Log: Add map holders Revision Changes Path 1.1 cjkcodecs/src/maps/Makefile Index: Makefile =================================================================== # Makefile: maintenance tool set # # Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # $Id: Makefile,v 1.1 2003/05/17 21:00:59 perky Exp $ # CHARSETS_BOTH= cp932 gb18030ext big5 cp950ext CHARSETS_ENC= jisxcommon gbcommon cp949 CHARSETS_DEC= jisx0212 jisx0208 gbkext gb2312 cp949ext \ ksx1001 TEMPLATE_TRS= -e "s/%%CHARSET%%/$$CSET/g" \ -e "s/%%charset%%/$$cset/g" \ -e "s/%%__%%/ACHTUNG: This is generated file automatically.\ Please do not edit./g" all: maps: for cset in ${CHARSETS_BOTH}; do \ CSET=`echo $$cset|tr "[:lower:]" "[:upper:]"`; \ sed ${TEMPLATE_TRS} generic.c.in > map_$$cset.c; \ done for cset in ${CHARSETS_ENC}; do \ CSET=`echo $$cset|tr "[:lower:]" "[:upper:]"`; \ sed -e 's/%%charset%%_encmap/NULL/g' \ ${TEMPLATE_TRS} generic.c.in > map_$$cset.c; \ done for cset in ${CHARSETS_DEC}; do \ CSET=`echo $$cset|tr "[:lower:]" "[:upper:]"`; \ sed -e 's/%%charset%%_decmap/NULL/g' \ ${TEMPLATE_TRS} generic.c.in > map_$$cset.c; \ done 1.1 cjkcodecs/src/maps/generic.c.in Index: generic.c.in =================================================================== /* * %%__%% * * map_%%charset%%.c: %%CHARSET%% Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: generic.c.in,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_%%charset%%.h" static struct dbcs_map __map_entry = { "%%charset%%", %%charset%%_encmap, %%charset%%_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_%%charset%%(void) { PyObject *m; m = Py_InitModule("map_%%charset%%", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_%%charset%% module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_big5.c Index: map_big5.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_big5.c: BIG5 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_big5.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_big5.h" static struct dbcs_map __map_entry = { "big5", big5_encmap, big5_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_big5(void) { PyObject *m; m = Py_InitModule("map_big5", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_big5 module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_cp932.c Index: map_cp932.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_cp932.c: CP932 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_cp932.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_cp932.h" static struct dbcs_map __map_entry = { "cp932", cp932_encmap, cp932_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_cp932(void) { PyObject *m; m = Py_InitModule("map_cp932", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_cp932 module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_cp949.c Index: map_cp949.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_cp949.c: CP949 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_cp949.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_cp949.h" static struct dbcs_map __map_entry = { "cp949", NULL, cp949_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_cp949(void) { PyObject *m; m = Py_InitModule("map_cp949", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_cp949 module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_cp949ext.c Index: map_cp949ext.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_cp949ext.c: CP949EXT Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_cp949ext.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_cp949ext.h" static struct dbcs_map __map_entry = { "cp949ext", cp949ext_encmap, NULL }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_cp949ext(void) { PyObject *m; m = Py_InitModule("map_cp949ext", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_cp949ext module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_cp950ext.c Index: map_cp950ext.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_cp950ext.c: CP950EXT Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_cp950ext.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_cp950ext.h" static struct dbcs_map __map_entry = { "cp950ext", cp950ext_encmap, cp950ext_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_cp950ext(void) { PyObject *m; m = Py_InitModule("map_cp950ext", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_cp950ext module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_gb18030ext.c Index: map_gb18030ext.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_gb18030ext.c: GB18030EXT Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_gb18030ext.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_gb18030ext.h" static struct dbcs_map __map_entry = { "gb18030ext", gb18030ext_encmap, gb18030ext_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_gb18030ext(void) { PyObject *m; m = Py_InitModule("map_gb18030ext", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_gb18030ext module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_gb2312.c Index: map_gb2312.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_gb2312.c: GB2312 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_gb2312.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_gb2312.h" static struct dbcs_map __map_entry = { "gb2312", gb2312_encmap, NULL }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_gb2312(void) { PyObject *m; m = Py_InitModule("map_gb2312", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_gb2312 module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_gbcommon.c Index: map_gbcommon.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_gbcommon.c: GBCOMMON Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_gbcommon.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_gbcommon.h" static struct dbcs_map __map_entry = { "gbcommon", NULL, gbcommon_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_gbcommon(void) { PyObject *m; m = Py_InitModule("map_gbcommon", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_gbcommon module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_gbkext.c Index: map_gbkext.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_gbkext.c: GBKEXT Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_gbkext.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_gbkext.h" static struct dbcs_map __map_entry = { "gbkext", gbkext_encmap, NULL }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_gbkext(void) { PyObject *m; m = Py_InitModule("map_gbkext", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_gbkext module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_jisx0208.c Index: map_jisx0208.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_jisx0208.c: JISX0208 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_jisx0208.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_jisx0208.h" static struct dbcs_map __map_entry = { "jisx0208", jisx0208_encmap, NULL }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_jisx0208(void) { PyObject *m; m = Py_InitModule("map_jisx0208", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_jisx0208 module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_jisx0212.c Index: map_jisx0212.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_jisx0212.c: JISX0212 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_jisx0212.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_jisx0212.h" static struct dbcs_map __map_entry = { "jisx0212", jisx0212_encmap, NULL }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_jisx0212(void) { PyObject *m; m = Py_InitModule("map_jisx0212", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_jisx0212 module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_jisxcommon.c Index: map_jisxcommon.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_jisxcommon.c: JISXCOMMON Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_jisxcommon.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_jisxcommon.h" static struct dbcs_map __map_entry = { "jisxcommon", NULL, jisxcommon_decmap }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_jisxcommon(void) { PyObject *m; m = Py_InitModule("map_jisxcommon", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_jisxcommon module"); } /* * ex: ts=8 sts=4 et */ 1.1 cjkcodecs/src/maps/map_ksx1001.c Index: map_ksx1001.c =================================================================== /* * ACHTUNG: This is generated file automatically. Please do not edit. * * map_ksx1001.c: KSX1001 Map Provider * * Copyright (C) 2003 Hye-Shik Chang <pe...@Fr...>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * $Id: map_ksx1001.c,v 1.1 2003/05/17 21:00:59 perky Exp $ */ #include "Python.h" #include "../cjkcommon.h" #include "map_ksx1001.h" static struct dbcs_map __map_entry = { "ksx1001", ksx1001_encmap, NULL }; static struct PyMethodDef __methods[] = { {NULL, NULL}, }; void initmap_ksx1001(void) { PyObject *m; m = Py_InitModule("map_ksx1001", __methods); PyModule_AddObject(m, "__map", PyCObject_FromVoidPtr(&__map_entry, NULL)); if (PyErr_Occurred()) Py_FatalError("can't initialize the map_ksx1001 module"); } /* * ex: ts=8 sts=4 et */ |