--- parser3/src/include/pa_dir.h 2001/04/06 12:34:52 1.1 +++ parser3/src/include/pa_dir.h 2001/08/31 15:35:34 1.4 @@ -1,16 +1,23 @@ /** @file Parser: directory scanning for different OS-es decls. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2000,2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_dir.h,v 1.1 2001/04/06 12:34:52 paf Exp $ + $Id: pa_dir.h,v 1.4 2001/08/31 15:35:34 parser Exp $ */ #ifndef PA_DIR_H #define PA_DIR_H +#include "pa_config_includes.h" + +/** @struct ffblk + win32/unix unified directory entry structure name + for findfirst/next/close interface +*/ + #ifdef WIN32 #include @@ -18,7 +25,6 @@ #define MAXPATH MAX_PATH #define FA_DIREC FILE_ATTRIBUTE_DIRECTORY - struct ffblk { DWORD ff_attrib;/*dwFileAttributes;*/ FILETIME ftCreationTime; @@ -68,6 +74,7 @@ bool findfirst(const char *_pathname, st bool findnext(struct ffblk *_ffblk); void findclose(struct ffblk *_ffblk); +/// main dir workhorse: calles win32/unix unified functions findfirst/next/close #define LOAD_DIR(dir,action) {\ ffblk ffblk; \ bool done=findfirst(dir, &ffblk, 0); \