tgn_funcdef.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #ifndef TGN_FUNCDEF_H
  2. #define TGN_FUNCDEF_H
  3. /* Unique number for each test. */
  4. #define Tiswalnum 1
  5. #define Tiswalpha 2
  6. #define Tiswcntrl 3
  7. #define Tiswctype 4
  8. #define Tiswdigit 5
  9. #define Tiswgraph 6
  10. #define Tiswlower 7
  11. #define Tiswprint 8
  12. #define Tiswpunct 9
  13. #define Tiswspace 10
  14. #define Tiswupper 11
  15. #define Tiswxdigit 12
  16. #define Tmblen 13
  17. #define Tmbrlen 14
  18. #define Tmbrtowc 15
  19. #define Tmbsrtowcs 16
  20. #define Tmbstowcs 17
  21. #define Tmbtowc 18
  22. #define Tstrcoll 19
  23. #define Tstrfmon 20
  24. #define Tstrxfrm 21
  25. #define Tswscanf 22
  26. #define Ttowctrans 23
  27. #define Ttowlower 24
  28. #define Ttowupper 25
  29. #define Twcrtomb 26
  30. #define Twcscat 27
  31. #define Twcschr 28
  32. #define Twcscmp 29
  33. #define Twcscoll 30
  34. #define Twcscpy 31
  35. #define Twcscspn 32
  36. #define Twcslen 33
  37. #define Twcsncat 34
  38. #define Twcsncmp 35
  39. #define Twcsncpy 36
  40. #define Twcspbrk 37
  41. #define Twcsrtombs 38
  42. #define Twcsspn 39
  43. #define Twcsstr 40
  44. #define Twcstod 41
  45. #define Twcstok 42
  46. #define Twcstombs 43
  47. #define Twcswidth 44
  48. #define Twcsxfrm 45
  49. #define Twctob 46
  50. #define Twctomb 47
  51. #define Twctrans 48
  52. #define Twctype 49
  53. #define Twcwidth 50
  54. /* Name of each test. */
  55. #define S_ISWALNUM "iswalnum"
  56. #define S_ISWALPHA "iswalpha"
  57. #define S_ISWCNTRL "iswcntrl"
  58. #define S_ISWCTYPE "iswctype"
  59. #define S_ISWDIGIT "iswdigit"
  60. #define S_ISWGRAPH "iswgraph"
  61. #define S_ISWLOWER "iswlower"
  62. #define S_ISWPRINT "iswprint"
  63. #define S_ISWPUNCT "iswpunct"
  64. #define S_ISWSPACE "iswspace"
  65. #define S_ISWUPPER "iswupper"
  66. #define S_ISWXDIGIT "iswxdigit"
  67. #define S_MBLEN "mblen"
  68. #define S_MBRLEN "mbrlen"
  69. #define S_MBRTOWC "mbrtowc"
  70. #define S_MBSRTOWCS "mbsrtowcs"
  71. #define S_MBSTOWCS "mbstowcs"
  72. #define S_MBTOWC "mbtowc"
  73. #define S_STRCOLL "strcoll"
  74. #define S_STRFMON "strfmon"
  75. #define S_STRXFRM "strxfrm"
  76. #define S_SWSCANF "swscanf"
  77. #define S_TOWCTRANS "towctrans"
  78. #define S_TOWLOWER "towlower"
  79. #define S_TOWUPPER "towupper"
  80. #define S_WCRTOMB "wcrtomb"
  81. #define S_WCSCAT "wcscat"
  82. #define S_WCSCHR "wcschr"
  83. #define S_WCSCMP "wcscmp"
  84. #define S_WCSCOLL "wcscoll"
  85. #define S_WCSCPY "wcscpy"
  86. #define S_WCSCSPN "wcscspn"
  87. #define S_WCSLEN "wcslen"
  88. #define S_WCSNCAT "wcsncat"
  89. #define S_WCSNCMP "wcsncmp"
  90. #define S_WCSNCPY "wcsncpy"
  91. #define S_WCSPBRK "wcspbrk"
  92. #define S_WCSRTOMBS "wcsrtombs"
  93. #define S_WCSSPN "wcsspn"
  94. #define S_WCSSTR "wcsstr"
  95. #define S_WCSTOD "wcstod"
  96. #define S_WCSTOK "wcstok"
  97. #define S_WCSTOMBS "wcstombs"
  98. #define S_WCSWIDTH "wcswidth"
  99. #define S_WCSXFRM "wcsxfrm"
  100. #define S_WCTOB "wctob"
  101. #define S_WCTOMB "wctomb"
  102. #define S_WCTRANS "wctrans"
  103. #define S_WCTYPE "wctype"
  104. #define S_WCWIDTH "wcwidth"
  105. /* Prototypes for test functions. */
  106. extern int tst_iswalnum (FILE *, int);
  107. extern int tst_iswalpha (FILE *, int);
  108. extern int tst_iswcntrl (FILE *, int);
  109. extern int tst_iswctype (FILE *, int);
  110. extern int tst_iswdigit (FILE *, int);
  111. extern int tst_iswgraph (FILE *, int);
  112. extern int tst_iswlower (FILE *, int);
  113. extern int tst_iswprint (FILE *, int);
  114. extern int tst_iswpunct (FILE *, int);
  115. extern int tst_iswspace (FILE *, int);
  116. extern int tst_iswupper (FILE *, int);
  117. extern int tst_iswxdigit (FILE *, int);
  118. extern int tst_mblen (FILE *, int);
  119. extern int tst_mbrlen (FILE *, int);
  120. extern int tst_mbrtowc (FILE *, int);
  121. extern int tst_mbsrtowcs (FILE *, int);
  122. extern int tst_mbstowcs (FILE *, int);
  123. extern int tst_mbtowc (FILE *, int);
  124. extern int tst_strcoll (FILE *, int);
  125. extern int tst_strfmon (FILE *, int);
  126. extern int tst_strxfrm (FILE *, int);
  127. extern int tst_swscanf (FILE *, int);
  128. extern int tst_towctrans (FILE *, int);
  129. extern int tst_towlower (FILE *, int);
  130. extern int tst_towupper (FILE *, int);
  131. extern int tst_wcrtomb (FILE *, int);
  132. extern int tst_wcscat (FILE *, int);
  133. extern int tst_wcschr (FILE *, int);
  134. extern int tst_wcscmp (FILE *, int);
  135. extern int tst_wcscoll (FILE *, int);
  136. extern int tst_wcscpy (FILE *, int);
  137. extern int tst_wcscspn (FILE *, int);
  138. extern int tst_wcslen (FILE *, int);
  139. extern int tst_wcsncat (FILE *, int);
  140. extern int tst_wcsncmp (FILE *, int);
  141. extern int tst_wcsncpy (FILE *, int);
  142. extern int tst_wcspbrk (FILE *, int);
  143. extern int tst_wcsrtombs (FILE *, int);
  144. extern int tst_wcsspn (FILE *, int);
  145. extern int tst_wcsstr (FILE *, int);
  146. extern int tst_wcstod (FILE *, int);
  147. extern int tst_wcstok (FILE *, int);
  148. extern int tst_wcstombs (FILE *, int);
  149. extern int tst_wcswidth (FILE *, int);
  150. extern int tst_wcsxfrm (FILE *, int);
  151. extern int tst_wctob (FILE *, int);
  152. extern int tst_wctomb (FILE *, int);
  153. extern int tst_wctrans (FILE *, int);
  154. extern int tst_wctype (FILE *, int);
  155. extern int tst_wcwidth (FILE *, int);
  156. #endif /* TGN_FUNCDEF_H */