Browse Source

+ Added switch to swicth on assertions.

michael 25 years ago
parent
commit
34c8f49271
3 changed files with 119 additions and 116 deletions
  1. 93 92
      compiler/errore.msg
  2. 1 0
      compiler/msgidx.inc
  3. 25 24
      compiler/msgtxt.inc

+ 93 - 92
compiler/errore.msg

@@ -1687,98 +1687,99 @@ ol054=*L1P_use pipes instead of creating temporary assembler files
 ol055=**1S<x>_syntax options:
 ol056=**2S2_switch some Delphi 2 extensions on
 ol057=**2Sc_supports operators like C (*=,+=,/= and -=)
-ol058=**2Sd_tries to be Delphi compatible
-ol059=**2Se<x>_compiler stops after the <x> errors (default is 1)
-ol060=**2Sg_allow LABEL and GOTO
-ol061=**2Sh_Use ansistrings
-ol062=**2Si_support C++ styled INLINE
-ol063=**2Sm_support macros like C (global)
-ol064=**2So_tries to be TP/BP 7.0 compatible
-ol065=**2Sp_tries to be gpc compatible
-ol066=**2Ss_constructor name must be init (destructor must be done)
-ol067=**2St_allow static keyword in objects
-ol068=**1s_don't call assembler and linker (only with -a)
-ol069=**1u<x>_undefines the symbol <x>
-ol070=**1U_unit options:
-ol071=**2Un_don't check the unit name
-ol072=**2Us_compile a system unit
-ol073=**1v<x>_Be verbose. <x> is a combination of the following letters:
-ol074=**2*_e : Show errors (default)       d : Show debug info
-ol075=**2*_w : Show warnings               u : Show unit info
-ol076=**2*_n : Show notes                  t : Show tried/used files
-ol077=**2*_h : Show hints                  m : Show defined macros
-ol078=**2*_i : Show general info           p : Show compiled procedures
-ol079=**2*_l : Show linenumbers            c : Show conditionals
-ol080=**2*_a : Show everything             0 : Show nothing (except errors)
-ol081=**2*_b : Show all procedure          r : Rhide/GCC compatibility mode
-ol082=**2*_    declarations if an error    x : Executable info (Win32 only)
-ol083=**2*_    occurs
-ol084=**1X_executable options:
-ol085=*L2Xc_link with the c library
-ol086=**2Xs_strip all symbols from executable
-ol087=**2XD_try to link dynamic          (defines FPC_LINK_DYNAMIC)
-ol088=**2XS_try to link static (default) (defines FPC_LINK_STATIC)
-ol089=**2XX_try to link smart            (defines FPC_LINK_SMART)
-ol090=**0*_Processor specific options:
-ol091=3*1A<x>_output format:
-ol092=3*2Aas_assemble using GNU AS
-ol093=3*2Aasaout_assemble using GNU AS for aout (Go32v1)
-ol094=3*2Anasmcoff_coff (Go32v2) file using Nasm
-ol095=3*2Anasmelf_elf32 (Linux) file using Nasm
-ol096=3*2Anasmobj_obj file using Nasm
-ol097=3*2Amasm_obj file using Masm (Microsoft)
-ol098=3*2Atasm_obj file using Tasm (Borland)
-ol099=3*2Acoff_coff (Go32v2) using internal writer
-ol100=3*2Apecoff_pecoff (Win32) using internal writer
-ol101=3*1R<x>_assembler reading style:
-ol102=3*2Ratt_read AT&T style assembler
-ol103=3*2Rintel_read Intel style assembler
-ol104=3*2Rdirect_copy assembler text directly to assembler file
-ol105=3*1O<x>_optimizations:
-ol106=3*2Og_generate smaller code
-ol107=3*2OG_generate faster code (default)
-ol108=3*2Or_keep certain variables in registers
-ol109=3*2Ou_enable uncertain optimizations (see docs)
-ol110=3*2O1_level 1 optimizations (quick optimizations)
-ol111=3*2O2_level 2 optimizations (-O1 + slower optimizations)
-ol112=3*2O3_level 3 optimizations (same as -O2u)
-ol113=3*2Op<x>_target processor:
-ol114=3*3Op1_set target processor to 386/486
-ol115=3*3Op2_set target processor to Pentium/PentiumMMX (tm)
-ol116=3*3Op3_set target processor to PPro/PII/c6x86/K6 (tm)
-ol117=3*1T<x>_Target operating system:
-ol118=3*2TGO32V1_version 1 of DJ Delorie DOS extender
-ol119=3*2TGO32V2_version 2 of DJ Delorie DOS extender
-ol120=3*2TLINUX_Linux
-ol121=3*2TOS2_OS/2 2.x
-ol122=3*2TWin32_Windows 32 Bit
-ol123=3*1W<x>_Win32 target options
-ol124=3*2WB<x>_Set Image base to Hexadecimal <x> value
-ol125=3*2WC_Specify console type application
-ol126=3*2WD_Use DEFFILE to export functions of DLL or EXE
-ol127=3*2WG_Specify graphic type application
-ol128=3*2WN_Do not generate relocation code (necessary for debugging)
-ol129=3*2WR_Generate relocation code
-ol130=6*1A<x>_output format
-ol131=6*2Aas_Unix o-file using GNU AS
-ol132=6*2Agas_GNU Motorola assembler
-ol133=6*2Amit_MIT Syntax (old GAS)
-ol134=6*2Amot_Standard Motorola assembler
-ol135=6*1O_optimizations:
-ol136=6*2Oa_turn on the optimizer
-ol137=6*2Og_generate smaller code
-ol138=6*2OG_generate faster code (default)
-ol139=6*2Ox_optimize maximum (still BUGGY!!!)
-ol140=6*2O2_set target processor to a MC68020+
-ol141=6*1R<x>_assembler reading style:
-ol142=6*2RMOT_read motorola style assembler
-ol143=6*1T<x>_Target operating system:
-ol144=6*2TAMIGA_Commodore Amiga
-ol145=6*2TATARI_Atari ST/STe/TT
-ol146=6*2TMACOS_Macintosh m68k
-ol147=6*2TLINUX_Linux-68k
-ol148=**1*_
-ol149=**1?_shows this help
+ol058=**2sa_include assertion code.
+ol059=**2Sd_tries to be Delphi compatible
+ol060=**2Se<x>_compiler stops after the <x> errors (default is 1)
+ol061=**2Sg_allow LABEL and GOTO
+ol062=**2Sh_Use ansistrings
+ol063=**2Si_support C++ styled INLINE
+ol064=**2Sm_support macros like C (global)
+ol065=**2So_tries to be TP/BP 7.0 compatible
+ol066=**2Sp_tries to be gpc compatible
+ol067=**2Ss_constructor name must be init (destructor must be done)
+ol068=**2St_allow static keyword in objects
+ol069=**1s_don't call assembler and linker (only with -a)
+ol070=**1u<x>_undefines the symbol <x>
+ol071=**1U_unit options:
+ol072=**2Un_don't check the unit name
+ol073=**2Us_compile a system unit
+ol074=**1v<x>_Be verbose. <x> is a combination of the following letters:
+ol075=**2*_e : Show errors (default)       d : Show debug info
+ol076=**2*_w : Show warnings               u : Show unit info
+ol077=**2*_n : Show notes                  t : Show tried/used files
+ol078=**2*_h : Show hints                  m : Show defined macros
+ol079=**2*_i : Show general info           p : Show compiled procedures
+ol080=**2*_l : Show linenumbers            c : Show conditionals
+ol081=**2*_a : Show everything             0 : Show nothing (except errors)
+ol082=**2*_b : Show all procedure          r : Rhide/GCC compatibility mode
+ol083=**2*_    declarations if an error    x : Executable info (Win32 only)
+ol084=**2*_    occurs
+ol085=**1X_executable options:
+ol086=*L2Xc_link with the c library
+ol087=**2Xs_strip all symbols from executable
+ol088=**2XD_try to link dynamic          (defines FPC_LINK_DYNAMIC)
+ol089=**2XS_try to link static (default) (defines FPC_LINK_STATIC)
+ol090=**2XX_try to link smart            (defines FPC_LINK_SMART)
+ol091=**0*_Processor specific options:
+ol092=3*1A<x>_output format:
+ol093=3*2Aas_assemble using GNU AS
+ol094=3*2Aasaout_assemble using GNU AS for aout (Go32v1)
+ol095=3*2Anasmcoff_coff (Go32v2) file using Nasm
+ol096=3*2Anasmelf_elf32 (Linux) file using Nasm
+ol097=3*2Anasmobj_obj file using Nasm
+ol098=3*2Amasm_obj file using Masm (Microsoft)
+ol099=3*2Atasm_obj file using Tasm (Borland)
+ol100=3*2Acoff_coff (Go32v2) using internal writer
+ol101=3*2Apecoff_pecoff (Win32) using internal writer
+ol102=3*1R<x>_assembler reading style:
+ol103=3*2Ratt_read AT&T style assembler
+ol104=3*2Rintel_read Intel style assembler
+ol105=3*2Rdirect_copy assembler text directly to assembler file
+ol106=3*1O<x>_optimizations:
+ol107=3*2Og_generate smaller code
+ol108=3*2OG_generate faster code (default)
+ol109=3*2Or_keep certain variables in registers
+ol110=3*2Ou_enable uncertain optimizations (see docs)
+ol111=3*2O1_level 1 optimizations (quick optimizations)
+ol112=3*2O2_level 2 optimizations (-O1 + slower optimizations)
+ol113=3*2O3_level 3 optimizations (same as -O2u)
+ol114=3*2Op<x>_target processor:
+ol115=3*3Op1_set target processor to 386/486
+ol116=3*3Op2_set target processor to Pentium/PentiumMMX (tm)
+ol117=3*3Op3_set target processor to PPro/PII/c6x86/K6 (tm)
+ol118=3*1T<x>_Target operating system:
+ol119=3*2TGO32V1_version 1 of DJ Delorie DOS extender
+ol120=3*2TGO32V2_version 2 of DJ Delorie DOS extender
+ol121=3*2TLINUX_Linux
+ol122=3*2TOS2_OS/2 2.x
+ol123=3*2TWin32_Windows 32 Bit
+ol124=3*1W<x>_Win32 target options
+ol125=3*2WB<x>_Set Image base to Hexadecimal <x> value
+ol126=3*2WC_Specify console type application
+ol127=3*2WD_Use DEFFILE to export functions of DLL or EXE
+ol128=3*2WG_Specify graphic type application
+ol129=3*2WN_Do not generate relocation code (necessary for debugging)
+ol130=3*2WR_Generate relocation code
+ol131=6*1A<x>_output format
+ol132=6*2Aas_Unix o-file using GNU AS
+ol133=6*2Agas_GNU Motorola assembler
+ol134=6*2Amit_MIT Syntax (old GAS)
+ol135=6*2Amot_Standard Motorola assembler
+ol136=6*1O_optimizations:
+ol137=6*2Oa_turn on the optimizer
+ol138=6*2Og_generate smaller code
+ol139=6*2OG_generate faster code (default)
+ol140=6*2Ox_optimize maximum (still BUGGY!!!)
+ol141=6*2O2_set target processor to a MC68020+
+ol142=6*1R<x>_assembler reading style:
+ol143=6*2RMOT_read motorola style assembler
+ol144=6*1T<x>_Target operating system:
+ol145=6*2TAMIGA_Commodore Amiga
+ol146=6*2TATARI_Atari ST/STe/TT
+ol147=6*2TMACOS_Macintosh m68k
+ol148=6*2TLINUX_Linux-68k
+ol149=**1*_
+ol150=**1?_shows this help
 ol_end=**1h_shows this help without waiting
 #
 

+ 1 - 0
compiler/msgidx.inc

@@ -676,6 +676,7 @@ type tmsgconst=(
   ol147,
   ol148,
   ol149,
+  ol150,
   ol_end,
 endmsgconst
 );

+ 25 - 24
compiler/msgtxt.inc

@@ -608,93 +608,94 @@ const msgtxt : array[0..000108,1..240] of char=(
   '**1S<x>_syntax',' options:'#000+
   '**2S2_switch some Delphi 2 extensions on'#000+
   '**2Sc_supports operators like C (*=,+=,/= and -=)'#000+
+  '**2sa_include assertion code.'#000+
   '**2Sd_tries to be Delphi compatible'#000+
   '**2Se<x>_compiler stops after the <x> errors (default is 1)'#000+
-  '**2Sg_allow LABEL and GOTO'#000+
-  '**2Sh_Use ansist','rings'#000+
+  '**2Sg_allow L','ABEL and GOTO'#000+
+  '**2Sh_Use ansistrings'#000+
   '**2Si_support C++ styled INLINE'#000+
   '**2Sm_support macros like C (global)'#000+
   '**2So_tries to be TP/BP 7.0 compatible'#000+
   '**2Sp_tries to be gpc compatible'#000+
   '**2Ss_constructor name must be init (destructor must be done)'#000+
-  '**2St_allow static keyword in o','bjects'#000+
+  '*','*2St_allow static keyword in objects'#000+
   '**1s_don'#039't call assembler and linker (only with -a)'#000+
   '**1u<x>_undefines the symbol <x>'#000+
   '**1U_unit options:'#000+
   '**2Un_don'#039't check the unit name'#000+
   '**2Us_compile a system unit'#000+
-  '**1v<x>_Be verbose. <x> is a combination of the following letters:'#000+
-  '**','2*_e : Show errors (default)       d : Show debug info'#000+
+  '**1v<x>_Be verbose. <x> is a combinatio','n of the following letters:'#000+
+  '**2*_e : Show errors (default)       d : Show debug info'#000+
   '**2*_w : Show warnings               u : Show unit info'#000+
   '**2*_n : Show notes                  t : Show tried/used files'#000+
-  '**2*_h : Show hints                  m : Show defined macros'#000+
-  '**2*_','i : Show general info           p : Show compiled procedures'#000+
+  '**2*_h : Show hints                 ',' m : Show defined macros'#000+
+  '**2*_i : Show general info           p : Show compiled procedures'#000+
   '**2*_l : Show linenumbers            c : Show conditionals'#000+
   '**2*_a : Show everything             0 : Show nothing (except errors)'#000+
-  '**2*_b : Show all procedure          r : Rhide/GCC',' compatibility mod'+
+  '**2*_b : Show all pr','ocedure          r : Rhide/GCC compatibility mod'+
   'e'#000+
   '**2*_    declarations if an error    x : Executable info (Win32 only)'#000+
   '**2*_    occurs'#000+
   '**1X_executable options:'#000+
   '*L2Xc_link with the c library'#000+
   '**2Xs_strip all symbols from executable'#000+
-  '**2XD_try to link dynamic          (def','ines FPC_LINK_DYNAMIC)'#000+
+  '**2XD_try',' to link dynamic          (defines FPC_LINK_DYNAMIC)'#000+
   '**2XS_try to link static (default) (defines FPC_LINK_STATIC)'#000+
   '**2XX_try to link smart            (defines FPC_LINK_SMART)'#000+
   '**0*_Processor specific options:'#000+
   '3*1A<x>_output format:'#000+
-  '3*2Aas_assemble using GNU AS'#000+
-  '3*2Aasaout_','assemble using GNU AS for aout (Go32v1)'#000+
+  '3*2Aas_ass','emble using GNU AS'#000+
+  '3*2Aasaout_assemble using GNU AS for aout (Go32v1)'#000+
   '3*2Anasmcoff_coff (Go32v2) file using Nasm'#000+
   '3*2Anasmelf_elf32 (Linux) file using Nasm'#000+
   '3*2Anasmobj_obj file using Nasm'#000+
   '3*2Amasm_obj file using Masm (Microsoft)'#000+
-  '3*2Atasm_obj file using Tasm (Borland)'#000+
-  '3*2','Acoff_coff (Go32v2) using internal writer'#000+
+  '3*2Atasm_obj',' file using Tasm (Borland)'#000+
+  '3*2Acoff_coff (Go32v2) using internal writer'#000+
   '3*2Apecoff_pecoff (Win32) using internal writer'#000+
   '3*1R<x>_assembler reading style:'#000+
   '3*2Ratt_read AT&T style assembler'#000+
   '3*2Rintel_read Intel style assembler'#000+
-  '3*2Rdirect_copy assembler text directly to ass','embler file'#000+
+  '3*2Rdirect_copy ','assembler text directly to assembler file'#000+
   '3*1O<x>_optimizations:'#000+
   '3*2Og_generate smaller code'#000+
   '3*2OG_generate faster code (default)'#000+
   '3*2Or_keep certain variables in registers'#000+
   '3*2Ou_enable uncertain optimizations (see docs)'#000+
-  '3*2O1_level 1 optimizations (quick optimizations)'#000,
+  '3*2O1_level 1 optimi','zations (quick optimizations)'#000+
   '3*2O2_level 2 optimizations (-O1 + slower optimizations)'#000+
   '3*2O3_level 3 optimizations (same as -O2u)'#000+
   '3*2Op<x>_target processor:'#000+
   '3*3Op1_set target processor to 386/486'#000+
-  '3*3Op2_set target processor to Pentium/PentiumMMX (tm)'#000+
-  '3*3Op3_set target p','rocessor to PPro/PII/c6x86/K6 (tm)'#000+
+  '3*3Op2_set target processor to Pentium/Penti','umMMX (tm)'#000+
+  '3*3Op3_set target processor to PPro/PII/c6x86/K6 (tm)'#000+
   '3*1T<x>_Target operating system:'#000+
   '3*2TGO32V1_version 1 of DJ Delorie DOS extender'#000+
   '3*2TGO32V2_version 2 of DJ Delorie DOS extender'#000+
   '3*2TLINUX_Linux'#000+
   '3*2TOS2_OS/2 2.x'#000+
-  '3*2TWin32_Windows 32 Bit'#000+
-  '3*1W<x>_Win32 targ','et options'#000+
+  '3*2TWin32_Win','dows 32 Bit'#000+
+  '3*1W<x>_Win32 target options'#000+
   '3*2WB<x>_Set Image base to Hexadecimal <x> value'#000+
   '3*2WC_Specify console type application'#000+
   '3*2WD_Use DEFFILE to export functions of DLL or EXE'#000+
   '3*2WG_Specify graphic type application'#000+
-  '3*2WN_Do not generate relocation code (necessary f','or debugging)'#000+
+  '3*2WN_Do not generat','e relocation code (necessary for debugging)'#000+
   '3*2WR_Generate relocation code'#000+
   '6*1A<x>_output format'#000+
   '6*2Aas_Unix o-file using GNU AS'#000+
   '6*2Agas_GNU Motorola assembler'#000+
   '6*2Amit_MIT Syntax (old GAS)'#000+
   '6*2Amot_Standard Motorola assembler'#000+
-  '6*1O_optimizations:'#000+
-  '6*2Oa_turn on the optimiz','er'#000+
+  '6*1O_optimizati','ons:'#000+
+  '6*2Oa_turn on the optimizer'#000+
   '6*2Og_generate smaller code'#000+
   '6*2OG_generate faster code (default)'#000+
   '6*2Ox_optimize maximum (still BUGGY!!!)'#000+
   '6*2O2_set target processor to a MC68020+'#000+
   '6*1R<x>_assembler reading style:'#000+
-  '6*2RMOT_read motorola style assembler'#000+
-  '6*1T<x>_Target opera','ting system:'#000+
+  '6*2RMOT_read motorola style ','assembler'#000+
+  '6*1T<x>_Target operating system:'#000+
   '6*2TAMIGA_Commodore Amiga'#000+
   '6*2TATARI_Atari ST/STe/TT'#000+
   '6*2TMACOS_Macintosh m68k'#000+