34 #include <apr_errno.h>
35 #include <apr_pools.h>
37 #include <apr_tables.h>
39 #include <apr_strings.h>
51 #ifndef SVN_DEPRECATED
52 # if !defined(SWIGPERL) && !defined(SWIGPYTHON) && !defined(SWIGRUBY)
53 # if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__==3 && __GNUC_MINOR__>=1))
54 # define SVN_DEPRECATED __attribute__((deprecated))
55 # elif defined(_MSC_VER) && _MSC_VER >= 1300
56 # define SVN_DEPRECATED __declspec(deprecated)
58 # define SVN_DEPRECATED
61 # define SVN_DEPRECATED
76 #ifndef SVN_UNALIGNED_ACCESS_IS_OK
77 # if defined(_M_IX86) || defined(_M_X64) || defined(i386) || defined(__x86_64)
78 # define SVN_UNALIGNED_ACCESS_IS_OK 1
80 # define SVN_UNALIGNED_ACCESS_IS_OK 0
145 #ifndef APR_ARRAY_IDX
146 #define APR_ARRAY_IDX(ary,i,type) (((type *)(ary)->elts)[i])
150 #ifndef APR_ARRAY_PUSH
151 #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
182 #define SVN__APR_STATUS_IS_ENOTDIR(s) APR_STATUS_IS_ENOTDIR(s)
184 #define SVN__APR_STATUS_IS_ENOTDIR(s) (APR_STATUS_IS_ENOTDIR(s) \
185 || ((s) == APR_OS_START_SYSERR + ERROR_DIRECTORY) \
186 || ((s) == APR_OS_START_SYSERR + ERROR_INVALID_NAME))
193 #define SVN__APR_STATUS_IS_EPIPE(s) APR_STATUS_IS_EPIPE(s)
195 #define SVN__APR_STATUS_IS_EPIPE(s) (APR_STATUS_IS_EPIPE(s) \
196 || ((s) == APR_OS_START_SYSERR + ERROR_NO_DATA))
246 svn_tristate_false = 2,
310 #define SVN_IS_VALID_REVNUM(n) ((n) >= 0)
313 #define SVN_INVALID_REVNUM ((svn_revnum_t) -1)
319 #define SVN_IGNORED_REVNUM ((svn_revnum_t) -1)
322 #define SVN_STR_TO_REV(str) ((svn_revnum_t) atol(str))
338 const char **endptr);
349 #define SVN_REVNUM_T_FMT "ld"
356 #define SVN_INVALID_FILESIZE ((svn_filesize_t) -1)
359 #define SVN_FILESIZE_T_FMT APR_INT64_T_FMT
361 #ifndef DOXYGEN_SHOULD_SKIP_THIS
365 #define svn__atoui64(X) ((apr_uint64_t) apr_atoi64(X))
386 svn_nonrecursive = 1,
469 #define SVN_DEPTH_INFINITY_OR_FILES(recurse) \
470 ((recurse) ? svn_depth_infinity : svn_depth_files)
481 #define SVN_DEPTH_INFINITY_OR_IMMEDIATES(recurse) \
482 ((recurse) ? svn_depth_infinity : svn_depth_immediates)
493 #define SVN_DEPTH_INFINITY_OR_EMPTY(recurse) \
494 ((recurse) ? svn_depth_infinity : svn_depth_empty)
504 #define SVN_DEPTH_IS_RECURSIVE(depth) \
505 (((depth) == svn_depth_infinity || (depth) == svn_depth_unknown) \
520 #define SVN_DIRENT_KIND 0x00001
523 #define SVN_DIRENT_SIZE 0x00002
526 #define SVN_DIRENT_HAS_PROPS 0x00004
529 #define SVN_DIRENT_CREATED_REV 0x00008
532 #define SVN_DIRENT_TIME 0x00010
535 #define SVN_DIRENT_LAST_AUTHOR 0x00020
538 #define SVN_DIRENT_ALL ~((apr_uint32_t ) 0)
614 #define SVN_KEYWORD_MAX_LEN 255
617 #define SVN_KEYWORD_REVISION_LONG "LastChangedRevision"
620 #define SVN_KEYWORD_REVISION_SHORT "Rev"
624 #define SVN_KEYWORD_REVISION_MEDIUM "Revision"
627 #define SVN_KEYWORD_DATE_LONG "LastChangedDate"
630 #define SVN_KEYWORD_DATE_SHORT "Date"
633 #define SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"
636 #define SVN_KEYWORD_AUTHOR_SHORT "Author"
639 #define SVN_KEYWORD_URL_LONG "HeadURL"
642 #define SVN_KEYWORD_URL_SHORT "URL"
645 #define SVN_KEYWORD_ID "Id"
649 #define SVN_KEYWORD_HEADER "Header"
950 apr_hash_t *changed_paths,
951 svn_revnum_t revision,
977 svn_revnum_t new_revision,
990 #define SVN_STREAM_CHUNK_SIZE 102400
992 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1003 #define SVN__STREAM_CHUNK_SIZE 16384
1008 #define SVN_MAX_OBJECT_SIZE (((apr_size_t) -1) / 2)
1170 svn_revnum_t range_end;
1212 #define SVN_LINENUM_MAX_VALUE ULONG_MAX
1240 #include "private/svn_debug.h"