Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  invalid prototype for ei_get_type in documentation

ekarttun at cs.helsinki.f
Posted: Fri May 09, 2003 4:26 pm Reply with quote
Guest
Hello

The C interface function ei_get_type has the type
int ei_get_type(const char *buf, const int *index, int *type, int *len)
as defined in erl_interface-3.3.2/src/get_type.c and
erl_interface-3.3.2/include/eicode.h. The documentation
however claims that it is:
int ei_get_type(const ei_x_buff* x, int *type, int *size)
which is quite clearly wrong.

This affects
erl_interface-3.3.2/doc/html/ei.html

Here is a useless diff since the source is probably managed in
a saner format...

diff -u html.ori/ei.html html/ei.html
--- html.ori/ei.html 2003-03-04 17:22:49.000000000 +0200
+++ html/ei.html 2003-05-09 19:21:48.000000000 +0300
_at__at_ -233,7 +233,7 _at__at_
<P> This function encodes an empty list. It's often used at the
tail of a list.
</UL>
-<P><A NAME="ei_get_type%3"><STRONG><CODE>int ei_get_type(const ei_x_buff* x, int *type, int *size)</CODE></STRONG></A><BR>
+<P><A NAME="ei_get_type%3"><STRONG><CODE>int ei_get_type(const char* buf, int *type, int *size)</CODE></STRONG></A><BR>
<UL>
<P> This function returns the type in <CODE>type</CODE> and size in
<CODE>size</CODE> of the encoded term. For strings and atoms, size


The same error is in the current web documentation (the corresponding file).

ps. please cc-me as I'm not subscribed to this list.

- Einar Karttunen


Post generated using Mail2Forum (http://m2f.sourceforge.net)
Senreh
Posted: Sat Sep 16, 2006 3:57 am Reply with quote
Guest
Where you get it???

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum