Browse Source

* fixed and removed some missing HASINLINE directives, needs more work

git-svn-id: trunk@637 -
florian 20 years ago
parent
commit
e686da2026
4 changed files with 15 additions and 20 deletions
  1. 2 4
      rtl/inc/macpas.pp
  2. 4 4
      rtl/inc/sockets.inc
  3. 7 8
      rtl/inc/socketsh.inc
  4. 2 4
      rtl/objpas/sysutils/sysutilh.inc

+ 2 - 4
rtl/inc/macpas.pp

@@ -21,10 +21,8 @@ unit MacPas;
 interface
 interface
 
 
 { Using inlining for small system functions/wrappers }
 { Using inlining for small system functions/wrappers }
-{$ifdef HASINLINE}
-  {$inline on}
-  {$define SYSTEMINLINE}
-{$endif}
+{$inline on}
+{$define SYSTEMINLINE}
 
 
 type
 type
   LongDouble = ValReal;
   LongDouble = ValReal;

+ 4 - 4
rtl/inc/sockets.inc

@@ -172,7 +172,7 @@ end;
 
 
 type thostaddr= packed array[1..4] of byte;
 type thostaddr= packed array[1..4] of byte;
 
 
-function htonl( host : longint):longint; {$ifdef HASINLINE} inline; {$ENDIF}
+function htonl( host : longint):longint; inline; 
 
 
 begin
 begin
 {$ifdef FPC_BIG_ENDIAN}
 {$ifdef FPC_BIG_ENDIAN}
@@ -185,7 +185,7 @@ begin
 {$endif}
 {$endif}
 end;
 end;
 
 
-Function NToHl (Net : Longint) : Longint;  {$ifdef HASINLINE} inline; {$ENDIF}
+Function NToHl (Net : Longint) : Longint; inline;
 
 
 begin
 begin
 {$ifdef FPC_BIG_ENDIAN}
 {$ifdef FPC_BIG_ENDIAN}
@@ -198,7 +198,7 @@ begin
 {$endif}
 {$endif}
 end;
 end;
 
 
-function htons( host : word):word; {$ifdef HASINLINE} inline; {$ENDIF}
+function htons( host : word):word; inline; 
 
 
 begin
 begin
 {$ifdef FPC_BIG_ENDIAN}
 {$ifdef FPC_BIG_ENDIAN}
@@ -208,7 +208,7 @@ begin
 {$endif}
 {$endif}
 end;
 end;
 
 
-Function NToHs (Net : word):word;{$ifdef HASINLINE} inline; {$ENDIF}
+Function NToHs (Net : word):word; inline;
 
 
 begin
 begin
 {$ifdef FPC_BIG_ENDIAN}
 {$ifdef FPC_BIG_ENDIAN}

+ 7 - 8
rtl/inc/socketsh.inc

@@ -12,7 +12,6 @@
  **********************************************************************}
  **********************************************************************}
 
 
 {$INLINE ON}
 {$INLINE ON}
-{$define HASINLINE}
 
 
 Type
 Type
 {$ifdef SOCK_HAS_SINLEN}
 {$ifdef SOCK_HAS_SINLEN}
@@ -91,7 +90,7 @@ Type
           sin_port: cushort;
           sin_port: cushort;
           sin_addr: in_addr;
           sin_addr: in_addr;
           sin_zero: packed array[0..7] of Byte);
           sin_zero: packed array[0..7] of Byte);
-      end; 
+      end;
 
 
   PSockAddr = ^TSockAddr;
   PSockAddr = ^TSockAddr;
   Sockaddr  = TSockAddr;                // Kylix compat
   Sockaddr  = TSockAddr;                // Kylix compat
@@ -143,7 +142,7 @@ Type
   end;
   end;
 
 
   sockaddr_in6 = TInetSockAddr6;
   sockaddr_in6 = TInetSockAddr6;
-  
+
   psockaddr_in6 = ^sockaddr_in6;
   psockaddr_in6 = ^sockaddr_in6;
 
 
   TSockPairArray = Array[0..1] of Longint;
   TSockPairArray = Array[0..1] of Longint;
@@ -201,10 +200,10 @@ Function Connect(Sock:longint;const addr:TInetSockAddr;var SockIn,SockOut:file):
 
 
 
 
 { Utility routines}
 { Utility routines}
-function htonl( host : longint):longint;  {$ifdef HASINLINE} inline; {$endif}
-Function NToHl( Net : Longint) : Longint; {$ifdef HASINLINE} inline; {$endif}
-function htons( host : word):word;        {$ifdef HASINLINE} inline; {$endif}
-Function NToHs( Net : word):word;         {$ifdef HASINLINE} inline; {$endif}
+function htonl( host : longint):longint; inline;
+Function NToHl( Net : Longint) : Longint; inline;
+function htons( host : word):word; inline;
+Function NToHs( Net : word):word; inline;
 
 
 function NetAddrToStr (Entry : in_addr) : AnsiString;
 function NetAddrToStr (Entry : in_addr) : AnsiString;
 function HostAddrToStr(Entry : in_addr) : AnsiString;
 function HostAddrToStr(Entry : in_addr) : AnsiString;
@@ -225,7 +224,7 @@ function StrToHostAddr6(IP   : String) : Tin6_addr;     // not implemented?!?
 function NetAddrToStr6 (Entry: Tin6_addr) : AnsiString;
 function NetAddrToStr6 (Entry: Tin6_addr) : AnsiString;
 function StrToNetAddr6 (IP   : AnsiString) : TIn6_Addr;
 function StrToNetAddr6 (IP   : AnsiString) : TIn6_Addr;
 
 
-CONST 
+CONST
 	NoAddress : in_addr  = (s_addr:0);
 	NoAddress : in_addr  = (s_addr:0);
 	NoNet     : in_addr  = (s_addr:0);
 	NoNet     : in_addr  = (s_addr:0);
  	NoAddress6: Tin6_addr = (u6_addr16:(0,0,0,0,0,0,0,0));
  	NoAddress6: Tin6_addr = (u6_addr16:(0,0,0,0,0,0,0,0));

+ 2 - 4
rtl/objpas/sysutils/sysutilh.inc

@@ -12,10 +12,8 @@
 
 
  **********************************************************************}
  **********************************************************************}
 { Using inlining for small system functions/wrappers }
 { Using inlining for small system functions/wrappers }
-{$ifdef HASINLINE}
-  {$inline on}
-  {$define SYSUTILSINLINE}
-{$endif}
+{$inline on}
+{$define SYSUTILSINLINE}
 
 
   { Read date & Time function declarations }
   { Read date & Time function declarations }
   {$i osutilsh.inc}
   {$i osutilsh.inc}