Commit c7839bca c7839bca43e08fa33b493c6806509086a9572367 by Sergey Poznyakoff

Removed definition of __P, included <mailutils/mu_features.h>.

1 parent 8d281015
Showing 41 changed files with 26 additions and 319 deletions
......@@ -19,14 +19,7 @@
#define _MAILUTILS_ADDRESS_H
#include <sys/types.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -18,18 +18,12 @@
#ifndef _MAILUTILS_ATTRIBUTE_H
#define _MAILUTILS_ATTRIBUTE_H
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _attribute;
typedef struct _attribute * attribute_t;
......
......@@ -19,16 +19,9 @@
#define _MAILUTILS_AUTHORITY_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/ticket.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -19,17 +19,10 @@
#define _MAILUTILS_BODY_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/property.h>
#include <mailutils/stream.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /* __P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -19,16 +19,9 @@
#define _MAILUTILS_DEBUG_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/stream.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -18,6 +18,7 @@
#ifndef _MAILUTILS_ENVELOPE_H
# define _MAILUTILS_ENVELOPE_H
#include <mailutils/mu_features.h>
#include <mailutils/address.h>
#include <mailutils/mutil.h>
......@@ -25,14 +26,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _envelope;
typedef struct _envelope *envelope_t;
......
......@@ -20,14 +20,6 @@
#include <errno.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/url.h>
#include <mailutils/observable.h>
#include <mailutils/debug.h>
......@@ -33,14 +34,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
/* Forward declaration. */
struct _folder;
typedef struct _folder *folder_t;
......
......@@ -19,16 +19,9 @@
#define _MAILUTILS_HEADER_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/stream.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -18,18 +18,12 @@
#ifndef _MAILUTILS_ITERATOR_H
#define _MAILUTILS_ITERATOR_H
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif /* __STDC__ */
#endif /* __P */
struct _iterator;
typedef struct _iterator *iterator_t;
......
......@@ -19,16 +19,9 @@
#define _MAILUTILS_LIST_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/iterator.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -19,19 +19,12 @@
#define _MAILUTILS_LOCKFILE_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _lockfile;
typedef struct _lockfile *lockfile_t;
......
......@@ -24,6 +24,7 @@
struct _mailbox;
typedef struct _mailbox *mailbox_t;
#include <mailutils/mu_features.h>
#include <mailutils/url.h>
#include <mailutils/observer.h>
#include <mailutils/debug.h>
......@@ -37,14 +38,6 @@ typedef struct _mailbox *mailbox_t;
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
/* Constructor/destructor and possible types. */
extern int mailbox_ref __P ((mailbox_t));
extern void mailbox_destroy __P ((mailbox_t *));
......
......@@ -18,6 +18,7 @@
#ifndef _MAILUTILS_MBOX_H
#define _MAILUTILS_MBOX_H
#include <mailutils/mu_features.h>
#include <mailutils/stream.h>
#include <mailutils/attribute.h>
#include <mailutils/debug.h>
......@@ -26,14 +27,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _mbox;
typedef struct _mbox *mbox_t;
......
......@@ -24,6 +24,7 @@
struct _message;
typedef struct _message *message_t;
#include <mailutils/mu_features.h>
#include <mailutils/envelope.h>
#include <mailutils/header.h>
#include <mailutils/body.h>
......@@ -31,14 +32,6 @@ typedef struct _message *message_t;
#include <mailutils/attribute.h>
#include <mailutils/mailbox.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /* __P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -25,13 +25,7 @@
#include <time.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -19,16 +19,9 @@
#define _MAILUTILS_OBSERVABLE_H
#include <sys/types.h>
#include <mailutils/mu_features.h>
#include <mailutils/observer.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -19,14 +19,7 @@
#define _MAILUTILS_OBSERVER_H
#include <sys/types.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -22,17 +22,10 @@
#ifndef _MAILUTILS_PARSE822_H
#define _MAILUTILS_PARSE822_H
#include <mailutils/mu_features.h>
#include <mailutils/address.h>
#include <mailutils/mutil.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -18,6 +18,7 @@
#ifndef _MAILUTILS_POP3_H
#define _MAILUTILS_POP3_H
#include <mailutils/mu_features.h>
#include <mailutils/iterator.h>
#include <mailutils/debug.h>
#include <mailutils/stream.h>
......@@ -26,14 +27,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _pop3;
typedef struct _pop3* pop3_t;
typedef iterator_t pop3_capa_iterator_t;
......
......@@ -19,14 +19,7 @@
#define _MAILUTILS_PROPERTY_H
#include <sys/types.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -19,14 +19,7 @@
#define _MAILUTILS_REFCOUNT_H
#include <sys/types.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <stdio.h>
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -24,14 +24,6 @@
#include <mailutils/address.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _attribute_vtable
{
int (*ref) __P ((attribute_t));
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _authority_vtable
{
int (*ref) __P ((authority_t));
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _mu_debug_vtable
{
int (*ref) __P ((mu_debug_t));
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _envelope_vtable
{
int (*ref) __P ((envelope_t));
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _folder_vtable
{
int (*ref) __P ((folder_t));
......
......@@ -24,14 +24,6 @@
#include <mailutils/header.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -28,14 +28,6 @@
#include <mailutils/refcount.h>
#include <mailutils/sys/iterator.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _lockfile_vtable
{
int (*ref) __P ((lockfile_t));
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _mailbox_vtable
{
/* Constructor/destructor and possible types. */
......
......@@ -24,14 +24,6 @@
#include <mailutils/message.h>
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /* __P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -25,14 +25,6 @@
#include <mailutils/list.h>
#include <mailutils/observable.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -26,14 +26,6 @@
#include <mailutils/observer.h>
#include <mailutils/list.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -29,14 +29,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _refcount
{
unsigned int ref;
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# ifdef __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*__P */
struct _ticket_vtable
{
int (*ref) __P ((ticket_t));
......
......@@ -28,14 +28,6 @@
extern "C" {
#endif
#ifndef __P
# if __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*!__P */
struct _url
{
/* Data */
......
......@@ -19,14 +19,7 @@
#define _MAILUTILS_TICKET_H
#include <sys/types.h>
#ifndef __P
#ifdef __STDC__
#define __P(args) args
#else
#define __P(args) ()
#endif
#endif /*__P */
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -19,19 +19,12 @@
#define _MAILUTILS_URL_H 1
#include <sys/types.h>
#include <mailutils/mu_features.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __P
# if __STDC__
# define __P(args) args
# else
# define __P(args) ()
# endif
#endif /*!__P */
/* Forward declaration. */
struct _url;
typedef struct _url * url_t;
......