Browse Source

* Char -> AnsiChar

Michael VAN CANNEYT 2 years ago
parent
commit
7cba4bffa1

+ 2 - 2
rtl/symbian/dos.pp

@@ -93,7 +93,7 @@ procedure DeleteExtIO ();
 begin
 begin
 end;
 end;
 
 
-function Createport(name : PChar; pri : longint): integer;
+function Createport(name : PAnsiChar; pri : longint): integer;
 begin
 begin
   result := -1;
   result := -1;
 end;
 end;
@@ -256,7 +256,7 @@ procedure AddDevice(str : String);
 begin
 begin
 end;
 end;
 
 
-function MakeDeviceName(str : pchar): string;
+function MakeDeviceName(str : PAnsiChar): string;
 begin
 begin
   result := '';
   result := '';
 end;
 end;

+ 1 - 1
rtl/symbian/symbian.pas

@@ -31,7 +31,7 @@ uses ctypes;
 
 
 { User class }
 { User class }
 
 
-function User_InfoPrint(aString: PChar): TInt; cdecl; external;
+function User_InfoPrint(aString: PAnsiChar): TInt; cdecl; external;
 
 
 implementation
 implementation
 
 

+ 5 - 5
rtl/symbian/symbianinc/e32def.inc

@@ -516,7 +516,7 @@ type TInt8 = Byte;
 8-bit unsigned integer type; used in Symbian OS to mean an 8-bit
 8-bit unsigned integer type; used in Symbian OS to mean an 8-bit
 unsigned integer, independent of the implementation.
 unsigned integer, independent of the implementation.
 }
 }
-type TUint8 = Char;
+type TUint8 = AnsiChar;
 
 
 
 
 
 
@@ -690,7 +690,7 @@ their limited precision is acceptable.
 
 
 8-bit unsigned character.
 8-bit unsigned character.
 
 
-Use instead of C++ built-in char type because it is guaranteed to be unsigned.
+Use instead of C++ built-in AnsiChar type because it is guaranteed to be unsigned.
 Use instead of TInt8 where the application is really for text rather than
 Use instead of TInt8 where the application is really for text rather than
 8-bit arithmetic or binary quantities.
 8-bit arithmetic or binary quantities.
 
 
@@ -700,7 +700,7 @@ variant is being built. Use TText8 only when you are dealing explicitly with
 8-bit text, regardless of build.
 8-bit text, regardless of build.
 
 
 @see TText }
 @see TText }
-type TText8 = Char;
+type TText8 = AnsiChar;
 
 
 
 
 
 
@@ -2748,7 +2748,7 @@ Asserts that a condition is true at compilation time.
 {
 {
 @internalComponent
 @internalComponent
 }
 }
-//static const char* const KSuppressPlatSecDiagnosticMagicValue = (const char*)1;
+//static const AnsiChar* const KSuppressPlatSecDiagnosticMagicValue = (const AnsiChar*)1;
 
 
 //#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
 //#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
 {
 {
@@ -2811,7 +2811,7 @@ argument, these APIs will not emit any form of diagnostic message.
 @publishedPartner
 @publishedPartner
 @released
 @released
 }
 }
-//static const char* const KSuppressPlatSecDiagnostic = KSuppressPlatSecDiagnosticMagicValue;
+//static const AnsiChar* const KSuppressPlatSecDiagnostic = KSuppressPlatSecDiagnosticMagicValue;
 
 
 //#else /* __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__ }
 //#else /* __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__ }
 
 

+ 1 - 1
rtl/symbian/symbianinc/e32std.inc

@@ -4,5 +4,5 @@
 
 
 { User class }
 { User class }
 
 
-function User_InfoPrint(aString: PChar): TInt; cdecl; external;
+function User_InfoPrint(aString: PAnsiChar): TInt; cdecl; external;
 
 

+ 3 - 3
rtl/symbian/sysfile.inc

@@ -31,13 +31,13 @@ begin
 end;
 end;
 
 
 
 
-procedure do_erase(p : pchar; pchangeable: boolean);
+procedure do_erase(p : PAnsiChar; pchangeable: boolean);
 begin
 begin
 
 
 end;
 end;
 
 
 
 
-procedure do_rename(p1,p2 : pchar; p1changeable, p2changeable: boolean);
+procedure do_rename(p1,p2 : PAnsiChar; p1changeable, p2changeable: boolean);
 begin
 begin
 
 
 end;
 end;
@@ -85,7 +85,7 @@ begin
 end;
 end;
 
 
 
 
-procedure do_open(var f;p:pchar;flags:longint; pchangeable: boolean);
+procedure do_open(var f;p:PAnsiChar;flags:longint; pchangeable: boolean);
 begin
 begin
 
 
 end;
 end;

+ 5 - 5
rtl/symbian/system.pp

@@ -35,8 +35,8 @@ const
   DriveSeparator = ':';
   DriveSeparator = ':';
   ExtensionSeparator = '.';
   ExtensionSeparator = '.';
   PathSeparator = ';';
   PathSeparator = ';';
-  AllowDirectorySeparators : set of char = ['\','/'];
-  AllowDriveSeparators : set of char = [':'];
+  AllowDirectorySeparators : set of AnsiChar = ['\','/'];
+  AllowDriveSeparators : set of AnsiChar = [':'];
   { FileNameCaseSensitive and FileNameCasePreserving are defined separately below }
   { FileNameCaseSensitive and FileNameCasePreserving are defined separately below }
   maxExitCode = 65535;
   maxExitCode = 65535;
   MaxPathLen = 260;
   MaxPathLen = 260;
@@ -90,7 +90,7 @@ type
 var
 var
 { C compatible arguments }
 { C compatible arguments }
   argc : longint;
   argc : longint;
-  argv : ppchar;
+  argv : PPAnsiChar;
 { Win32 Info }
 { Win32 Info }
   startupinfo : tstartupinfo;
   startupinfo : tstartupinfo;
   hprevinst,
   hprevinst,
@@ -125,9 +125,9 @@ const KErrNone=0;
 *****************************************************************************}
 *****************************************************************************}
 
 
 var
 var
-  ModuleName : array[0..255] of char;
+  ModuleName : array[0..255] of AnsiChar;
 
 
-function GetCommandFile:pchar;
+function GetCommandFile:PAnsiChar;
 begin
 begin
 
 
 end;
 end;

+ 1 - 1
rtl/symbian/uiqclasses.pas

@@ -31,7 +31,7 @@ uses ctypes;
 
 
 { User class }
 { User class }
 
 
-function User_InfoPrint(aString: PChar): TInt; cdecl; external;
+function User_InfoPrint(aString: PAnsiChar): TInt; cdecl; external;
 
 
 implementation
 implementation
 
 

+ 1 - 1
rtl/symbian/uiqinc/qikapplication.inc

@@ -31,7 +31,7 @@ uses ctypes;
 
 
 { User class }
 { User class }
 
 
-function User_InfoPrint(aString: PChar): TInt; cdecl; external;
+function User_InfoPrint(aString: PAnsiChar): TInt; cdecl; external;
 
 
 implementation
 implementation
 
 

+ 1 - 1
rtl/symbian/uiqinc/qikapplicationoo.inc

@@ -31,7 +31,7 @@ uses ctypes;
 
 
 { User class }
 { User class }
 
 
-function User_InfoPrint(aString: PChar): TInt; cdecl; external;
+function User_InfoPrint(aString: PAnsiChar): TInt; cdecl; external;
 
 
 implementation
 implementation