]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/subversion/subversion/svn/client_errors.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / subversion / subversion / svn / client_errors.h
1 /*
2  * client_errors.h:  error codes this command line client features
3  *
4  * ====================================================================
5  *    Licensed to the Apache Software Foundation (ASF) under one
6  *    or more contributor license agreements.  See the NOTICE file
7  *    distributed with this work for additional information
8  *    regarding copyright ownership.  The ASF licenses this file
9  *    to you under the Apache License, Version 2.0 (the
10  *    "License"); you may not use this file except in compliance
11  *    with the License.  You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  *    Unless required by applicable law or agreed to in writing,
16  *    software distributed under the License is distributed on an
17  *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  *    KIND, either express or implied.  See the License for the
19  *    specific language governing permissions and limitations
20  *    under the License.
21  * ====================================================================
22  */
23
24 /* ==================================================================== */
25
26
27 \f
28 #ifndef SVN_CLIENT_ERRORS_H
29 #define SVN_CLIENT_ERRORS_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34
35 /*
36  * This error defining system is copied from and explained in
37  * ../../include/svn_error_codes.h
38  */
39
40 /* Process this file if we're building an error array, or if we have
41    not defined the enumerated constants yet.  */
42 #if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
43
44 #if defined(SVN_ERROR_BUILD_ARRAY)
45
46 #error "Need to update err_defn for r1464679 and un-typo 'CDMLINE'"
47
48 #define SVN_ERROR_START \
49         static const err_defn error_table[] = { \
50           { SVN_ERR_CDMLINE__WARNING, "Warning" },
51 #define SVN_ERRDEF(n, s) { n, s },
52 #define SVN_ERROR_END { 0, NULL } };
53
54 #elif !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
55
56 #define SVN_ERROR_START \
57         typedef enum svn_client_errno_t { \
58           SVN_ERR_CDMLINE__WARNING = SVN_ERR_LAST + 1,
59 #define SVN_ERRDEF(n, s) n,
60 #define SVN_ERROR_END SVN_ERR_CMDLINE__ERR_LAST } svn_client_errno_t;
61
62 #define SVN_CMDLINE_ERROR_ENUM_DEFINED
63
64 #endif
65
66 /* Define custom command line client error numbers */
67
68 SVN_ERROR_START
69
70   /* BEGIN Client errors */
71
72 SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_WRITE,
73            "Failed writing to temporary file.")
74
75        SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_STAT,
76                   "Failed getting info about temporary file.")
77
78        SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_OPEN,
79                   "Failed opening temporary file.")
80
81   /* END Client errors */
82
83
84 SVN_ERROR_END
85
86 #undef SVN_ERROR_START
87 #undef SVN_ERRDEF
88 #undef SVN_ERROR_END
89
90 #endif /* SVN_ERROR_BUILD_ARRAY || !SVN_CMDLINE_ERROR_ENUM_DEFINED */
91
92
93 #ifdef __cplusplus
94 }
95 #endif /* __cplusplus */
96
97 #endif /* SVN_CLIENT_ERRORS_H */