[Home]

Summary:ASTERISK-03077: [PATCH] modify AST_LIST_REMOVE_HEAD to return removed entry
Reporter:Kevin P. Fleming (kpfleming)Labels:
Date Opened:2004-12-22 22:55:43.000-0600Date Closed:2008-01-15 15:18:05.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) list_remove_head_return_rev1.diff.txt
Description:Every usage of AST_LIST_REMOVE_HEAD in the tree wants the entry that was removed, so it calls AST_LIST_FIRST prior. This patch makes it somewhat easier to code, because AST_LIST_REMOVE_HEAD now returns the entry that was removed.

****** ADDITIONAL INFORMATION ******

Disclaimer is on file.
Comments:By: Mark Spencer (markster) 2004-12-23 10:14:20.000-0600

Added to CVS, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:18:05.000-0600

Repository: asterisk
Revision: 4546

U   trunk/channel.c
U   trunk/doc/linkedlists.README
U   trunk/include/asterisk/linkedlists.h
U   trunk/pbx/pbx_dundi.c
U   trunk/pbx/pbx_loopback.c
U   trunk/pbx.c

------------------------------------------------------------------------
r4546 | markster | 2008-01-15 15:18:05 -0600 (Tue, 15 Jan 2008) | 2 lines

Speed up ast_list macros (bug ASTERISK-3077)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4546