perky 03/06/05 22:52:03
Modified: src _utf_8.c codecentry.h
Log:
Avoid warnings "importmaps is defined but not used"
Revision Changes Path
1.4 +2 -1 cjkcodecs/src/_utf_8.c
Index: _utf_8.c
===================================================================
RCS file: /cvsroot/koco/cjkcodecs/src/_utf_8.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- _utf_8.c 31 May 2003 11:50:19 -0000 1.3
+++ _utf_8.c 6 Jun 2003 05:52:03 -0000 1.4
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: _utf_8.c,v 1.3 2003/05/31 11:50:19 perky Exp $
+ * $Id: _utf_8.c,v 1.4 2003/06/06 05:52:03 perky Exp $
*/
#include "codeccommon.h"
@@ -190,6 +190,7 @@
return 0;
}
+#define CODEC_WITHOUT_MAPS
#include "codecentry.h"
BEGIN_CODEC_REGISTRY(utf_8)
/* no maps */
1.2 +3 -2 cjkcodecs/src/codecentry.h
Index: codecentry.h
===================================================================
RCS file: /cvsroot/koco/cjkcodecs/src/codecentry.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- codecentry.h 31 May 2003 11:50:19 -0000 1.1
+++ codecentry.h 6 Jun 2003 05:52:03 -0000 1.2
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: codecentry.h,v 1.1 2003/05/31 11:50:19 perky Exp $
+ * $Id: codecentry.h,v 1.2 2003/06/06 05:52:03 perky Exp $
*/
#ifdef HAVE_ENCODER_INIT
@@ -118,6 +118,7 @@
Py_XDECREF(o); \
}
+#ifndef CODEC_WITHOUT_MAPS
static int
importmap(PyObject *mod, const char *symbol,
const struct unim_index **encmap, const struct dbcs_index **decmap)
@@ -142,6 +143,7 @@
return 0;
}
+#endif
static PyObject *
createcodec(PyObject *cofunc, MultibyteCodec *codec)
@@ -157,7 +159,6 @@
return r;
}
-
/*
* ex: ts=8 sts=4 et
|