Skip to content
Myr

small fix for Python 2.4

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 3e39651 · Browse files · 2 files+9 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−2 removed

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:jinja2/_speedups.c+7 added
15 unmodified lines
1617#define ESCAPED_CHARS_TABLE_SIZE 6318#define UNICHR(x) (((PyUnicodeObject*)PyUnicode_DecodeASCII(x, strlen(x), NULL))->str);1920#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)21typedef int Py_ssize_t;22#define PY_SSIZE_T_MAX INT_MAX23#define PY_SSIZE_T_MIN INT_MIN24#endif252627static PyObject* markup;28static Py_ssize_t escaped_chars_delta_len[ESCAPED_CHARS_TABLE_SIZE];29static Py_UNICODE *escaped_chars_repl[ESCAPED_CHARS_TABLE_SIZE];30
190 unmodified lines
modified:setup.py+2 added-2 removed
26 unmodified lines
2728Application logic is for the controller but don't try to make the life29for the template designer too hard by giving him too few functionality.3031For more informations visit the new `jinja2 webpage`_ and `documentation`_.31For more informations visit the new `Jinja2 webpage`_ and `documentation`_.3233The `Jinja2 tip`_ is installable via `easy_install` with ``easy_install34Jinja2==dev``.3536.. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)37.. _Django: http://www.djangoproject.com/38.. _jinja2 webpage: http://jinja.pocoo.org/38.. _Jinja2 webpage: http://jinja.pocoo.org/39.. _documentation: http://jinja.pocoo.org/2/documentation/40.. _Jinja2 tip: http://dev.pocoo.org/hg/jinja2-main/archive/tip.tar.gz#egg=Jinja2-dev41"""42import os
96 unmodified lines