diff options
author | Sverker Eriksson <[email protected]> | 2013-02-07 14:46:19 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-02-07 14:46:19 +0100 |
commit | b0693061137de237c38965c556c7d6ded8977394 (patch) | |
tree | 18bb5289d54c522fd39d5893d48a4783b4909a54 /lib/erl_interface/src/legacy/erl_marshal.c | |
parent | 68b804f34d4ec420d86953e3f519179a40fbee8f (diff) | |
download | otp-b0693061137de237c38965c556c7d6ded8977394.tar.gz otp-b0693061137de237c38965c556c7d6ded8977394.tar.bz2 otp-b0693061137de237c38965c556c7d6ded8977394.zip |
erl_interface: Change enum erlang_char_encoding to a typedef
to make the API independent of the actual type of erlang_char_encoding
Diffstat (limited to 'lib/erl_interface/src/legacy/erl_marshal.c')
-rw-r--r-- | lib/erl_interface/src/legacy/erl_marshal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/erl_interface/src/legacy/erl_marshal.c b/lib/erl_interface/src/legacy/erl_marshal.c index c051c3a597..e207b5f0f1 100644 --- a/lib/erl_interface/src/legacy/erl_marshal.c +++ b/lib/erl_interface/src/legacy/erl_marshal.c @@ -660,7 +660,7 @@ static int read_atom(unsigned char** ext, Erl_Atom_data* a) { char buf[MAXATOMLEN_UTF8]; int offs = 0; - enum erlang_char_encoding enc; + erlang_char_encoding enc; int ret = ei_decode_atom_as((char*)*ext, &offs, buf, MAXATOMLEN_UTF8, ERLANG_LATIN1|ERLANG_UTF8, NULL, &enc); *ext += offs; @@ -1423,8 +1423,8 @@ static int cmpbytes(unsigned char* s1,int l1,unsigned char* s2,int l2) static int cmpatoms(unsigned char* s1, int l1, unsigned char tag1, unsigned char* s2, int l2, unsigned char tag2) { - enum erlang_char_encoding enc1 = tag2enc(tag1); - enum erlang_char_encoding enc2 = tag2enc(tag2); + erlang_char_encoding enc1 = tag2enc(tag1); + erlang_char_encoding enc2 = tag2enc(tag2); if (enc1 == enc2) { return cmpbytes(s1, l1,s2,l2); |