aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalikhov Dinislam <[email protected]>2017-05-08 15:32:54 +0300
committerSalikhov Dinislam <[email protected]>2017-05-21 22:14:14 +0300
commit2084cb04283e11409dfe2b2b26cdf53355c5c117 (patch)
treec0d8297feb9112fcea5b832931bc7450b0b9d2b2
parent51e4cc4097c1937873fcaf5968ddfa37952ba863 (diff)
downloadotp-2084cb04283e11409dfe2b2b26cdf53355c5c117.tar.gz
otp-2084cb04283e11409dfe2b2b26cdf53355c5c117.tar.bz2
otp-2084cb04283e11409dfe2b2b26cdf53355c5c117.zip
erts: Make erts_align_utf8_bytes() static
-rw-r--r--erts/emulator/beam/erl_bits.c2
-rw-r--r--erts/emulator/beam/erl_bits.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_bits.c b/erts/emulator/beam/erl_bits.c
index eea55b3239..71c64997c1 100644
--- a/erts/emulator/beam/erl_bits.c
+++ b/erts/emulator/beam/erl_bits.c
@@ -1636,7 +1636,7 @@ erts_bs_get_unaligned_uint32(ErlBinMatchBuffer* mb)
return LSB[0] | (LSB[1]<<8) | (LSB[2]<<16) | (LSB[3]<<24);
}
-void
+static void
erts_align_utf8_bytes(ErlBinMatchBuffer* mb, byte* buf)
{
Uint bits = mb->size - mb->offset;
diff --git a/erts/emulator/beam/erl_bits.h b/erts/emulator/beam/erl_bits.h
index 632855255e..5da2b28a89 100644
--- a/erts/emulator/beam/erl_bits.h
+++ b/erts/emulator/beam/erl_bits.h
@@ -202,7 +202,6 @@ void erts_new_bs_put_string(ERL_BITS_PROTO_2(byte* iptr, Uint num_bytes));
Uint erts_bits_bufs_size(void);
Uint32 erts_bs_get_unaligned_uint32(ErlBinMatchBuffer* mb);
-void erts_align_utf8_bytes(ErlBinMatchBuffer* mb, byte* buf);
Eterm erts_bs_get_utf8(ErlBinMatchBuffer* mb);
Eterm erts_bs_get_utf16(ErlBinMatchBuffer* mb, Uint flags);
Eterm erts_bs_append(Process* p, Eterm* reg, Uint live, Eterm build_size_term,