de-__P
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14551 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -44,22 +44,22 @@
|
||||
#define __attribute__(X)
|
||||
#endif
|
||||
|
||||
typedef void (*errf) __P((const char *, long, const char *, va_list));
|
||||
typedef void (*errf) (const char *, long, const char *, va_list);
|
||||
|
||||
const char * error_message __P((long));
|
||||
int init_error_table __P((const char**, long, int));
|
||||
const char * error_message (long);
|
||||
int init_error_table (const char**, long, int);
|
||||
|
||||
void com_err_va __P((const char *, long, const char *, va_list))
|
||||
void com_err_va (const char *, long, const char *, va_list)
|
||||
__attribute__((format(printf, 3, 0)));
|
||||
|
||||
void com_err __P((const char *, long, const char *, ...))
|
||||
void com_err (const char *, long, const char *, ...)
|
||||
__attribute__((format(printf, 3, 4)));
|
||||
|
||||
errf set_com_err_hook __P((errf));
|
||||
errf reset_com_err_hook __P((void));
|
||||
errf set_com_err_hook (errf);
|
||||
errf reset_com_err_hook (void);
|
||||
|
||||
const char *error_table_name __P((int num));
|
||||
const char *error_table_name (int num);
|
||||
|
||||
void add_to_error_table __P((struct et_list *new_table));
|
||||
void add_to_error_table (struct et_list *new_table);
|
||||
|
||||
#endif /* __COM_ERR_H__ */
|
||||
|
@@ -40,14 +40,6 @@
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#ifndef __P
|
||||
#ifdef __STDC__
|
||||
#define __P(X) X
|
||||
#else
|
||||
#define __P(X) ()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct error_table {
|
||||
char const * const * msgs;
|
||||
long base;
|
||||
@@ -59,8 +51,8 @@ struct et_list {
|
||||
};
|
||||
extern struct et_list *_et_list;
|
||||
|
||||
const char *com_right __P((struct et_list *list, long code));
|
||||
void initialize_error_table_r __P((struct et_list **, const char **, int, long));
|
||||
void free_error_table __P((struct et_list *));
|
||||
const char *com_right (struct et_list *list, long code);
|
||||
void initialize_error_table_r (struct et_list **, const char **, int, long);
|
||||
void free_error_table (struct et_list *);
|
||||
|
||||
#endif /* __COM_RIGHT_H__ */
|
||||
|
Reference in New Issue
Block a user