~ubuntu-branches/debian/squeeze/lftp/squeeze

« back to all changes in this revision

Viewing changes to lib/glob.in.h

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2010-04-09 23:45:53 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409234553-7ay83rk2aas3r7g3
Tags: 4.0.6-1
* new upstream release from 2010-03-25
  - fixes proftp problem. closes: Bug#570861
* switched to to dpkg-source 3.0 (quilt)
* pget help and lftp -h mentions -c since some time
  closes: Bug#377043
* lftp -c exists.:) closes: Bug#401572

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* glob.h -- Find a path matching a pattern.
2
2
 
3
 
   Copyright (C) 2005-2007, 2009 Free Software Foundation, Inc.
 
3
   Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc.
4
4
 
5
5
   Written by Derek Price <derek@ximbiot.com> & Paul Eggert <eggert@CS.UCLA.EDU>
6
6
 
33
33
#include <sys/stat.h>
34
34
 
35
35
#ifndef __BEGIN_DECLS
36
 
# define __BEGIN_DECLS
37
 
# define __END_DECLS
 
36
# ifdef __cplusplus
 
37
#  define __BEGIN_DECLS  extern "C" {
 
38
#  define __END_DECLS    }
 
39
# else
 
40
#  define __BEGIN_DECLS
 
41
#  define __END_DECLS
 
42
# endif
38
43
#endif
39
44
#ifndef __THROW
40
45
# define __THROW
41
46
#endif
42
47
 
 
48
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
49
 
43
50
/* The definition of _GL_ARG_NONNULL is copied here.  */
44
51
 
 
52
/* The definition of _GL_WARN_ON_USE is copied here.  */
 
53
 
45
54
#ifndef __size_t
46
55
# define __size_t       size_t
47
56
#endif
59
68
/* Now the standard GNU C Library header should work.  */
60
69
#include "glob-libc.h"
61
70
 
 
71
__BEGIN_DECLS
 
72
typedef int (*_gl_glob_errfunc_fn) (const char *, int);
 
73
__END_DECLS
 
74
 
 
75
#if defined __cplusplus && defined GNULIB_NAMESPACE
 
76
# undef glob
 
77
# undef globfree
 
78
# undef glob_pattern_p
 
79
_GL_CXXALIAS_RPL (glob, int, (const char *_Restrict_ __pattern, int __flags,
 
80
                              _gl_glob_errfunc_fn __errfunc,
 
81
                              glob_t *_Restrict_ __pglob));
 
82
_GL_CXXALIAS_RPL (globfree, void, (glob_t *__pglob));
 
83
_GL_CXXALIAS_RPL (glob_pattern_p, int, (const char *__pattern, int __quote));
 
84
# if 0  /* The C function name is rpl_glob, not glob.  */
 
85
_GL_CXXALIASWARN (glob);
 
86
_GL_CXXALIASWARN (globfree);
 
87
_GL_CXXALIASWARN (glob_pattern_p);
 
88
# endif
 
89
#endif
 
90
 
62
91
#endif /* _GL_GLOB_H */