X Tutup
Skip to content

Commit e4e73a6

Browse files
committed
util-lib: split out hex/dec/oct encoding/decoding into its own file
1 parent 6bedfcb commit e4e73a6

28 files changed

+782
-701
lines changed

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,8 @@ libbasic_la_SOURCES = \
791791
src/basic/parse-util.h \
792792
src/basic/user-util.c \
793793
src/basic/user-util.h \
794+
src/basic/hexdecoct.c \
795+
src/basic/hexdecoct.h \
794796
src/basic/extract-word.c \
795797
src/basic/extract-word.h \
796798
src/basic/escape.c \

src/basic/bus-label.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
#include <stdlib.h>
2323

24-
#include "util.h"
25-
#include "macro.h"
26-
2724
#include "bus-label.h"
25+
#include "macro.h"
26+
#include "hexdecoct.h"
27+
#include "util.h"
2828

2929
char *bus_label_escape(const char *s) {
3030
char *r, *t;

src/basic/escape.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2020
***/
2121

22+
#include "escape.h"
23+
#include "hexdecoct.h"
2224
#include "utf8.h"
2325
#include "util.h"
2426

25-
#include "escape.h"
26-
2727
size_t cescape_char(char c, char *buf) {
2828
char * buf_old = buf;
2929

0 commit comments

Comments
 (0)
X Tutup