Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of libdom test suite.
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2007 James Shaw <jshaw@netsurf-browser.org>
  6.  * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
  7.  */
  8.  
  9. #ifndef comparators_h_
  10. #define comparators_h_
  11.  
  12. /**
  13.  * A function pointer type for a comparator.
  14.  */
  15. typedef int (*comparator)(const void* a, const void* b);
  16.  
  17. int int_comparator(const void* a, const void* b);
  18.  
  19. int str_icmp(const void *a, const void *b);
  20. int str_icmp_r(const void *a, const void *b);
  21. int str_cmp(const void *a, const void *b);
  22. int str_cmp_r(const void *a, const void *b);
  23. #endif
  24.