Re: [NEWBIE] dgevents and borland 5.01 error

From: Mundi King (kingmundi@YAHOO.COM)
Date: 09/20/98


there are two places that queue.h gets included,
in events.c, and queue.c

i removed the #include queue.h
and cut and pasted the entire contents of queue.h
to the top of events.c and queue.c

> in circle30bpl14\src\queue.h
>
> /* function protos need by other modules */
> struct queue *queue_init(void);
> struct q_element *queue_enq(struct queue *q, void *data, long key);
> void queue_deq(struct queue *q, struct q_element *qe);
> void *queue_head(struct queue *q);
> long queue_key(struct queue *q);
> long queue_elmt_key(struct q_element *qe);
> void queue_free(struct queue *q);
>

and it compiles without error, and seems to run fine
i have no idea why just having
#include queue.h

is any different then putting the entire contents of
queue.h at the top of the file

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST