summaryrefslogtreecommitdiff
path: root/simplejson/_speedups.c
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2008-09-26 17:49:36 +0000
committerBob Ippolito <bob@redivi.com>2008-09-26 17:49:36 +0000
commit8f92b0c06fcc4f127f2a7001e7c5f21e36ca3673 (patch)
tree45bc744ed968b933348c49e29e0a16e2dae6d585 /simplejson/_speedups.c
parentb05d6f11c5473c8674f170ca2ebe1c42f464f361 (diff)
downloadsimplejson-8f92b0c06fcc4f127f2a7001e7c5f21e36ca3673.tar.gz
make static
git-svn-id: http://simplejson.googlecode.com/svn/trunk@123 a4795897-2c25-0410-b006-0d3caba88fa1
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r--simplejson/_speedups.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index d4d9c12..c742641 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -105,6 +105,10 @@ static int
encoder_listencode_dict(PyEncoderObject *s, PyObject *rval, PyObject *dct, Py_ssize_t indent_level);
static PyObject *
_encoded_const(PyObject *const);
+static void
+raise_errmsg(char *msg, PyObject *s, Py_ssize_t end);
+static PyObject *
+encoder_encode_string(PyEncoderObject *s, PyObject *obj);
#define S_CHAR(c) (c >= ' ' && c <= '~' && c != '\\' && c != '"')
@@ -290,7 +294,7 @@ ascii_escape_str(PyObject *pystr)
return rval;
}
-void
+static void
raise_errmsg(char *msg, PyObject *s, Py_ssize_t end)
{
static PyObject *errmsg_fn = NULL;
@@ -1696,7 +1700,7 @@ py_encoder_iterencode_list(PyObject *self, PyObject *args)
return rval;
}
-PyObject *
+static PyObject *
_encoded_const(PyObject *obj)
{
if (obj == Py_None) {
@@ -1726,7 +1730,7 @@ _encoded_const(PyObject *obj)
}
}
-PyObject *
+static PyObject *
encoder_encode_string(PyEncoderObject *s, PyObject *obj)
{
if (s->fast_encode)