Skip to content

Commit c49b23a

Browse files
Chris Morinsofar
authored andcommitted
get rid of hexdecoct
1 parent f6283af commit c49b23a

4 files changed

Lines changed: 6 additions & 53 deletions

File tree

Makefile.am

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ libutils_la_SOURCES = \
129129
src/hash-funcs.h \
130130
src/hashmap.c \
131131
src/hashmap.h \
132-
src/hexdecoct.c \
133-
src/hexdecoct.h \
134132
src/io-util.c \
135133
src/io-util.h \
136134
src/list.h \

src/hexdecoct.c

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/hexdecoct.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/utf8.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include <stdlib.h>
4848
#include <string.h>
4949

50-
#include "hexdecoct.h"
5150
#include "macro.h"
5251
#include "utf8.h"
5352

@@ -65,6 +64,12 @@ bool unichar_is_valid(char32_t ch) {
6564
return true;
6665
}
6766

67+
static char hexchar(int x) {
68+
static const char table[16] = "0123456789abcdef";
69+
70+
return table[x & 15];
71+
}
72+
6873
static bool unichar_is_control(char32_t ch) {
6974

7075
/*

0 commit comments

Comments
 (0)