Diff for /parser3/src/main/pa_dir.C between versions 1.14 and 1.19.14.1

version 1.14, 2003/01/21 15:51:14 version 1.19.14.1, 2005/08/05 13:03:01
Line 1 Line 1
 /** @file  /** @file
         Parser: directory scanning for different OS-es.          Parser: directory scanning for different OS-es.
   
         Copyright (c) 2000,2001, 2003 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2000,2001-2005 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
 static const char* IDENT_DIR_C="$Date$";  static const char * const IDENT_DIR_C="$Date$";
   
 #include "pa_common.h"  #include "pa_common.h"
 #include "pa_dir.h"  #include "pa_dir.h"
   
 #ifdef WIN32  #ifdef WIN32
   
 bool findfirst(const char *_pathname, struct ffblk *_ffblk, int _attrib) {  bool findfirst(const char* _pathname, struct ffblk *_ffblk, int /*_attrib*/) {
         char mask[MAXPATH];          char mask[MAXPATH];
         snprintf(mask, MAXPATH, "%s/*.*", _pathname);          snprintf(mask, MAXPATH, "%s/*.*", _pathname);
   
Line 29  void findclose(struct ffblk *_ffblk) { Line 29  void findclose(struct ffblk *_ffblk) {
   
 #else  #else
   
 bool findfirst(const char *_pathname, struct ffblk *_ffblk, int _attrib) {  bool findfirst(const char* _pathname, struct ffblk *_ffblk, int /*_attrib*/) {
     strncpy(_ffblk->filePath, _pathname, MAXPATH-1); _ffblk->filePath[MAXPATH-1]=0;      strncpy(_ffblk->filePath, _pathname, MAXPATH-1); _ffblk->filePath[MAXPATH-1]=0;
         if(!(_ffblk->dir=opendir(_ffblk->filePath)))          if(!(_ffblk->dir=opendir(_ffblk->filePath)))
         return true;          return true;

Removed from v.1.14  
changed lines
  Added in v.1.19.14.1


E-mail: