i have just recently downloaded a patch which converts all the send_to_*
functs to send_to_*f functs.
since i didnt want to lose my old functionality i just wrote new functs
from the info on the patch.
the problem i'm having is that the following lines are generating compile
errors. if anybody has seen this and knows how to fix it please let me
know because i'm totally stumped.
#if defined(__GNUC__)
void send_to_allf(const char *messg, ...);
__attribute__ ((format (printf, 1, 2))); // line 21
void send_to_charf(struct char_data *ch, const char *messg, ...);
__attribute__ ((format (printf,2, 3))); //line 23
void send_to_roomf(int room, const char *messg, ...);
__attribute__ ((format (printf, 2, 3))); //line 25
void send_to_outdoorf(const char *messg, ...);
__attribute__ ((format (printf, 1, 2))); //line 27
#else
void send_to_all(const char *messg, ...);
void send_to_charf(struct char_data *ch, const char *messg, ...);
void send_to_roomf(int room, const char *messg, ...);
void send_to_outdoor(const char *messg, ...);
#endif
compile messages...
gcc -c -g -O -Wall -fno-strict-prototypes -pg comm.c
In file included from comm.c:32:
comm.h:21: parse error before `;'
comm.h:23: parse error before `;'
comm.h:25: parse error before `;'
comm.h:27: parse error before `;'
----> snip
i am using the gnu compiler(v 2.7) and i DO have the
vsnprintf() funct in my <stdarg.h> lib.
any idea anybody?
bill
Son of Ra, Brother of Poseidon
+------------------------------------------------------------+
| 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