source: valtobtest/subversion-1.6.2/subversion/svn/client_errors.h @ 3

Last change on this file since 3 was 3, checked in by valtob, 15 years ago

subversion source 1.6.2 as test

File size: 2.5 KB
Line 
1/*
2 * client_errors.h:  error codes this command line client features
3 *
4 * ====================================================================
5 * Copyright (c) 2000-2004 CollabNet.  All rights reserved.
6 *
7 * This software is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution.  The terms
9 * are also available at http://subversion.tigris.org/license-1.html.
10 * If newer versions of this license are posted there, you may use a
11 * newer version instead, at your option.
12 *
13 * This software consists of voluntary contributions made by many
14 * individuals.  For exact contribution history, see the revision
15 * history and logs, available at http://subversion.tigris.org/.
16 * ====================================================================
17 */
18
19/* ==================================================================== */
20
21
22
23#ifndef SVN_CLIENT_ERRORS_H
24#define SVN_CLIENT_ERRORS_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
30/*
31 * This error defining system is copied from and explained in
32 * ../../include/svn_error_codes.h
33 */
34
35/* Process this file if we're building an error array, or if we have
36   not defined the enumerated constants yet.  */
37#if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
38
39#if defined(SVN_ERROR_BUILD_ARRAY)
40
41#define SVN_ERROR_START \
42        static const err_defn error_table[] = { \
43          { SVN_ERR_CDMLINE__WARNING, "Warning" },
44#define SVN_ERRDEF(n, s) { n, s },
45#define SVN_ERROR_END { 0, NULL } };
46
47#elif !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
48
49#define SVN_ERROR_START \
50        typedef enum svn_client_errno_t { \
51          SVN_ERR_CDMLINE__WARNING = SVN_ERR_LAST + 1,
52#define SVN_ERRDEF(n, s) n,
53#define SVN_ERROR_END SVN_ERR_CMDLINE__ERR_LAST } svn_client_errno_t;
54
55#define SVN_CMDLINE_ERROR_ENUM_DEFINED
56
57#endif
58
59/* Define custom command line client error numbers */
60
61SVN_ERROR_START
62
63  /* BEGIN Client errors */
64
65SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_WRITE,
66           "Failed writing to temporary file.")
67
68       SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_STAT,
69                  "Failed getting info about temporary file.")
70
71       SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_OPEN,
72                  "Failed opening temporary file.")
73
74  /* END Client errors */
75
76
77SVN_ERROR_END
78
79#undef SVN_ERROR_START
80#undef SVN_ERRDEF
81#undef SVN_ERROR_END
82
83#endif /* SVN_ERROR_BUILD_ARRAY || !SVN_CMDLINE_ERROR_ENUM_DEFINED */
84
85
86#ifdef __cplusplus
87}
88#endif /* __cplusplus */
89
90#endif /* SVN_CLIENT_ERRORS_H */
Note: See TracBrowser for help on using the repository browser.