• Geoff Simmons's avatar
    various refactorings: · 3c5b47e6
    Geoff Simmons authored
    - establish a common interface for encoders and decoders, and
      re-implement the existing functions accordingly
    - encoders always convert STRING_LIST to BLOB, decoders vice versa
    - VMOD encode() and decode() write the new data to workspace
    - transcode() writes the temporary BLOB to stack, then encodes it
      into a STRING in workspace
    - if the same encoding is specified in transcode() for encode and decode,
      just return the concatenated STRING
      - XXX: except this won't reject illegal decodings
    - simplify hex_encode(), and fix hex_en-/decode_l() (was backwards)
    - add a macro to skip over empty and undefined strings in a STRING_LIST
    3c5b47e6
Name
Last commit
Last update
debian Loading commit data...
m4 Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.rst Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
vmod-convert.spec Loading commit data...