Commit Graph

16 Commits

Author SHA1 Message Date
Pierre Muller
e16364b567 Adapt sources to FPC_DOTTEDUNITS 2023-08-09 00:33:15 +02:00
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
a17efde2a3 * Char -> AnsiChar 2023-07-14 17:26:10 +02:00
Tomas Hajny
1e6ee7f3c7 * fix remaining search handle leaks in Dos.FSearch - fix for bug #30896
git-svn-id: trunk@34910 -
2016-11-17 22:05:17 +00:00
Tomas Hajny
b7de70422f * fix for bug #24504 (extended version of patch by Bart Broersma)
git-svn-id: trunk@34849 -
2016-11-08 22:16:49 +00:00
Jonas Maebe
df6a2dce00 + unicodestring support for assign/erase/rename
+ codepage support for textrec/filerec and the above routines
  * textrec/filerec now store the filename by default using widechar. It is
    possible to switch back to ansichars using the FPC_ANSI_TEXTFILEREC define.
    In that case, from now on the filename will always be stored in
    DefaultFileSystemEncoding
  * fixed potential buffer overflows and non-null-terminated file names in
    textrec/filerec
  + dodirseparators(pwidechar), changed the dodirseparators(pchar/pwidechar)
    parameters into var-parameters and gave those routines an extra parameter
    that indicates whether the p(wide)char can be changed in place if
    necessary or whether a copy must be made first (avoids us having to make
    all strings always unique everywhere, because they might be changed on
    some platforms via a pchar)
  * do_open/do_erase/do_rename got extra boolean parameters indicating whether
    the passed pchars point to data that can be freely changed (to pass on to
    dodirseparators() if applicable)
  * objects.pp: force assign(pchar) to be called, because
    assign(array[0..255]) cannot choose between pchar and rawbytestring
    versions (and removing the pchar version means that assign(pchar) will
    be mapped to assign(shortstring) in {$h-})
  * fixed up some routines in other units that depend on the format of
    the textrec/filerec.name field

git-svn-id: branches/cpstrrtl@25137 -
2013-07-19 16:30:51 +00:00
Jonas Maebe
d676bbf9af * the filerec.name field is 0-based, not 1-based -> to check for an empty
file name, check character 0

git-svn-id: branches/cpstrrtl@25136 -
2013-07-19 16:29:59 +00:00
yury
62e616cae0 * Fixed warnings. rtl is warnings and notes free for wince and win32 again.
git-svn-id: trunk@10632 -
2008-04-12 13:34:26 +00:00
yury
617b59e1c0 * Fixed 3 warnings and 1 note.
git-svn-id: trunk@10135 -
2008-02-01 17:42:41 +00:00
peter
f4f3ae84d0 * AllowDirectorySeparators and AllowDriveSeparators typed constants
added to allow customization of path and directory parsing in the rtl
  * Use the new sets instead of the hardcoded / and \

git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
peter
627cf69ae3 * svn props
git-svn-id: trunk@8468 -
2007-09-14 07:19:48 +00:00
Marc Weustink
3232e59810 * fixed compilation on CE
- removed declaration of WCHAR since it is defined in systemh

git-svn-id: trunk@5135 -
2006-10-31 22:46:09 +00:00
yury
2ee656c1ad * fixed findfirst,getfattr,setfattr.
git-svn-id: trunk@4109 -
2006-07-06 19:03:24 +00:00
yury
3239011837 * DOS<->Win filetime conversion was fixed.
* FileExists fix from Win32 was applied.

git-svn-id: trunk@1405 -
2005-10-16 10:28:10 +00:00
yury
9bccd2a725 + Added SysUtils, Classes, Messages units for WinCE.
+ More units are built for WinCE.

git-svn-id: trunk@1037 -
2005-09-02 12:03:22 +00:00
yury
b38ba1640f + dos unit was added to wince port.
git-svn-id: trunk@968 -
2005-08-28 23:31:39 +00:00