浏览代码

* DOS unit is ansi-only.

git-svn-id: branches/unicodertl@12188 -
yury 17 年之前
父节点
当前提交
463ff5b75c
共有 4 个文件被更改,包括 9 次插入9 次删除
  1. 1 1
      rtl/inc/dos.inc
  2. 6 6
      rtl/inc/dosh.inc
  3. 1 1
      rtl/inc/fexpand.inc
  4. 1 1
      rtl/win/dos.pp

+ 1 - 1
rtl/inc/dos.inc

@@ -16,7 +16,7 @@
 
 
  **********************************************************************}
  **********************************************************************}
 
 
-procedure DoDirSeparators(var p:RtlString);
+procedure DoDirSeparators(var p:shortstring);
 var
 var
   i : longint;
   i : longint;
 begin
 begin

+ 6 - 6
rtl/inc/dosh.inc

@@ -57,11 +57,11 @@ Const
 
 
 Type
 Type
 { Needed for LFN Support }
 { Needed for LFN Support }
-  ComStr  = RtlString;
-  PathStr = RtlString;
-  DirStr  = RtlString;
-  NameStr = RtlString;
-  ExtStr  = RtlString;
+  ComStr  = String[FileNameLen];
+  PathStr = String[FileNameLen];
+  DirStr  = String[FileNameLen];
+  NameStr = String[FileNameLen];
+  ExtStr  = String[FileNameLen];
 
 
 {
 {
   filerec.inc contains the definition of the filerec.
   filerec.inc contains the definition of the filerec.
@@ -113,7 +113,7 @@ Procedure FindClose(Var f: SearchRec);
 {File}
 {File}
 Procedure GetFAttr(var f; var attr: word);
 Procedure GetFAttr(var f; var attr: word);
 Procedure GetFTime(var f; var time: longint);
 Procedure GetFTime(var f; var time: longint);
-Function  FSearch(path: pathstr; dirlist: RtlString): pathstr;
+Function  FSearch(path: pathstr; dirlist: string): pathstr;
 Function  FExpand(const path: pathstr): pathstr;
 Function  FExpand(const path: pathstr): pathstr;
 Procedure FSplit(path: pathstr; var dir: dirstr; var name: namestr; var ext: extstr);
 Procedure FSplit(path: pathstr; var dir: dirstr; var name: namestr; var ext: extstr);
 function  GetShortName(var p : String) : boolean;
 function  GetShortName(var p : String) : boolean;

+ 1 - 1
rtl/inc/fexpand.inc

@@ -50,7 +50,7 @@
  {$DEFINE FPC_FEXPAND_UPDIR_HELPER}
  {$DEFINE FPC_FEXPAND_UPDIR_HELPER}
 {$ENDIF FPC_FEXPAND_DIRSEP_IS_UPDIR}
 {$ENDIF FPC_FEXPAND_DIRSEP_IS_UPDIR}
 
 
-procedure GetDirIO (DriveNr: byte; var Dir: RtlString);
+procedure GetDirIO (DriveNr: byte; var Dir: PathStr);
 
 
 (* GetDirIO is supposed to return the root of the given drive   *)
 (* GetDirIO is supposed to return the root of the given drive   *)
 (* in case of an error for compatibility of FExpand with TP/BP. *)
 (* in case of an error for compatibility of FExpand with TP/BP. *)

+ 1 - 1
rtl/win/dos.pp

@@ -534,7 +534,7 @@ function GetShortPathName(lpszLongPath:pchar; lpszShortPath:pchar; cchBuffer:DWO
     stdcall; external 'kernel32' name 'GetShortPathNameA';
     stdcall; external 'kernel32' name 'GetShortPathNameA';
 
 
 
 
-Function FSearch(path: pathstr; dirlist: RtlString): pathstr;
+Function FSearch(path: pathstr; dirlist: string): pathstr;
 var
 var
   p1     : longint;
   p1     : longint;
   s      : searchrec;
   s      : searchrec;