mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Font cache: Replace fixed-size array with variable size link list.
This commit is contained in:
@@ -58,5 +58,6 @@ void sq_addfirst(FAR sq_entry_t *node, sq_queue_t *queue)
|
||||
{
|
||||
queue->tail = node;
|
||||
}
|
||||
|
||||
queue->head = node;
|
||||
}
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name:
|
||||
* Name: sq_remafter
|
||||
*
|
||||
* Description:
|
||||
* sq_remafter removes the entry following 'node; from the'queue' Returns
|
||||
* sq_remafter removes the entry following 'node' from the'queue' Returns
|
||||
* a reference to the removed entry.
|
||||
*
|
||||
****************************************************************************/
|
||||
@@ -55,6 +55,7 @@
|
||||
FAR sq_entry_t *sq_remafter(FAR sq_entry_t *node, sq_queue_t *queue)
|
||||
{
|
||||
FAR sq_entry_t *ret = node->flink;
|
||||
|
||||
if (queue->head && ret)
|
||||
{
|
||||
if (queue->tail == ret)
|
||||
|
||||
Reference in New Issue
Block a user