--- parser3/src/include/pa_dir.h 2004/02/11 15:33:13 1.16 +++ parser3/src/include/pa_dir.h 2005/11/18 10:11:08 1.18 @@ -1,14 +1,14 @@ /** @file Parser: directory scanning for different OS-es decls. - Copyright (c) 2000,2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2000,2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_DIR_H #define PA_DIR_H -static const char * const IDENT_DIR_H="$Date: 2004/02/11 15:33:13 $"; +static const char * const IDENT_DIR_H="$Date: 2005/11/18 10:11:08 $"; #include "pa_config_includes.h" @@ -73,12 +73,12 @@ 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 +/// main dir workhorse: calles win32/unix unified functions findfirst/next/close [skip . and ..] #define LOAD_DIR(dir,action) {\ ffblk ffblk; \ if(!findfirst(dir, &ffblk, 0)) { \ do \ - if(*ffblk.ff_name && ffblk.ff_name[0]!='.') {\ + if(*ffblk.ff_name && !(ffblk.ff_name[0]=='.' && (ffblk.ff_name[1]==0 || ffblk.ff_name[1]=='.' && ffblk.ff_name[2]==0) )) {\ action; \ } \ while(!findnext(&ffblk)); \