Fixed some size_t related warnings.
[libfirm] / scripts / jinja2 / _speedups.c
index c4dda15..64c7dc6 100644 (file)
@@ -8,7 +8,7 @@
  * implementation of `tb_set_next` and Python implementations of the other
  * functions are used.
  *
- * :copyright: 2008 by Armin Ronacher, Mickaël Guérin.
+ * :copyright: (c) 2009 by the Jinja Team.
  * :license: BSD.
  */
 
@@ -28,7 +28,8 @@ static PyObject* markup;
 static Py_ssize_t escaped_chars_delta_len[ESCAPED_CHARS_TABLE_SIZE];
 static Py_UNICODE *escaped_chars_repl[ESCAPED_CHARS_TABLE_SIZE];
 
-static int init_constants(void)
+static int
+init_constants(void)
 {
        PyObject *module;
        /* happing of characters to replace */
@@ -54,7 +55,8 @@ static int init_constants(void)
        return 1;
 }
 
-static PyObject *escape_unicode(PyUnicodeObject *in)
+static PyObject*
+escape_unicode(PyUnicodeObject *in)
 {
        PyUnicodeObject *out;
        Py_UNICODE *inp = in->str;
@@ -115,7 +117,8 @@ static PyObject *escape_unicode(PyUnicodeObject *in)
 }
 
 
-static PyObject *escape(PyObject *self, PyObject *text)
+static PyObject*
+escape(PyObject *self, PyObject *text)
 {
        PyObject *s = NULL, *rv = NULL, *html;
 
@@ -152,7 +155,8 @@ static PyObject *escape(PyObject *self, PyObject *text)
 }
 
 
-static PyObject *soft_unicode(PyObject *self, PyObject *s)
+static PyObject*
+soft_unicode(PyObject *self, PyObject *s)
 {
        if (!PyUnicode_Check(s))
                return PyObject_Unicode(s);
@@ -161,7 +165,8 @@ static PyObject *soft_unicode(PyObject *self, PyObject *s)
 }
 
 
-static PyObject *tb_set_next(PyObject *self, PyObject *args)
+static PyObject*
+tb_set_next(PyObject *self, PyObject *args)
 {
        PyTracebackObject *tb, *old;
        PyObject *next;