~vorlon/ubuntu/natty/libidn/multiarch

« back to all changes in this revision

Viewing changes to gl/version-etc.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon Josefsson, Simon Josefsson
  • Date: 2010-02-15 13:36:58 UTC
  • mfrom: (1.2.13 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100215133658-wbevca0cl958vasv
Tags: 1.18-1
[ Simon Josefsson ]
* New upstream version.
* libidn11.symbols: Fix based on upstream changes.
* Moved from experimental to unstable after testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Print --version and bug-reporting information in a consistent format.
2
 
   Copyright (C) 1999, 2003, 2005, 2009 Free Software Foundation, Inc.
 
2
   Copyright (C) 1999, 2003, 2005, 2009-2010 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
22
22
# include <stdarg.h>
23
23
# include <stdio.h>
24
24
 
 
25
/* The `sentinel' attribute was added in gcc 4.0.  */
 
26
#ifndef ATTRIBUTE_SENTINEL
 
27
# if 4 <= __GNUC__
 
28
#  define ATTRIBUTE_SENTINEL __attribute__ ((__sentinel__))
 
29
# else
 
30
#  define ATTRIBUTE_SENTINEL /* empty */
 
31
# endif
 
32
#endif
 
33
 
25
34
extern const char version_etc_copyright[];
26
35
 
 
36
/* The three functions below display the --version information in the
 
37
   standard way: command and package names, package version, followed
 
38
   by a short GPLv3+ notice and a list of up to 10 author names.
 
39
 
 
40
   If COMMAND_NAME is NULL, the PACKAGE is asumed to be the name of
 
41
   the program.  The formats are therefore:
 
42
 
 
43
   PACKAGE VERSION
 
44
 
 
45
   or
 
46
 
 
47
   COMMAND_NAME (PACKAGE) VERSION.
 
48
 
 
49
   The functions differ in the way they are passed author names: */
 
50
 
 
51
/* N_AUTHORS names are supplied in array AUTHORS.  */
 
52
extern void version_etc_arn (FILE *stream,
 
53
                             const char *command_name, const char *package,
 
54
                             const char *version,
 
55
                             const char * const * authors, size_t n_authors);
 
56
 
 
57
/* Names are passed in the NULL-terminated array AUTHORS.  */
 
58
extern void version_etc_ar (FILE *stream,
 
59
                            const char *command_name, const char *package,
 
60
                            const char *version, const char * const * authors);
 
61
 
 
62
/* Names are passed in the NULL-terminated va_list.  */
27
63
extern void version_etc_va (FILE *stream,
28
 
                            const char *command_name, const char *package,
29
 
                            const char *version, va_list authors);
 
64
                            const char *command_name, const char *package,
 
65
                            const char *version, va_list authors);
30
66
 
 
67
/* Names are passed as separate arguments, with an additional
 
68
   NULL argument at the end.  */
31
69
extern void version_etc (FILE *stream,
32
 
                         const char *command_name, const char *package,
33
 
                         const char *version,
34
 
                         /* const char *author1, ...*/ ...);
 
70
                         const char *command_name, const char *package,
 
71
                         const char *version,
 
72
                         /* const char *author1, ..., NULL */ ...)
 
73
  ATTRIBUTE_SENTINEL;
35
74
 
 
75
/* Display the usual `Report bugs to' stanza */
36
76
extern void emit_bug_reporting_address (void);
37
77
 
38
78
#endif /* VERSION_ETC_H */