Diff for /parser3/src/main/pa_dir.C between versions 1.13 and 1.15

version 1.13, 2002/08/01 11:41:18 version 1.15, 2003/07/24 11:31:23
Line 1 Line 1
 /** @file  /** @file
         Parser: directory scanning for different OS-es.          Parser: directory scanning for different OS-es.
   
         Copyright (c) 2000,2001, 2002 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2000,2001-2003 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)
 */  */
   
Line 12  static const char* IDENT_DIR_C="$Date$"; Line 12  static const char* IDENT_DIR_C="$Date$";
   
 #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.13  
changed lines
  Added in v.1.15


E-mail: