perky 02/04/26 21:48:37
Modified: src Setup.in
Added: src twobytestream.c
Log:
- Add twobytestream which will be used by CP949, EUC-KR and Johab
as StreamReader, StreamWriter, StreamReaderWriter assistant
Revision Changes Path
1.3 +1 -0 KoreanCodecs/src/Setup.in
Index: Setup.in
===================================================================
RCS file: /cvsroot/koco/KoreanCodecs/src/Setup.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Setup.in 24 Apr 2002 14:16:56 -0000 1.2
+++ Setup.in 27 Apr 2002 04:48:37 -0000 1.3
@@ -1,3 +1,4 @@
*shared*
_koco _koco.c
hangul hangul.c
+twobytestream twobytestream.c
1.1 KoreanCodecs/src/twobytestream.c
Index: twobytestream.c
===================================================================
/*
* twobytestream.c
*
* KoreanCodecs 2byte Stream C Implementations
*
* Author : Hye-Shik Chang <pe...@fa...>
* Date : $Date: 2002/04/27 04:48:37 $
* Created : 27 April 2002
*
* $Revision: 1.1 $
*/
static char *version =
"$Id: twobytestream.c,v 1.1 2002/04/27 04:48:37 perky Exp $";
#include "Python.h"
/* List of methods defined in the module */
#define meth(name, func, doc) {name, (PyCFunction)func, METH_VARARGS, doc}
static struct PyMethodDef twobytestream_methods[] = {
/*meth("tbstream_read", tbstream_read, tbstream_read__doc__),*/
{NULL, NULL},
};
/* Initialization function for the module */
void
inittwobytestream(void)
{
PyObject *m, *d;
/* Create the module and add the functions */
m = Py_InitModule("twobytestream", twobytestream_methods);
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
PyDict_SetItemString(d, "version", PyString_FromString(version));
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize the twobytestream module");
}
|