> Eh. You can convert the scandir calls into similar readdir calls, followed by
> a check to see if the file should be included in the list.
The attached diff seems to do the trick. Before incorporating it anywhere
official, please check it; it's been almost a decade since I've even
looked at C, C++ I haven't touched before at all :-)
The code now compiles without complaints and at least manages to convert
easy molecules from this format to that. It doesn't pass the "make check"
though, so something's not right:
Testing Matrix Algebra...
expected 11 matches, found 6
error with molecule BIONET_10B-022 ether on pattern [a]
first match: atom #12
Testing datatype conversions ...
DATATYPE: unit cell vectors test passed
./../test/cml.sh: srcdir: not found
Usage: grep [-E|-F] [-c|-l|-q] [-bhinsvwx] [file ...]
grep [-E|-F] [-c|-l|-q] [-bhinsvwx] -e pattern... [-f
grep [-E|-F] [-c|-l|-q] [-bhinsvwx] [-e pattern]... -f pattern_file
Testing CML support...
./../test/cml.sh: source: not found
Roundtrip test set not found. Skipping test.
2 of 5 tests failed
(1 tests were not run)
Please report to [hidden email] ========================================================