Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
comparison.h
Go to the documentation of this file.
1 /* Libmacro - A multi-platform, extendable macro and hotkey C library
2  Copyright (C) 2013 Jonathan Pelletier, New Paradigm Software
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
23 #ifndef MCR_UTIL_COMPARISON_H_
24 #define MCR_UTIL_COMPARISON_H_
25 
26 #include "mcr/globals.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
39 typedef int (*mcr_data_fnc)(void *dataPt);
46 typedef int (*mcr_copy_fnc)(void *destinationPt, const void *sourcePt);
53 typedef int (*mcr_compare_fnc)(const void *lhsPt, const void *rhsPt);
54 
61 MCR_API int mcr_char_compare(const void *lhs, const void *rhs);
68 MCR_API int mcr_id_compare(const void *lhs, const void *rhs);
76 MCR_API int mcr_name_compare(const void *lhs, const void *rhs);
84 MCR_API int mcr_str_compare(const void *lhs, const void *rhs);
91 MCR_API int mcr_int_compare(const void *lhs, const void *rhs);
98 MCR_API int mcr_unsigned_compare(const void *lhs, const void *rhs);
105 MCR_API int mcr_ref_compare(const void *lhs, const void *rhs);
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif
int(* mcr_compare_fnc)(const void *lhsPt, const void *rhsPt)
Definition: comparison.h:53
MCR_API int mcr_name_compare(const void *lhs, const void *rhs)
MCR_API int mcr_int_compare(const void *lhs, const void *rhs)
int(* mcr_data_fnc)(void *dataPt)
Definition: comparison.h:39
MCR_API int mcr_unsigned_compare(const void *lhs, const void *rhs)
MCR_API int mcr_char_compare(const void *lhs, const void *rhs)
int(* mcr_copy_fnc)(void *destinationPt, const void *sourcePt)
Definition: comparison.h:46
MCR_API int mcr_id_compare(const void *lhs, const void *rhs)
MCR_API int mcr_ref_compare(const void *lhs, const void *rhs)
MCR_API int mcr_str_compare(const void *lhs, const void *rhs)