Explorar el Código

* made records not packed to fix bus errors.

git-svn-id: trunk@7966 -
yury hace 18 años
padre
commit
826ba045f1
Se han modificado 2 ficheros con 15 adiciones y 15 borrados
  1. 2 2
      rtl/wince/winsock.pp
  2. 13 13
      rtl/wince/winsock2.pp

+ 2 - 2
rtl/wince/winsock.pp

@@ -301,11 +301,11 @@ unit winsock;
        IMPLINK_HIGHEXPER = 158;
        IMPLINK_HIGHEXPER = 158;
 
 
     type
     type
-       SunB = packed record
+       SunB = record
           s_b1,s_b2,s_b3,s_b4 : u_char;
           s_b1,s_b2,s_b3,s_b4 : u_char;
        end;
        end;
 
 
-       SunW = packed record
+       SunW = record
          s_w1,s_w2 : u_short;
          s_w1,s_w2 : u_short;
        end;
        end;
 
 

+ 13 - 13
rtl/wince/winsock2.pp

@@ -58,13 +58,13 @@ const
 
 
 type
 type
   PFDSet = ^TFDSet;
   PFDSet = ^TFDSet;
-  TFDSet = packed record
+  TFDSet = record
     fd_count: u_int;
     fd_count: u_int;
     fd_array: array[0..FD_SETSIZE-1] of TSocket;
     fd_array: array[0..FD_SETSIZE-1] of TSocket;
   end;
   end;
 
 
   PTimeVal = ^TTimeVal;
   PTimeVal = ^TTimeVal;
-  TTimeVal = packed record
+  TTimeVal = record
     tv_sec: Longint;
     tv_sec: Longint;
     tv_usec: Longint;
     tv_usec: Longint;
   end;
   end;
@@ -88,7 +88,7 @@ const
 
 
 type
 type
   PHostEnt = ^THostEnt;
   PHostEnt = ^THostEnt;
-  THostEnt = packed record
+  THostEnt = record
     h_name: PChar;
     h_name: PChar;
     h_aliases: ^PChar;
     h_aliases: ^PChar;
     h_addrtype: Smallint;
     h_addrtype: Smallint;
@@ -99,7 +99,7 @@ type
   end;
   end;
 
 
   PNetEnt = ^TNetEnt;
   PNetEnt = ^TNetEnt;
-  TNetEnt = packed record
+  TNetEnt = record
     n_name: PChar;
     n_name: PChar;
     n_aliases: ^PChar;
     n_aliases: ^PChar;
     n_addrtype: Smallint;
     n_addrtype: Smallint;
@@ -107,7 +107,7 @@ type
   end;
   end;
 
 
   PServEnt = ^TServEnt;
   PServEnt = ^TServEnt;
-  TServEnt = packed record
+  TServEnt = record
     s_name: PChar;
     s_name: PChar;
     s_aliases: ^PChar;
     s_aliases: ^PChar;
     s_port: Smallint;
     s_port: Smallint;
@@ -115,7 +115,7 @@ type
   end;
   end;
 
 
   PProtoEnt = ^TProtoEnt;
   PProtoEnt = ^TProtoEnt;
-  TProtoEnt = packed record
+  TProtoEnt = record
     p_name: PChar;
     p_name: PChar;
     p_aliases: ^Pchar;
     p_aliases: ^Pchar;
     p_proto: Smallint;
     p_proto: Smallint;
@@ -354,16 +354,16 @@ const
 
 
 type
 type
 
 
-  SunB = packed record
+  SunB = record
     s_b1, s_b2, s_b3, s_b4: u_char;
     s_b1, s_b2, s_b3, s_b4: u_char;
   end;
   end;
 
 
-  SunW = packed record
+  SunW = record
     s_w1, s_w2: u_short;
     s_w1, s_w2: u_short;
   end;
   end;
 
 
   PInAddr = ^TInAddr;
   PInAddr = ^TInAddr;
-  TInAddr = packed record
+  TInAddr = record
     case integer of
     case integer of
       0: (S_un_b: SunB);
       0: (S_un_b: SunB);
       1: (S_un_w: SunW);
       1: (S_un_w: SunW);
@@ -371,7 +371,7 @@ type
   end;
   end;
 
 
   PSockAddrIn = ^TSockAddrIn;
   PSockAddrIn = ^TSockAddrIn;
-  TSockAddrIn = packed record
+  TSockAddrIn = record
     case Integer of
     case Integer of
       0: (sin_family: u_short;
       0: (sin_family: u_short;
           sin_port: u_short;
           sin_port: u_short;
@@ -388,14 +388,14 @@ type
 
 
   { Structure used by kernel to pass protocol information in raw sockets. }
   { Structure used by kernel to pass protocol information in raw sockets. }
   PSockProto = ^TSockProto;
   PSockProto = ^TSockProto;
-  TSockProto = packed record
+  TSockProto = record
     sp_family: u_short;
     sp_family: u_short;
     sp_protocol: u_short;
     sp_protocol: u_short;
   end;
   end;
 
 
 { Structure used for manipulating linger option. }
 { Structure used for manipulating linger option. }
   PLinger = ^TLinger;
   PLinger = ^TLinger;
-  TLinger = packed record
+  TLinger = record
     l_onoff: u_short;
     l_onoff: u_short;
     l_linger: u_short;
     l_linger: u_short;
   end;
   end;
@@ -613,7 +613,7 @@ const
 
 
 type
 type
   PWSAData = ^TWSAData;
   PWSAData = ^TWSAData;
-  TWSAData = packed record
+  TWSAData = record
     wVersion: Word;
     wVersion: Word;
     wHighVersion: Word;
     wHighVersion: Word;
     szDescription: array[0..WSADESCRIPTION_LEN] of Char;
     szDescription: array[0..WSADESCRIPTION_LEN] of Char;