Permalink
Switch branches/tags
Commits on Apr 2, 2011
Commits on Mar 31, 2011
  1. refactor to allow experimenting with different outbuf routines

    tns_outbuf_rev.c now contains the original write-in-reverse routines,
    while tns_outbuf_push.c contains routines that write from the back
    of the buffer but keep the data right-way-round.
    committed Mar 31, 2011
Commits on Mar 27, 2011
  1. more speedups for pure-python rendering.

    This attempt uses a deque to collect fragments of the output, generated
    last-chunk-first.  We save the overhead of reversing lots of little
    strings.
    committed Mar 27, 2011
  2. add some comments

    committed Mar 27, 2011
Commits on Mar 26, 2011
  1. some modest speedups for the pure-python version

    Sadly I don't think it'll get much faster than this.
    committed Mar 26, 2011
  2. fix some docstring typos

    committed Mar 26, 2011
Commits on Mar 25, 2011
  1. fix typo

    committed Mar 25, 2011
Commits on Mar 23, 2011
  1. fix returncode of tns_outbuf_itoa

    committed Mar 23, 2011
  2. Stricter verification.

    Without the +1, this case
    
        tns_parse("5:12345,", 7);
    
    will succeed, even though the length argument says not to include the
    comma.
    
    Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
    Guillermo O. Freschi committed Mar 23, 2011
  3. do/while trickery

    Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
    Guillermo O. Freschi committed Mar 23, 2011
  4. Added tns_type_tag enum.

    A bit of safety for switches.
    
    Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
    Guillermo O. Freschi committed Mar 23, 2011
  5. Removed "len < 0 checks", since size_t is unsigned.

    As reported by -Wextra, len cannot be negative (it would have
    overflowed).
    
    Also, in order for (remain - data) to be > len, there must be
    a bug in tns_parse.
    
    Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
    Guillermo O. Freschi committed Mar 23, 2011
  6. Marketing

    Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
    Guillermo O. Freschi committed Mar 23, 2011
  7. Removed duped 'the'

    Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
    Guillermo O. Freschi committed Mar 23, 2011
  8. refactor rendering to use a simple "outbuf" struct.

    This combines the output buffer, allocated size and used size into a
    single value.  Helper functions make writing render functions simpler.
    It also lets throwing out work done so far if we need to grow the buffer.
    committed Mar 23, 2011
  9. adding .gitignore

    committed Mar 23, 2011
  10. initial commit

    committed Mar 23, 2011