mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 15:39:24 +01:00 
			
		
		
		
	* added csize_t and pcsize_t for non unix systems (in unix/ctypes.pp)
* added csize_t = UnixTypes.size_t in ctypes.pp for unix systems. * reason: size_t is a C type and it's often used by C header files. Several packages define their own size_t. git-svn-id: trunk@12602 -
This commit is contained in:
		
							parent
							
								
									ee3ac64afb
								
							
						
					
					
						commit
						38bf32dddf
					
				@ -72,14 +72,13 @@ type
 | 
				
			|||||||
  culong                 = cardinal;           pculong                = ^culong;
 | 
					  culong                 = cardinal;           pculong                = ^culong;
 | 
				
			||||||
{$endif}
 | 
					{$endif}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  csize_t                = ptruint;            pcsize_t               = pptruint;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Kylix compat types
 | 
					// Kylix compat types
 | 
				
			||||||
  u_long  = culong;
 | 
					  u_long  = culong;
 | 
				
			||||||
  u_short = cushort;
 | 
					  u_short = cushort;
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  coff_t = clong;
 | 
					  coff_t = clong;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
{$ifndef FPUNONE}
 | 
					{$ifndef FPUNONE}
 | 
				
			||||||
  cfloat                 = single;             pcfloat                = ^cfloat;
 | 
					  cfloat                 = single;             pcfloat                = ^cfloat;
 | 
				
			||||||
  cdouble                = double;             pcdouble               = ^cdouble;
 | 
					  cdouble                = double;             pcdouble               = ^cdouble;
 | 
				
			||||||
 | 
				
			|||||||
@ -54,5 +54,7 @@ type
 | 
				
			|||||||
//  clongdouble            = UnixType.clongdouble; pclongdouble           = UnixType.pclongdouble;
 | 
					//  clongdouble            = UnixType.clongdouble; pclongdouble           = UnixType.pclongdouble;
 | 
				
			||||||
{$endif}
 | 
					{$endif}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  csize_t                = UnixType.size_t;      pcsize_t               = UnixType.psize_t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  coff_t                 = UnixType.TOff;
 | 
					  coff_t                 = UnixType.TOff;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -65,3 +65,5 @@ type
 | 
				
			|||||||
  clongdouble            = extended;           pclongdouble           = ^clongdouble;
 | 
					  clongdouble            = extended;           pclongdouble           = ^clongdouble;
 | 
				
			||||||
{$endif}
 | 
					{$endif}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// csize_t is defined in the operatingsystem dependant ptypes.inc
 | 
				
			||||||
 | 
					// csize_t               = ptruint;            pcsize_t               = pptruint;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user