~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/clients/cmdline/client_errors.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
27
extern "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
 
 
61
SVN_ERROR_START
 
62
 
 
63
  /* BEGIN Client errors */
 
64
 
 
65
  SVN_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
 
 
77
SVN_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 */