[noPoll] Bug in core library manual

Neil Kolban kolban1 en kolban.com
Vie Dic 11 16:44:21 CET 2015


If we look at the following page:

http://www.aspl.es/nopoll/html/nopoll_core_library_manual.html

We see in Section 1.5 that the function listener_on_message has the 
signature:

voidlistener_on_message (noPollCtx 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga0d2aab846f7125cb37acd8a50dc2d0c6.html#ga0d2aab846f7125cb37acd8a50dc2d0c6>* 
ctx, noPollConn 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga7cdc0f775d9b54eeb78904e6f5242d22.html#ga7cdc0f775d9b54eeb78904e6f5242d22>* 
conn, noPollMsg 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga8abc18b997c98d124d3342209ae668e9.html#ga8abc18b997c98d124d3342209ae668e9>* 
msg, noPollPtr 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga6ce99d48900be6d4a3098812376fb4ce.html#ga6ce99d48900be6d4a3098812376fb4ce>* 
user_data)

However this is incorrect, it should be:

voidlistener_on_message (noPollCtx 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga0d2aab846f7125cb37acd8a50dc2d0c6.html#ga0d2aab846f7125cb37acd8a50dc2d0c6>* 
ctx, noPollConn 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga7cdc0f775d9b54eeb78904e6f5242d22.html#ga7cdc0f775d9b54eeb78904e6f5242d22>* 
conn, noPollMsg 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga8abc18b997c98d124d3342209ae668e9.html#ga8abc18b997c98d124d3342209ae668e9>* 
msg, noPollPtr 
<http://www.aspl.es/nopoll/html/group__nopoll__decl__module_ga6ce99d48900be6d4a3098812376fb4ce.html#ga6ce99d48900be6d4a3098812376fb4ce>user_data)

(The different is in the user_data parameter ... removal of the extra 
pointer indirection).

Neil
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20151211/4f4b41f5/attachment.html>


Más información sobre la lista de distribución noPoll