~ubuntu-branches/ubuntu/precise/libgpg-error/precise

« back to all changes in this revision

Viewing changes to src/gpg-error.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2006-03-04 15:53:20 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060304155320-vti2rjivte4051gl
Tags: 1.2-1
New upstream version. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#endif 
34
34
#endif
35
35
 
 
36
 
36
37
#ifdef __cplusplus
37
38
extern "C" {
38
39
#if 0 /* just to make Emacs auto-indent happy */
113
114
#define GPG_ERR_SOURCE_SHIFT    24
114
115
 
115
116
 
 
117
/* GCC feature test.  */
 
118
#undef _GPG_ERR_HAVE_CONSTRUCTOR
 
119
#if __GNUC__
 
120
#define _GPG_ERR_GCC_VERSION (__GNUC__ * 10000 \
 
121
                            + __GNUC_MINOR__ * 100 \
 
122
                            + __GNUC_PATCHLEVEL__)
 
123
 
 
124
#if _GPG_ERR_GCC_VERSION > 30100
 
125
#define _GPG_ERR_CONSTRUCTOR    __attribute__ ((__constructor__))
 
126
#define _GPG_ERR_HAVE_CONSTRUCTOR
 
127
#endif
 
128
#endif
 
129
 
 
130
#ifndef _GPG_ERR_CONSTRUCTOR
 
131
#define _GPG_ERR_CONSTRUCTOR
 
132
#endif
 
133
 
 
134
 
 
135
/* Initialization function.  */
 
136
 
 
137
/* Initialize the library.  This function should be run early.  */
 
138
gpg_error_t gpg_err_init (void) _GPG_ERR_CONSTRUCTOR;
 
139
 
 
140
/* If this is defined, the library is already initialized by the
 
141
   constructor and does not need to be initialized explicitely.  */
 
142
#undef GPG_ERR_INITIALIZED
 
143
#ifdef _GPG_ERR_HAVE_CONSTRUCTOR
 
144
#define GPG_ERR_INITIALIZED     1
 
145
#endif
 
146
 
 
147
 
116
148
/* Constructor and accessor functions.  */
117
149
 
118
150
/* Construct an error value from an error code and source.  Within a
208
240
}
209
241
#endif
210
242
 
 
243
 
211
244
#endif  /* GPG_ERROR_H */