10-uninorm-signedness.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Author: Michael Karcher <debian@mkarcher.dialup.fu-berlin.de>
  2. Description: Fixes prototypes in unincore.h to match uninorm.c.
  3. --- unace-nonfree-2.5.orig/source/base/all/uninorm/unincore.h
  4. +++ unace-nonfree-2.5/source/base/all/uninorm/unincore.h
  5. @@ -3,28 +3,30 @@
  6. *
  7. */
  8. +typedef unsigned int uint;
  9. +
  10. /* integer string functions */
  11. -int istrlen (int * str );
  12. -int istrcmp (int * s1, int * s2 );
  13. +uint istrlen (uint * str );
  14. +uint istrcmp (uint * s1, uint * s2 );
  15. /* unicode data accessors */
  16. -int is_excluded (int c );
  17. -int get_combining_class (int c );
  18. -int get_recombined_codepoint (int c1, int c2 );
  19. -int * get_decomposition (int * buf, int c );
  20. +uint is_excluded (uint c );
  21. +uint get_combining_class (uint c );
  22. +int get_recombined_codepoint (uint c1, uint c2 );
  23. +uint * get_decomposition (uint * buf, uint c );
  24. /* utf en/decoding functions */
  25. void encode_utf8(char *buf, unsigned *str);
  26. void decode_utf8(unsigned *buf, char *str);
  27. /* (de)composition functions */
  28. -void decompose_recursive (int * buf, int c );
  29. -void canonical_order (int * str );
  30. -void canonical_composition (int * str );
  31. -void canonical_decomposition (int * buf, int * str );
  32. +void decompose_recursive (uint * buf, uint c );
  33. +void canonical_order (uint * str );
  34. +void canonical_composition (uint * str );
  35. +void canonical_decomposition (uint * buf, uint * str );
  36. /* normalization functions */
  37. -void normalize_nfd (int * buf, int * str );
  38. -void normalize_nfc (int * buf, int * str );
  39. +void normalize_nfd (uint * buf, uint * str );
  40. +void normalize_nfc (uint * buf, uint * str );
  41. void normalize_nfd_utf8 (char * buf, char * str );
  42. void normalize_nfc_utf8 (char * buf, char * str );
  43. --- unace-nonfree-2.5.orig/source/base/all/uninorm/uninorm.c
  44. +++ unace-nonfree-2.5/source/base/all/uninorm/uninorm.c
  45. @@ -101,4 +101,4 @@ INT BASE_UNINORM_CP850ToUTF8NFD(UCHAR *u
  46. }
  47. }
  48. -*/
  49. \ No newline at end of file
  50. +*/