view make_ER.sh @ 38:0da42144a012 MySQLdb

Use Py_InitModule3 since we were were doing the same as the #define for the extra arguments; remove trailing whitespaces; ditch another pre-python-2.3 #ifdef .
author kylev
date Fri, 13 Feb 2009 08:10:00 +0000
parents 7773efbe9b30
children
line wrap: on
line source

#!/bin/sh
echo '"""
MySQL ER Constants
------------------

These constants are error codes for the bulk of the error conditions
that may occur.

"""
__revision__ = "$Revision$"[11:-2]
__author__ = "$Author$"[9:-2]
'
sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h