mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
More migration away from al_list
This commit is contained in:
@@ -70,7 +70,6 @@ typedef struct
|
|||||||
}
|
}
|
||||||
message_t;
|
message_t;
|
||||||
|
|
||||||
|
|
||||||
typedef std::queue<message_t *> message_queue_t;
|
typedef std::queue<message_t *> message_queue_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
15
util.cpp
15
util.cpp
@@ -582,21 +582,6 @@ int hash_ptr_cmp( void *a,
|
|||||||
return a == b;
|
return a == b;
|
||||||
}
|
}
|
||||||
|
|
||||||
array_list_t *al_new()
|
|
||||||
{
|
|
||||||
array_list_t *res = (array_list_t *)malloc( sizeof( array_list_t ) );
|
|
||||||
|
|
||||||
if( !res )
|
|
||||||
{
|
|
||||||
oom_handler( 0 );
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
al_init( res );
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void al_init( array_list_t *l )
|
void al_init( array_list_t *l )
|
||||||
{
|
{
|
||||||
memset( l, 0, sizeof( array_list_t ) );
|
memset( l, 0, sizeof( array_list_t ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user