I am trying to not reinvent the wheel while working on the hbextern example/tool.

Because there are source files with LF end of line the memoline() function does not read them. I am aware that the mlcount() and memoline() functions have an extra parameter of EOL; the code indicates that this can be either string or an array of strings.

When I pass a string of Chr(10) my test code works as expected but leaves the CR end of line character on files with CRLF.

When I pass an array { chr(10), chr(13) + chr(10), chr(13) } my test code fails to work as expected, it appears that the mlcount() and memoline() functions ignore it.

When the parameter is an array it was not recognized; once I amended the code to recognize it, an attempt to allocate zero bytes occurred.

I've fixed these and be attempting my first svn upload in a few minutes. This change could affect any memo function that uses this extra parameter.

April

--
Saw it ... wanted it ... had a fit ... got it!

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to