gdki18n.inc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. { Pointers to basic pascal types, inserted by h2pas conversion program.}
  2. Type
  3. PLongint = ^Longint;
  4. PSmallInt = ^SmallInt;
  5. PByte = ^Byte;
  6. PWord = ^Word;
  7. PDWord = ^DWord;
  8. PDouble = ^Double;
  9. {$PACKRECORDS C}
  10. { GDK - The GIMP Drawing Kit
  11. Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  12. This library is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU Lesser General Public
  14. License as published by the Free Software Foundation; either
  15. version 2 of the License, or (at your option) any later version.
  16. This library is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. Lesser General Public License for more details.
  20. You should have received a copy of the GNU Lesser General Public
  21. License along with this library; if not, write to the
  22. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  23. Boston, MA 02110-1301, USA.
  24. }
  25. {
  26. Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  27. file for a list of people on the GTK+ Team. See the ChangeLog
  28. files for a list of changes. These files are distributed with
  29. GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  30. }
  31. {$ifndef __GDK_I18N_H__}
  32. {$define __GDK_I18N_H__}
  33. {$ifndef GDK_DISABLE_DEPRECATED}
  34. { GDK uses "glib". (And so does GTK).
  35. }
  36. {$include <gdkconfig.inc}
  37. { international string support }
  38. {$include <stdlib.inc}
  39. {$if !defined(GDK_HAVE_BROKEN_WCTYPE) && (defined(GDK_HAVE_WCTYPE_H) || defined(GDK_HAVE_WCHAR_H)) && !defined(X_LOCALE)}
  40. {$ifdef GDK_HAVE_WCTYPE_H}
  41. {$include <wctype.inc}
  42. {$else}
  43. {$ifdef GDK_HAVE_WCHAR_H}
  44. {$include <wchar.inc}
  45. {$endif}
  46. {$endif}
  47. { was #define dname(params) para_def_expr }
  48. { argument types are unknown }
  49. { return type might be wrong }
  50. function gdk_iswalnum(c : longint) : longint;
  51. { was #define dname(params) para_def_expr }
  52. { argument types are unknown }
  53. { return type might be wrong }
  54. function gdk_iswspace(c : longint) : longint;
  55. {$else}
  56. {$include <ctype.inc}
  57. { was #define dname(params) para_def_expr }
  58. { argument types are unknown }
  59. { return type might be wrong }
  60. function gdk_iswalnum(c : longint) : longint;
  61. { was #define dname(params) para_def_expr }
  62. { argument types are unknown }
  63. { return type might be wrong }
  64. function gdk_iswspace(c : longint) : longint;
  65. {$endif}
  66. {$endif}
  67. { GDK_DISABLE_DEPRECATED }
  68. {$endif}
  69. { __GDK_I18N_H__ }
  70. { was #define dname(params) para_def_expr }
  71. { argument types are unknown }
  72. { return type might be wrong }
  73. function gdk_iswalnum(c : longint) : longint;
  74. begin
  75. gdk_iswalnum:=iswalnum(c);
  76. end;
  77. { was #define dname(params) para_def_expr }
  78. { argument types are unknown }
  79. { return type might be wrong }
  80. function gdk_iswspace(c : longint) : longint;
  81. begin
  82. gdk_iswspace:=iswspace(c);
  83. end;
  84. { was #define dname(params) para_def_expr }
  85. { argument types are unknown }
  86. { return type might be wrong }
  87. function gdk_iswalnum(c : longint) : longint;
  88. begin
  89. gdk_iswalnum:=(Twchar_t(c)) <= ($FF and (@(isalnum(c))));
  90. end;
  91. { was #define dname(params) para_def_expr }
  92. { argument types are unknown }
  93. { return type might be wrong }
  94. function gdk_iswspace(c : longint) : longint;
  95. begin
  96. gdk_iswspace:=(Twchar_t(c)) <= ($FF and (@(isspace(c))));
  97. end;