aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/encode
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-02-08 16:23:48 +0100
committerSverker Eriksson <[email protected]>2013-02-08 16:23:48 +0100
commit27d5ba9e31c666bd0a7e278b02df3a5b4ecb8e0b (patch)
treec6017fc754dc4ff2f39dc7989009d31c8fd9a81c /lib/erl_interface/src/encode
parent7d1060c624676c5dde532d1cb59fa177329f4178 (diff)
parentb0693061137de237c38965c556c7d6ded8977394 (diff)
downloadotp-27d5ba9e31c666bd0a7e278b02df3a5b4ecb8e0b.tar.gz
otp-27d5ba9e31c666bd0a7e278b02df3a5b4ecb8e0b.tar.bz2
otp-27d5ba9e31c666bd0a7e278b02df3a5b4ecb8e0b.zip
Merge branch 'sverk/erl_interface-enum-typedef'
* sverk/erl_interface-enum-typedef: erl_interface: Change enum erlang_char_encoding to a typedef
Diffstat (limited to 'lib/erl_interface/src/encode')
-rw-r--r--lib/erl_interface/src/encode/encode_atom.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/erl_interface/src/encode/encode_atom.c b/lib/erl_interface/src/encode/encode_atom.c
index 32f5ae2af1..df4b0af5db 100644
--- a/lib/erl_interface/src/encode/encode_atom.c
+++ b/lib/erl_interface/src/encode/encode_atom.c
@@ -45,15 +45,15 @@ int ei_encode_atom_len(char *buf, int *index, const char *p, int len)
}
int ei_encode_atom_as(char *buf, int *index, const char *p,
- enum erlang_char_encoding from_enc,
- enum erlang_char_encoding to_enc)
+ erlang_char_encoding from_enc,
+ erlang_char_encoding to_enc)
{
return ei_encode_atom_len_as(buf, index, p, strlen(p), from_enc, to_enc);
}
int ei_encode_atom_len_as(char *buf, int *index, const char *p, int len,
- enum erlang_char_encoding from_enc,
- enum erlang_char_encoding to_enc)
+ erlang_char_encoding from_enc,
+ erlang_char_encoding to_enc)
{
char *s = buf + *index;
char *s0 = s;
@@ -138,7 +138,7 @@ int ei_encode_atom_len_as(char *buf, int *index, const char *p, int len,
int
ei_internal_put_atom(char** bufp, const char* p, int slen,
- enum erlang_char_encoding to_enc)
+ erlang_char_encoding to_enc)
{
int ix = 0;
if (ei_encode_atom_len_as(*bufp, &ix, p, slen, ERLANG_UTF8, to_enc) < 0)