mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	New .inc Pascal sample
This commit is contained in:
		
							
								
								
									
										56
									
								
								samples/Pascal/libc.inc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								samples/Pascal/libc.inc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| { | ||||
|     This file is part of the Free Component Library (FCL) | ||||
|     Copyright (c) 1999-2002 by the Free Pascal development team | ||||
|  | ||||
|     BIOS functions unit for Nintendo DS | ||||
|     Copyright (c) 2006 by Francesco Lombardi | ||||
|  | ||||
|     See the file COPYING.FPC, included in this distribution, | ||||
|     for details about the copyright. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||||
|  | ||||
|  *****************************************************************************} | ||||
|  | ||||
| function __errno: plongint;  cdecl; export; | ||||
| begin | ||||
|  | ||||
| end; | ||||
|  | ||||
|  | ||||
| function S_ISBLK(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFBLK; | ||||
| end; | ||||
|  | ||||
| function S_ISCHR(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFCHR; | ||||
| end; | ||||
|  | ||||
| function S_ISDIR(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFDIR; | ||||
| end; | ||||
|  | ||||
| function S_ISFIFO(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFIFO; | ||||
| end; | ||||
|  | ||||
| function S_ISREG(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFREG; | ||||
| end; | ||||
|  | ||||
| function S_ISLNK(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFLNK; | ||||
| end; | ||||
|  | ||||
| function S_ISSOCK(m: longint): boolean; inline; | ||||
| begin | ||||
|   result := (m and _IFMT) = _IFSOCK; | ||||
| end; | ||||
		Reference in New Issue
	
	Block a user