Browse Source

* small cleanup of commented code (merged)

peter 24 years ago
parent
commit
13db04fb8b
2 changed files with 9 additions and 60 deletions
  1. 4 58
      rtl/inc/generic.inc
  2. 5 2
      rtl/inc/readme

+ 4 - 58
rtl/inc/generic.inc

@@ -423,67 +423,10 @@ end;
 
 
 {$ifndef FPC_SYSTEM_HAS_FPC_NEW_CLASS}
 {$ifndef FPC_SYSTEM_HAS_FPC_NEW_CLASS}
 {$error No pascal version of Int_new_class}
 {$error No pascal version of Int_new_class}
-(* procedure int_new_class;assembler;saveregisters;[public,alias:'FPC_NEW_CLASS'];
-asm
-        { to be sure in the future, we save also edit }
-        pushl   %edi
-        { create class ? }
-        movl    8(%ebp),%edi
-        orl     %edi,%edi
-        jz      .LNEW_CLASS1
-        { save registers !! }
-        pushl   %ebx
-        pushl   %ecx
-        pushl   %edx
-        { esi contains the vmt }
-        pushl   %esi
-        { call newinstance (class method!) }
-        call    *16(%esi)
-        popl    %edx
-        popl    %ecx
-        popl    %ebx
-        { newinstance returns a pointer to the new created }
-        { instance in eax                                  }
-        { load esi and insert self                         }
-        movl    %eax,%esi
-.LNEW_CLASS1:
-        movl    %esi,8(%ebp)
-        orl     %eax,%eax
-        popl   %edi
-end; *)
-
 {$endif ndef FPC_SYSTEM_HAS_FPC_NEW_CLASS}
 {$endif ndef FPC_SYSTEM_HAS_FPC_NEW_CLASS}
 
 
 {$ifndef FPC_SYSTEM_HAS_FPC_DISPOSE_CLASS}
 {$ifndef FPC_SYSTEM_HAS_FPC_DISPOSE_CLASS}
-
 {$error No pascal version of Int_dispose_class}
 {$error No pascal version of Int_dispose_class}
-(* procedure int_dispose_class;assembler;saveregisters;[public,alias:'FPC_DISPOSE_CLASS'];
-asm
-        { to be sure in the future, we save also edit }
-        pushl   %edi
-        { destroy class ? }
-        movl    12(%ebp),%edi
-        orl     %edi,%edi
-        jz      .LDISPOSE_CLASS1
-        { no inherited call }
-        movl    (%esi),%edi
-        { save registers !! }
-        pushl   %eax
-        pushl   %ebx
-        pushl   %ecx
-        pushl   %edx
-        { push self }
-        pushl   %esi
-        { call freeinstance }
-        call    *20(%edi)
-        popl    %edx
-        popl    %ecx
-        popl    %ebx
-        popl    %eax
-.LDISPOSE_CLASS1:
-        popl   %edi
-end; *)
-
 {$endif ndef FPC_SYSTEM_HAS_FPC_DISPOSE_CLASS}
 {$endif ndef FPC_SYSTEM_HAS_FPC_DISPOSE_CLASS}
 
 
 {$ifndef FPC_SYSTEM_HAS_FPC_CHECK_OBJECT}
 {$ifndef FPC_SYSTEM_HAS_FPC_CHECK_OBJECT}
@@ -883,7 +826,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.15  2001-07-29 13:49:15  peter
+  Revision 1.16  2001-07-31 19:36:51  peter
+    * small cleanup of commented code (merged)
+
+  Revision 1.15  2001/07/29 13:49:15  peter
     * m68k updates merged
     * m68k updates merged
 
 
   Revision 1.14  2001/07/08 21:00:18  peter
   Revision 1.14  2001/07/08 21:00:18  peter

+ 5 - 2
rtl/inc/readme

@@ -1,4 +1,4 @@
-This directory contains only RTL parts independent 
+This directory contains only RTL parts independent
 of the processor and of the operating system.
 of the processor and of the operating system.
 
 
 The include files contain the following:
 The include files contain the following:
@@ -12,7 +12,7 @@ heaph.inc       Declarations of Heap functions.
 innr.inc        Internal function delcarations.
 innr.inc        Internal function delcarations.
 int64.inc       Support for 64-bit integer arithmetic.
 int64.inc       Support for 64-bit integer arithmetic.
 lstrings.pp     LongStrings routine implementation.
 lstrings.pp     LongStrings routine implementation.
-mathh.inc       Declarations of mathematical functions. 
+mathh.inc       Declarations of mathematical functions.
 real2str.inc    Routine to convert floating point numbers to strings.
 real2str.inc    Routine to convert floating point numbers to strings.
 rtti.inc        Delphi like runtime type information
 rtti.inc        Delphi like runtime type information
 sstrings.inc    ShortStrings (TP/BP pascal like strings) implementation.
 sstrings.inc    ShortStrings (TP/BP pascal like strings) implementation.
@@ -23,6 +23,9 @@ textrec.inc     Definition of Textrec record.
 typefile.inc    Text file record definition.
 typefile.inc    Text file record definition.
 generic.inc     Processor independant implementation of assembler procs on i386
 generic.inc     Processor independant implementation of assembler procs on i386
                 (to allow easy porting to new processors).
                 (to allow easy porting to new processors).
+genset.inc      Processor independant implementation of set handling
+genmath.inc     Processor independant implementation of mathematical routines
+genrrti.inc     Processor independant implementation of runtime type information routines
 
 
 The unit files are:
 The unit files are: