cvs: pecl /xdiff README.API xdiff.c
| From: | Marcin Gibula | Date: | Thu, 08 Jan 2004 13:56:48 +0000 |
| Subject: | cvs: pecl /xdiff README.API xdiff.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-682@lists.php.net to get a copy of this message | ||
mg Thu Jan 8 08:56:48 2004 EDT
Added files:
/pecl/xdiff README.API
Modified files:
/pecl/xdiff xdiff.c
Log:
Fixed prototypes and added README.API file.
Index: pecl/xdiff/xdiff.c
diff -u pecl/xdiff/xdiff.c:1.2 pecl/xdiff/xdiff.c:1.3
--- pecl/xdiff/xdiff.c:1.2 Tue Jan 6 15:33:53 2004
+++ pecl/xdiff/xdiff.c Thu Jan 8 08:56:48 2004
@@ -15,7 +15,7 @@
| Author: Marcin Gibula <mg@iceni.pl> |
+----------------------------------------------------------------------+
- $Id: xdiff.c,v 1.2 2004/01/06 20:33:53 mg Exp $
+ $Id: xdiff.c,v 1.3 2004/01/08 13:56:48 mg Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -378,7 +378,7 @@
}
/* }}} */
-/* {{{ proto string xdiff_string_patch_binary(string file, string patch)
+/* {{{ proto string xdiff_string_patch_binary(string str, string patch)
*/
PHP_FUNCTION(xdiff_string_patch_binary)
{
@@ -410,7 +410,7 @@
}
/* }}} */
-/* {{{ proto string xdiff_file_merge3(string file1, string file2, string file3, string dest)
+/* {{{ proto mixed xdiff_file_merge3(string file1, string file2, string file3, string dest)
*/
PHP_FUNCTION(xdiff_file_merge3)
{
@@ -459,7 +459,7 @@
}
/* }}} */
-/* {{{ proto string xdiff_string_merge3(string file1, string file2, string file3 [, string error])
+/* {{{ proto string xdiff_string_merge3(string str1, string str2, string str3 [, string error])
*/
PHP_FUNCTION(xdiff_string_merge3)
{
Index: pecl/xdiff/README.API
+++ pecl/xdiff/README.API
This extension requires libxdiff (http://www.xmailserver.org/xdiff-lib.html).
API:
* mixed xdiff_string_diff(string str1, string str2, [int context, [bool minimal]])
Makes unified diff of strings str1 and str2. 'context' indicates how many lines of context
you want
to include in diff result. Set 'minimal' to true if you want to minimalize size of diff
(can take a long time).
Returns string with result or false if an internal error happened.
* bool xdiff_file_diff(string file1, string file2, string dest, [int context, [bool minimal]])
Makes unified diff of files file1 and file2 and stores result in file dest. 'context'
indicates how many lines of context you want
to include in diff result. Set 'minimal' to true if you want to minimalize size of diff
(can take a long time).
* mixed xdiff_string_diff_binary(string str1, string str2)
Makes binary diff of strings str1 and str2.
Returns string with result or false if an internal error happened.
* bool xdiff_file_diff_binary(string file1, string file2, string dest)
Makes binary diff of files file1 and file2 and stores result in file dest.
Returns string with result or false if an internal error happened.
* string xdiff_string_patch(string file, string patch [, int flags, [string error]])
Patches string 'file' with unified patch in 'patch' and returns a patched
string.
'flags' can be one of:
XDIFF_PATCH_NORMAL - normal patch (default)
XDIFF_PATCH_REVERSE - reverse patch
If 'error' is passed then error is stored inside this variable (it is passed by
reference).
* mixed xdiff_file_patch(string file, string patch, string dest [, int flags])
Patches file 'file' with unified patch in file 'patch'.
'flags' can be one of:
XDIFF_PATCH_NORMAL - normal patch (default)
XDIFF_PATCH_REVERSE - reverse patch
Returns false if an internal error happened, string with rejected chunks of patch or true if patch
was applied
successfully.
* string xdiff_string_patch_binary(string str, string patch)
Patches string 'str' with binary patch 'patch'.
Returns patched string or false if an internal error happened.
* bool xdiff_file_patch_binary(string file, string patch, string dest)
Patches file 'file' with binary patch in file 'patch' and stores result in file
'dest'.
Returns true if file was patched successfully, false otherwise.
* string xdiff_string_merge3(string str1, string str2, string str3 [, string error])
Merges strings 'str1', 'str2' and 'str3' into one. Returns merged
string or false if an internal error happened.
If 'error' is passed then error is stored inside this variable (it is passed by
reference).
* mixed xdiff_file_merge3(string file1, string file2, string file3, string dest)
Merges files 'file1', 'file2' and 'file3' into one and stores result
in file 'dest'.
Returns true if merge was successful, string with rejected chunks if it was not or false if an
internal error happened.