Browse Source

- RTL: removed 'unimplementedwidestring' procedure and use 'unimplementedunicodestring' instead. Reduces bloat. Furthermore, a separate message about missing widestring manager is misleading, because there is only one wide/unicodestring manager that can be set.

git-svn-id: trunk@27233 -
sergei 11 years ago
parent
commit
531c2d79e0
1 changed files with 4 additions and 19 deletions
  1. 4 19
      rtl/inc/wstrings.inc

+ 4 - 19
rtl/inc/wstrings.inc

@@ -942,39 +942,24 @@ function UTF8Encode(const s : WideString) : RawByteString;
       end;
       end;
   end;
   end;
 
 
-
-const
-  SNoWidestrings = 'This binary has no widestrings support compiled in.';
-  SRecompileWithWidestrings = 'Recompile the application with a widestrings-manager in the program uses clause.';
-
-procedure unimplementedwidestring;
-  begin
-{$ifdef FPC_HAS_FEATURE_CONSOLEIO}
-    If IsConsole then
-      begin
-      Writeln(StdErr,SNoWidestrings);
-      Writeln(StdErr,SRecompileWithWidestrings);
-      end;
-{$endif FPC_HAS_FEATURE_CONSOLEIO}
-    HandleErrorAddrFrameInd(233,get_pc_addr,get_frame);
-  end;
+procedure unimplementedunicodestring; forward;
 
 
 {$warnings off}
 {$warnings off}
 function GenericWideCase(const s : WideString) : WideString;
 function GenericWideCase(const s : WideString) : WideString;
   begin
   begin
-    unimplementedwidestring;
+    unimplementedunicodestring;
   end;
   end;
 
 
 
 
 function CompareWideString(const s1, s2 : WideString) : PtrInt;
 function CompareWideString(const s1, s2 : WideString) : PtrInt;
   begin
   begin
-    unimplementedwidestring;
+    unimplementedunicodestring;
   end;
   end;
 
 
 
 
 function CompareTextWideString(const s1, s2 : WideString): PtrInt;
 function CompareTextWideString(const s1, s2 : WideString): PtrInt;
   begin
   begin
-    unimplementedwidestring;
+    unimplementedunicodestring;
   end;
   end;
 
 
 {$warnings on}
 {$warnings on}