retire _PROTOTYPE

. only good for obsolete K&R support
	. also remove a stray ansi.h and the proto cmd
This commit is contained in:
Ben Gras
2012-03-24 16:16:34 +01:00
parent cf720a028a
commit 6a73e85ad1
475 changed files with 5256 additions and 6252 deletions

View File

@@ -1,11 +1,9 @@
#ifndef _BLOCKDRIVER_DRIVER_H
#define _BLOCKDRIVER_DRIVER_H
_PROTOTYPE( void blockdriver_handle_notify, (struct blockdriver *bdp,
message *m_ptr) );
_PROTOTYPE( int blockdriver_handle_request, (struct blockdriver *bdp,
message *m_ptr, thread_id_t thread) );
_PROTOTYPE( void blockdriver_reply, (message *m_ptr, int ipc_status,
int reply) );
void blockdriver_handle_notify(struct blockdriver *bdp, message *m_ptr);
int blockdriver_handle_request(struct blockdriver *bdp, message *m_ptr,
thread_id_t thread);
void blockdriver_reply(message *m_ptr, int ipc_status, int reply);
#endif /* _BLOCKDRIVER_DRIVER_H */

View File

@@ -11,13 +11,13 @@
/* Extended partition? */
#define ext_part(s) ((s) == 0x05 || (s) == 0x0F)
FORWARD _PROTOTYPE( void parse_part_table, (struct blockdriver *bdp,
int device, int style, int atapi, u8_t *tmp_buf) );
FORWARD _PROTOTYPE( void extpartition, (struct blockdriver *bdp, int extdev,
unsigned long extbase, u8_t *tmp_buf) );
FORWARD _PROTOTYPE( int get_part_table, (struct blockdriver *bdp, int device,
unsigned long offset, struct part_entry *table, u8_t *tmp_buf) );
FORWARD _PROTOTYPE( void sort, (struct part_entry *table) );
FORWARD void parse_part_table(struct blockdriver *bdp, int device, int
style, int atapi, u8_t *tmp_buf);
FORWARD void extpartition(struct blockdriver *bdp, int extdev, unsigned
long extbase, u8_t *tmp_buf);
FORWARD int get_part_table(struct blockdriver *bdp, int device, unsigned
long offset, struct part_entry *table, u8_t *tmp_buf);
FORWARD void sort(struct part_entry *table);
/*============================================================================*
* partition *

View File

@@ -1,10 +1,9 @@
#ifndef _BLOCKDRIVER_MQ_H
#define _BLOCKDRIVER_MQ_H
_PROTOTYPE( void mq_init, (void) );
_PROTOTYPE( int mq_enqueue, (device_id_t device_id, const message *mess,
int ipc_status) );
_PROTOTYPE( int mq_dequeue, (device_id_t device_id, message *mess,
int *ipc_status) );
void mq_init(void);
int mq_enqueue(device_id_t device_id, const message *mess, int
ipc_status);
int mq_dequeue(device_id_t device_id, message *mess, int *ipc_status);
#endif /* _BLOCKDRIVER_MQ_H */

View File

@@ -1,11 +1,11 @@
#ifndef _BLOCKDRIVER_TRACE_H
#define _BLOCKDRIVER_TRACE_H
_PROTOTYPE( int trace_ctl, (dev_t minor, unsigned int request,
endpoint_t endpt, cp_grant_id_t grant));
int trace_ctl(dev_t minor, unsigned int request, endpoint_t endpt,
cp_grant_id_t grant);
_PROTOTYPE( void trace_start, (thread_id_t thread_id, message *m_ptr));
_PROTOTYPE( void trace_setsize, (thread_id_t thread_id, size_t size));
_PROTOTYPE( void trace_finish, (thread_id_t thread_id, int r));
void trace_start(thread_id_t thread_id, message *m_ptr);
void trace_setsize(thread_id_t thread_id, size_t size);
void trace_finish(thread_id_t thread_id, int r);
#endif /* _BLOCKDRIVER_TRACE_H */