35 #include <apr_errno.h>
36 #include <apr_pools.h>
38 #include <apr_tables.h>
40 #include <apr_strings.h>
52 #ifndef SVN_DEPRECATED
53 # if !defined(SWIGPERL) && !defined(SWIGPYTHON) && !defined(SWIGRUBY)
54 # if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__==3 && __GNUC_MINOR__>=1))
55 # define SVN_DEPRECATED __attribute__((deprecated))
56 # elif defined(_MSC_VER) && _MSC_VER >= 1300
57 # define SVN_DEPRECATED __declspec(deprecated)
59 # define SVN_DEPRECATED
62 # define SVN_DEPRECATED
81 #ifndef SVN_UNALIGNED_ACCESS_IS_OK
82 # if defined(_M_IX86) || defined(i386) \
83 || defined(_M_X64) || defined(__x86_64) \
84 || defined(__powerpc__) || defined(__ppc__)
85 # define SVN_UNALIGNED_ACCESS_IS_OK 1
87 # define SVN_UNALIGNED_ACCESS_IS_OK 0
172 #ifndef APR_ARRAY_IDX
173 #define APR_ARRAY_IDX(ary,i,type) (((type *)(ary)->elts)[i])
177 #ifndef APR_ARRAY_PUSH
178 #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
215 #define SVN__APR_STATUS_IS_ENOTDIR(s) APR_STATUS_IS_ENOTDIR(s)
217 #define SVN__APR_STATUS_IS_ENOTDIR(s) (APR_STATUS_IS_ENOTDIR(s) \
218 || ((s) == APR_OS_START_SYSERR + ERROR_DIRECTORY) \
219 || ((s) == APR_OS_START_SYSERR + ERROR_INVALID_NAME))
226 #define SVN__APR_STATUS_IS_EPIPE(s) APR_STATUS_IS_EPIPE(s)
228 #define SVN__APR_STATUS_IS_EPIPE(s) (APR_STATUS_IS_EPIPE(s) \
229 || ((s) == APR_OS_START_SYSERR + ERROR_NO_DATA))
359 #define SVN_IS_VALID_REVNUM(n) ((n) >= 0)
362 #define SVN_INVALID_REVNUM ((svn_revnum_t) -1)
368 #define SVN_IGNORED_REVNUM ((svn_revnum_t) -1)
371 #define SVN_STR_TO_REV(str) ((svn_revnum_t) atol(str))
387 const char **endptr);
398 #define SVN_REVNUM_T_FMT "ld"
406 #define SVN_INVALID_FILESIZE ((svn_filesize_t) -1)
409 #define SVN_FILESIZE_T_FMT APR_INT64_T_FMT
411 #ifndef DOXYGEN_SHOULD_SKIP_THIS
415 #define svn__atoui64(X) ((apr_uint64_t) apr_atoi64(X))
423 svn_nonrecursive = 1,
503 #define SVN_DEPTH_INFINITY_OR_FILES(recurse) \
504 ((recurse) ? svn_depth_infinity : svn_depth_files)
514 #define SVN_DEPTH_INFINITY_OR_IMMEDIATES(recurse) \
515 ((recurse) ? svn_depth_infinity : svn_depth_immediates)
525 #define SVN_DEPTH_INFINITY_OR_EMPTY(recurse) \
526 ((recurse) ? svn_depth_infinity : svn_depth_empty)
535 #define SVN_DEPTH_IS_RECURSIVE(depth) \
536 ((depth) == svn_depth_infinity || (depth) == svn_depth_unknown)
551 #define SVN_DIRENT_KIND 0x00001
554 #define SVN_DIRENT_SIZE 0x00002
557 #define SVN_DIRENT_HAS_PROPS 0x00004
560 #define SVN_DIRENT_CREATED_REV 0x00008
563 #define SVN_DIRENT_TIME 0x00010
566 #define SVN_DIRENT_LAST_AUTHOR 0x00020
569 #define SVN_DIRENT_ALL ~((apr_uint32_t ) 0)
658 #define SVN_KEYWORD_MAX_LEN 255
661 #define SVN_KEYWORD_REVISION_LONG "LastChangedRevision"
664 #define SVN_KEYWORD_REVISION_SHORT "Rev"
668 #define SVN_KEYWORD_REVISION_MEDIUM "Revision"
671 #define SVN_KEYWORD_DATE_LONG "LastChangedDate"
674 #define SVN_KEYWORD_DATE_SHORT "Date"
677 #define SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"
680 #define SVN_KEYWORD_AUTHOR_SHORT "Author"
683 #define SVN_KEYWORD_URL_LONG "HeadURL"
686 #define SVN_KEYWORD_URL_SHORT "URL"
689 #define SVN_KEYWORD_ID "Id"
693 #define SVN_KEYWORD_HEADER "Header"
997 apr_hash_t *changed_paths,
998 svn_revnum_t revision,
1001 const char *message,
1025 svn_revnum_t new_revision,
1039 #define SVN_STREAM_CHUNK_SIZE 102400
1041 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1052 #define SVN__STREAM_CHUNK_SIZE 16384
1057 #define SVN_MAX_OBJECT_SIZE (((apr_size_t) -1) / 2)
1222 svn_revnum_t range_end;
1264 #define SVN_LINENUM_MAX_VALUE ULONG_MAX
1293 #include "private/svn_debug.h"