[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] unbreak the Windows build

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: Sun, 25 Jan 2009 08:30:51 -0800

[[[

Make the svn_utf__last_valid function be exported from libsvn_subr for Windows
dll builds.

* subversion/libsvn_subr/utf_impl.h: move declaration of
   svn_utf__last_valid from here....

* subversion/include/private/svn_utf_private.h: to here

]]]

Index: subversion/libsvn_subr/utf_impl.h
===================================================================
--- subversion/libsvn_subr/utf_impl.h (revision 35448)
+++ subversion/libsvn_subr/utf_impl.h (working copy)
@@ -39,17 +39,6 @@
                                               apr_pool_t *));

-/* Return a pointer to the first character after the last valid UTF-8
- * multi-byte character in the string SRC of length LEN. If SRC is a valid
- * UTF-8 the return value will point to the byte after SRC+LEN, otherwise
- * it will point to the start of the first invalid multi-byte character.
- * In either case all the characters between SRC and the return pointer are
- * valid UTF-8.
- *
- * See also svn_utf__is_valid().
- */
-const char *svn_utf__last_valid(const char *src, apr_size_t len);
-
 /* As for svn_utf__last_valid but uses a different implementation without
    lookup tables. It avoids the table memory use (about 400 bytes) but the
    function is longer (about 200 bytes extra) and likely to be slower when
Index: subversion/include/private/svn_utf_private.h
===================================================================
--- subversion/include/private/svn_utf_private.h (revision 35448)
+++ subversion/include/private/svn_utf_private.h (working copy)
@@ -42,7 +42,18 @@
 svn_boolean_t
 svn_utf__cstring_is_valid(const char *src);

+/* Return a pointer to the first character after the last valid UTF-8
+ * multi-byte character in the string SRC of length LEN. If SRC is a valid
+ * UTF-8 the return value will point to the byte after SRC+LEN, otherwise
+ * it will point to the start of the first invalid multi-byte character.
+ * In either case all the characters between SRC and the return pointer are
+ * valid UTF-8.
+ *
+ * See also svn_utf__is_valid().
+ */
+const char *svn_utf__last_valid(const char *src, apr_size_t len);

+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1050294

Received on 2009-01-25 17:31:05 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.