chiark / gitweb /
util: rework word parsing and c unescaping code
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Mar 2015 11:55:36 +0000 (18:55 +0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Mar 2015 10:56:22 +0000 (11:56 +0100)
commit4034a06ddb82ec9868cd52496fef2f5faa25575f
treea832cd56abb7830985f3e7e9dff7451b96478c24
parentbe3ce3014eacd66fa292fc9e4e6b3d3b0ef7de23
util: rework word parsing and c unescaping code

When parsing words from input files, optionally automatically unescape
the passed strings, controllable via a new flags parameter.

Make use of this in tmpfiles, and port everything else over, too.

This improves parsing quite a bit, since we no longer have to process the
same string multiple times with different calls, where an earlier call
might corrupt the input for a later call.
src/journal-remote/journal-remote.c
src/locale/localed.c
src/shared/condition.c
src/shared/strv.c
src/shared/strv.h
src/shared/util.c
src/shared/util.h
src/sysusers/sysusers.c
src/test/test-strv.c
src/test/test-util.c
src/tmpfiles/tmpfiles.c