Re: cvs: pecl /xdiff CREDITS config.m4 php_xdiff.h xdiff.c xdiff.php
| From: | Derick Rethans | Date: | Thu, 25 Dec 2003 11:47:33 +0000 |
| Subject: | Re: cvs: pecl /xdiff CREDITS config.m4 php_xdiff.h xdiff.c xdiff.php | ||
| References: | 1 2 3 | Groups: | php.pecl.cvs |
| Request: | Send a blank email to pecl-cvs+get-629@lists.php.net to get a copy of this message | ||
On Thu, 25 Dec 2003, Marcin Gibula wrote:
> Well, that was my problem too...
> You see, there are many situations where using strings instead of files is
> simply better, consider managing articles in some php-based cms, to view
> differences online using strings is simply better (no temp files is needed).
> On the other hand, this is very, very bad when diffs are getting large and
> storing them in memory is problematic.
>
> Maybe there should be normal and _files functions indeed...
Yeah, I think so too. But I would recommend to use the following more
consistent names then:
bool xdiff_file_diff (result, file1, file2)
bool xdiff_file_diff_binary (result, file1, file2)
bool xdiff_file_patch (result, file1, file2)
bool xdiff_file_patch_binary (result, file1, file2)
bool xdiff_file_merge3 (result, file1, file2, file3)
string xdiff_string_diff (str1, str2)
string xdiff_string_diff_binary (str1, str2)
string xdiff_string_patch (str1, str2)
string xdiff_string_patch_binary (str1, str2)
string xdiff_string_merge3 (str1, str2, str3)
what do you think?
regards,
Derick