Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7713276
libsystem_find.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
3 KB
Referenced Files
None
Subscribers
None
libsystem_find.h
View Options
/*
* Find functions
*
* Copyright (c) 2008-2012, Joachim Metz <jbmetz@users.sourceforge.net>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined( _LIBSYSTEM_FIND_H )
#define _LIBSYSTEM_FIND_H
#include <common.h>
#include <types.h>
#if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520
#include <dir.h>
#elif defined( HAVE_IO_H ) || defined( WINAPI )
#include <io.h>
#endif
#include "libsystem_string.h"
#if defined( __cplusplus )
extern "C" {
#endif
/* The find data structure type
*/
#if defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER )
#if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520
#define libsystem_find_data_t struct _wffblk
#else
#define libsystem_find_data_t struct _wfinddata_t
#endif
#else
#if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520
#define libsystem_find_data_t struct ffblk
#else
#define libsystem_find_data_t struct _finddata_t
#endif
#endif /* defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER ) */
/* The find first function
*/
#if defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER )
#if defined( __BORLANDC__ )
#if __BORLANDC__ <= 0x0520
#define libsystem_find_first( filter, fileinfo ) \
_wfindfirst( filter, fileinfo, 0 )
#else
#define libsystem_find_first( filter, fileinfo ) \
__wfindfirst( filter, fileinfo )
#endif
#else
#define libsystem_find_first( filter, fileinfo ) \
_wfindfirst( filter, fileinfo )
#endif
#else
#if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520
#define libsystem_find_first( filter, fileinfo ) \
findfirst( filter, fileinfo, 0 )
#else
#define libsystem_find_first( filter, fileinfo ) \
_findfirst( filter, fileinfo )
#endif
#endif /* defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER ) */
/* The find next function
*/
#if defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER )
#if defined( __BORLANDC__ )
#if __BORLANDC__ <= 0x0520
#define libsystem_find_next( handle, fileinfo ) \
_wfindnext( fileinfo )
#else
#define libsystem_find_next( handle, fileinfo ) \
__wfindnext( handle, fileinfo )
#endif
#else
#define libsystem_find_next( handle, fileinfo ) \
_wfindnext( handle, fileinfo )
#endif
#else
#if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520
#define libsystem_find_next( handle, fileinfo ) \
findnext( fileinfo )
#else
#define libsystem_find_next( handle, fileinfo ) \
_findnext( handle, fileinfo )
#endif
#endif /* defined( LIBCSTRING_HAVE_WIDE_SYSTEM_CHARACTER ) */
/* The find close function
*/
#if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520
#define libsystem_find_close( handle ) \
0
#else
#define libsystem_find_close( handle ) \
_findclose( handle )
#endif
#if defined( __cplusplus )
}
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Nov 21, 8:23 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1361467
Default Alt Text
libsystem_find.h (3 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment