Commit e920d87f authored by Chris Mueller's avatar Chris Mueller

Rename cry_free_handler to the more appropriate name cry_free_funptr.

parent 3c9bc31e
......@@ -17,8 +17,6 @@ set(HEADER
add_library(${TARGET_NAME} SHARED ${SOURCES})
configure_file(pkgconfig.pc.in ${CMAKE_BINARY_DIR}/pkgconfig.pc @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/pkgconfig.pc DESTINATION lib/pkgconfig RENAME ${TARGET_NAME}.pc)
install(FILES ${HEADER} DESTINATION include/${TARGET_NAME})
install(TARGETS ${TARGET_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
......@@ -47,7 +47,7 @@ cry_list_new(void)
void
cry_list_free(struct CryList* list, cry_free_function handler)
cry_list_free(struct CryList* list, cry_free_funptr handler)
{
assert(list != 0);
......
......@@ -24,7 +24,7 @@
struct CryList;
struct CryList* cry_list_new(void);
void cry_list_free(struct CryList* list, cry_free_function handler);
void cry_list_free(struct CryList* list, cry_free_funptr handler);
size_t cry_list_size(struct CryList* list);
pointer cry_list_head(struct CryList* list);
......
......@@ -24,7 +24,7 @@
struct CryQueue;
struct CryQueue* cry_queue_new(void);
void cry_queue_free(struct CryQueue* queue, cry_free_handler handler);
void cry_queue_free(struct CryQueue* queue, cry_free_funptr handler);
int cry_queue_size(struct CryQueue* queue);
pointer cry_queue_front(struct CryQueue* queue);
......
......@@ -48,7 +48,7 @@ cry_queue_new(void)
void
cry_queue_free(struct CryQueue* queue, cry_free_handler handler)
cry_queue_free(struct CryQueue* queue, cry_free_funptr handler)
{
assert(queue != 0);
......@@ -155,7 +155,7 @@ cry_stack_new(void)
void
cry_stack_free(struct CryStack* stack, cry_free_handler handler)
cry_stack_free(struct CryStack* stack, cry_free_funptr handler)
{
assert(stack != 0);
......
......@@ -25,7 +25,7 @@ struct CryStack;
struct CryStack* cry_stack_new(void);
void cry_stack_free(struct CryStack* stack, cry_free_handler handler);
void cry_stack_free(struct CryStack* stack, cry_free_funptr handler);
size_t cry_stack_size(struct CryStack* stack);
pointer cry_stack_top(struct CryStack* stack);
......
......@@ -21,8 +21,8 @@
#include <standard.h>
typedef void (*cry_free_function)(pointer data);
typedef int (*cry_predicate_function)(pointer element, pointer context);
typedef void (*cry_free_funptr)(pointer data);
typedef int (*cry_predicate_funptr)(pointer element, pointer context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment