General > Chit-Chat

FindFile updates

(1/1)

JohnF:
A couple a updates for FindFile

=====================================
22nd September 2007. Version 2.0.0.0 (JF)
=====================================
Added multiple token ability for pattern matching.

The "File Search" string can have multiple tokens separated
by a comma.

e.g.

*.h,*.c

mytext.txt,*.c

*.h,*.c,*.cpp
 
Do not include spaces in the string.

*.h, *.c   WRONG

See Private_FindFile() and IsFilterMatch() in Find.c

======================================
21st September 2007. Version 2.0.0.0 (JF)
======================================
Very large files (multi gig) sizes were not displayed correctly.
The macro MAKELONGLONG was not correct.


--- Code: ---was
#define MAKELONGLONG(a,b) ((long long) (((long) (a)) | ((long long ) ((long) (b))) << 32))

should be
#define MAKELONGLONG(a,b) ((long long)(((long)(a)&0xFFFFFFFF) | (((long long)((long) (b)&0xFFFFFFFF)) << 32)))


--- End code ---

=======================================

http://www.johnfindlay.plus.com/pellesc/utils/utils.html

John

Navigation

[0] Message Index

Go to full version