fnmatch.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // included gtk2.pas
  2. {$IFDEF read_interface_rest}
  3. function __P(protos : longint) : longint;
  4. { We #undef these before defining them because some losing systems
  5. (HP-UX A.08.07 for example) define these in <unistd.h>. }
  6. {$undef FNM_PATHNAME}
  7. {$undef FNM_NOESCAPE}
  8. {$undef FNM_PERIOD}
  9. { Bits set in the FLAGS argument to `fnmatch'. }
  10. { No wildcard can ever match `/'. }
  11. const
  12. FNM_PATHNAME = 1 shl 0;
  13. { Backslashes don't quote special chars. }
  14. FNM_NOESCAPE = 1 shl 1;
  15. { Leading `.' is matched only explicitly. }
  16. FNM_PERIOD = 1 shl 2;
  17. { Preferred GNU name. }
  18. const
  19. FNM_FILE_NAME = FNM_PATHNAME;
  20. { Ignore `/...' after a match. }
  21. FNM_LEADING_DIR = 1 shl 3;
  22. { Compare without regard to case. }
  23. FNM_CASEFOLD = 1 shl 4;
  24. { Value returned by `fnmatch' if STRING does not match PATTERN. }
  25. const
  26. FNM_NOMATCH = 1;
  27. { Match STRING against the filename pattern PATTERN,
  28. returning zero if it matches, FNM_NOMATCH if not. }
  29. function fnmatch(__pattern: char; __string: char;
  30. __flags: gint): gint; cdecl; external gtklib;
  31. {$ENDIF read_interface_rest}
  32. //------------------------------------------------------------------------------
  33. {$IFDEF read_implementation}
  34. function __P(protos : longint) : longint;
  35. begin
  36. __P:=protos;
  37. end;
  38. {$ENDIF read_implementation}
  39. // included gtk2.pas