Browse Source

* fvstring replaced with sw_string in the drivers/udrivers unit

git-svn-id: branches/unicodekvm@48594 -
nickysn 4 years ago
parent
commit
cb6a66fed0
3 changed files with 169 additions and 43 deletions
  1. 159 27
      packages/fv/examples/testapp.lpi
  2. 1 1
      packages/fv/fpmake.pp
  3. 9 15
      packages/fv/src/drivers.inc

+ 159 - 27
packages/fv/examples/testapp.lpi

@@ -1,59 +1,191 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <CONFIG>
 <CONFIG>
   <ProjectOptions>
   <ProjectOptions>
+    <Version Value="11"/>
     <PathDelim Value="\"/>
     <PathDelim Value="\"/>
-    <Version Value="5"/>
     <General>
     <General>
       <Flags>
       <Flags>
         <MainUnitHasUsesSectionForAllUnits Value="False"/>
         <MainUnitHasUsesSectionForAllUnits Value="False"/>
         <MainUnitHasCreateFormStatements Value="False"/>
         <MainUnitHasCreateFormStatements Value="False"/>
         <MainUnitHasTitleStatement Value="False"/>
         <MainUnitHasTitleStatement Value="False"/>
+        <LRSInOutputDirectory Value="False"/>
       </Flags>
       </Flags>
       <MainUnit Value="0"/>
       <MainUnit Value="0"/>
-      <IconPath Value="./"/>
-      <TargetFileExt Value=".exe"/>
-      <ActiveEditorIndexAtStart Value="0"/>
     </General>
     </General>
-    <LazDoc Paths=""/>
+    <BuildModes Count="1">
+      <Item1 Name="default" Default="True"/>
+    </BuildModes>
     <PublishOptions>
     <PublishOptions>
       <Version Value="2"/>
       <Version Value="2"/>
-      <IgnoreBinaries Value="False"/>
-      <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
-      <ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
     </PublishOptions>
     </PublishOptions>
     <RunParams>
     <RunParams>
       <local>
       <local>
-        <FormatVersion Value="1"/>
-        <LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
+        <LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
       </local>
       </local>
+      <FormatVersion Value="2"/>
+      <Modes Count="1">
+        <Mode0 Name="default">
+          <local>
+            <LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
+          </local>
+        </Mode0>
+      </Modes>
     </RunParams>
     </RunParams>
-    <Units Count="1">
+    <Units Count="7">
       <Unit0>
       <Unit0>
         <Filename Value="testapp.pas"/>
         <Filename Value="testapp.pas"/>
         <IsPartOfProject Value="True"/>
         <IsPartOfProject Value="True"/>
-        <UnitName Value="testapp"/>
-        <CursorPos X="1" Y="1"/>
-        <TopLine Value="1"/>
-        <EditorIndex Value="0"/>
-        <UsageCount Value="20"/>
-        <Loaded Value="True"/>
+        <EditorIndex Value="-1"/>
+        <TopLine Value="22"/>
+        <CursorPos Y="37"/>
+        <UsageCount Value="21"/>
+        <LoadedDesigner Value="True"/>
       </Unit0>
       </Unit0>
+      <Unit1>
+        <Filename Value="..\src\fvcommon.pas"/>
+        <UnitName Value="FVCommon"/>
+        <EditorIndex Value="2"/>
+        <CursorPos X="11"/>
+        <UsageCount Value="11"/>
+        <Loaded Value="True"/>
+      </Unit1>
+      <Unit2>
+        <Filename Value="..\src\udrivers.pas"/>
+        <UnitName Value="UDrivers"/>
+        <EditorIndex Value="-1"/>
+        <CursorPos X="10" Y="2"/>
+        <UsageCount Value="10"/>
+      </Unit2>
+      <Unit3>
+        <Filename Value="..\src\drivers.inc"/>
+        <IsVisibleTab Value="True"/>
+        <EditorIndex Value="4"/>
+        <TopLine Value="336"/>
+        <CursorPos X="51" Y="363"/>
+        <UsageCount Value="11"/>
+        <Loaded Value="True"/>
+      </Unit3>
+      <Unit4>
+        <Filename Value="..\src\uvalidate.pas"/>
+        <UnitName Value="UValidate"/>
+        <CursorPos X="8" Y="2"/>
+        <UsageCount Value="11"/>
+        <Loaded Value="True"/>
+      </Unit4>
+      <Unit5>
+        <Filename Value="..\src\validate.inc"/>
+        <EditorIndex Value="1"/>
+        <TopLine Value="65"/>
+        <CursorPos X="35" Y="77"/>
+        <UsageCount Value="11"/>
+        <Loaded Value="True"/>
+      </Unit5>
+      <Unit6>
+        <Filename Value="..\src\fvcommon.inc"/>
+        <EditorIndex Value="3"/>
+        <TopLine Value="129"/>
+        <CursorPos X="19" Y="149"/>
+        <UsageCount Value="11"/>
+        <Loaded Value="True"/>
+      </Unit6>
     </Units>
     </Units>
-    <JumpHistory Count="0" HistoryIndex="-1"/>
+    <JumpHistory Count="21" HistoryIndex="20">
+      <Position1>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="339" Column="19" TopLine="312"/>
+      </Position1>
+      <Position2>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="341" Column="18" TopLine="314"/>
+      </Position2>
+      <Position3>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="343" Column="19" TopLine="316"/>
+      </Position3>
+      <Position4>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="261" Column="19" TopLine="245"/>
+      </Position4>
+      <Position5>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="262" TopLine="245"/>
+      </Position5>
+      <Position6>
+        <Filename Value="..\src\drivers.inc"/>
+      </Position6>
+      <Position7>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="262" Column="28" TopLine="235"/>
+      </Position7>
+      <Position8>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="351" TopLine="332"/>
+      </Position8>
+      <Position9>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="361" TopLine="334"/>
+      </Position9>
+      <Position10>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="370" TopLine="343"/>
+      </Position10>
+      <Position11>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="388" Column="47" TopLine="361"/>
+      </Position11>
+      <Position12>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="945" Column="41" TopLine="929"/>
+      </Position12>
+      <Position13>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="970" Column="54" TopLine="957"/>
+      </Position13>
+      <Position14>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="997" Column="55" TopLine="988"/>
+      </Position14>
+      <Position15>
+        <Filename Value="..\src\uvalidate.pas"/>
+        <Caret Line="2" Column="8"/>
+      </Position15>
+      <Position16>
+        <Filename Value="..\src\validate.inc"/>
+        <Caret Line="126" Column="26" TopLine="115"/>
+      </Position16>
+      <Position17>
+        <Filename Value="..\src\validate.inc"/>
+      </Position17>
+      <Position18>
+        <Filename Value="..\src\validate.inc"/>
+        <Caret Line="67" Column="24" TopLine="49"/>
+      </Position18>
+      <Position19>
+        <Filename Value="..\src\validate.inc"/>
+        <Caret Line="77" Column="35" TopLine="65"/>
+      </Position19>
+      <Position20>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="1086" Column="51" TopLine="1075"/>
+      </Position20>
+      <Position21>
+        <Filename Value="..\src\drivers.inc"/>
+        <Caret Line="110" TopLine="83"/>
+      </Position21>
+    </JumpHistory>
   </ProjectOptions>
   </ProjectOptions>
   <CompilerOptions>
   <CompilerOptions>
-    <Version Value="5"/>
+    <Version Value="11"/>
     <PathDelim Value="\"/>
     <PathDelim Value="\"/>
     <SearchPaths>
     <SearchPaths>
       <IncludeFiles Value="..\src"/>
       <IncludeFiles Value="..\src"/>
-      <OtherUnitFiles Value="..\"/>
+      <OtherUnitFiles Value=".."/>
     </SearchPaths>
     </SearchPaths>
-    <CodeGeneration>
-      <Generate Value="Faster"/>
-    </CodeGeneration>
-    <Other>
-      <CompilerPath Value="$(CompPath)"/>
-    </Other>
+    <Parsing>
+      <SyntaxOptions>
+        <UseAnsiStrings Value="False"/>
+      </SyntaxOptions>
+    </Parsing>
   </CompilerOptions>
   </CompilerOptions>
   <Debugging>
   <Debugging>
     <Exceptions Count="2">
     <Exceptions Count="2">

+ 1 - 1
packages/fv/fpmake.pp

@@ -155,7 +155,7 @@ begin
           AddInclude('drivers.inc');
           AddInclude('drivers.inc');
           AddInclude('platform.inc');
           AddInclude('platform.inc');
           AddUnit('sysmsg');
           AddUnit('sysmsg');
-          AddUnit('fvcommon');
+          AddUnit('ufvcommon');
           AddUnit('fvconsts');
           AddUnit('fvconsts');
         end;
         end;
     T:=P.Targets.AddUnit('editors.pas');
     T:=P.Targets.AddUnit('editors.pas');

+ 9 - 15
packages/fv/src/drivers.inc

@@ -108,7 +108,12 @@ USES
 
 
    video,
    video,
    SysMsg,
    SysMsg,
-   FVCommon, Objects;                                 { GFV standard units }
+{$ifdef FV_UNICODE}
+   UFVCommon,
+{$else FV_UNICODE}
+   FVCommon,
+{$endif FV_UNICODE}
+   Objects;                                 { GFV standard units }
 
 
 {***************************************************************************}
 {***************************************************************************}
 {                              PUBLIC CONSTANTS                             }
 {                              PUBLIC CONSTANTS                             }
@@ -253,17 +258,6 @@ CONST
 {                          PUBLIC TYPE DEFINITIONS                          }
 {                          PUBLIC TYPE DEFINITIONS                          }
 {***************************************************************************}
 {***************************************************************************}
 
 
-{---------------------------------------------------------------------------}
-{                          FV STRING TYPE DEFINITION                        }
-{---------------------------------------------------------------------------}
-
-TYPE
-{$ifdef FV_UNICODE}
-   FVString = UnicodeString;
-{$else FV_UNICODE}
-   FVString = string;
-{$endif FV_UNICODE}
-
 { ******************************* REMARK ****************************** }
 { ******************************* REMARK ****************************** }
 {    The TEvent definition is completely compatable with all existing   }
 {    The TEvent definition is completely compatable with all existing   }
 {  code but adds two new fields ID and Data into the message record     }
 {  code but adds two new fields ID and Data into the message record     }
@@ -347,7 +341,7 @@ the screen. For example, given the string '~B~roccoli' as its
 parameter, CStrLen returns 8.
 parameter, CStrLen returns 8.
 25May96 LdB
 25May96 LdB
 ---------------------------------------------------------------------}
 ---------------------------------------------------------------------}
-FUNCTION CStrLen (Const S: FVString): Sw_Integer;
+FUNCTION CStrLen (Const S: Sw_String): Sw_Integer;
 
 
 {-MoveStr------------------------------------------------------------
 {-MoveStr------------------------------------------------------------
 Moves a string into a buffer for use with a view's WriteBuf or WriteLine.
 Moves a string into a buffer for use with a view's WriteBuf or WriteLine.
@@ -357,7 +351,7 @@ in Dest. The high bytes of the Sw_Words are set to Attr, or remain
 unchanged if Attr is zero.
 unchanged if Attr is zero.
 25May96 LdB
 25May96 LdB
 ---------------------------------------------------------------------}
 ---------------------------------------------------------------------}
-PROCEDURE MoveStr (Var Dest; Const Str: FVString; Attr: Byte);
+PROCEDURE MoveStr (Var Dest; Const Str: Sw_String; Attr: Byte);
 
 
 {-MoveCStr-----------------------------------------------------------
 {-MoveCStr-----------------------------------------------------------
 The characters in Str are moved into the low bytes of corresponding
 The characters in Str are moved into the low bytes of corresponding
@@ -366,7 +360,7 @@ Hi(Attr). Tilde characters (~) in the string toggle between the two
 attribute bytes passed in the Attr Sw_Word.
 attribute bytes passed in the Attr Sw_Word.
 25May96 LdB
 25May96 LdB
 ---------------------------------------------------------------------}
 ---------------------------------------------------------------------}
-PROCEDURE MoveCStr (Var Dest; Const Str: FVString; Attrs: Word);
+PROCEDURE MoveCStr (Var Dest; Const Str: Sw_String; Attrs: Word);
 
 
 {-MoveBuf------------------------------------------------------------
 {-MoveBuf------------------------------------------------------------
 Count bytes are moved from Source into the low bytes of corresponding
 Count bytes are moved from Source into the low bytes of corresponding