extern int att_free_lists(struct emp_qelem *, struct emp_qelem *);
-extern s_char *att_mode[];
+extern char *att_mode[A_LBOARD + 1];
#endif /* _COMBAT_H_ */
typedef char s_char; /* change to signed char for aix */
#else
typedef signed char s_char;
-/* gcc __attribute__((format ...)) chokes on s_char * format strings */
-#undef ATTRIBUTE
-#define ATTRIBUTE(attr)
#endif /* !aix && !sgi */
typedef short coord;
extern char *getstring(char *prompt, char buf[]);
extern char *ugetstring(char *prompt, char buf[]);
-extern s_char *prbuf(s_char *format, ...)
+extern char *prbuf(char *format, ...)
ATTRIBUTE((format (printf, 1, 2)));
#define AGREE_FREE 0
int height;
};
-extern s_char *xyas(coord x, coord y, natid country);
-extern s_char *ownxy(struct sctstr *sp);
+extern char *xyas(coord x, coord y, natid country);
+extern char *ownxy(struct sctstr *sp);
extern coord xrel(struct natstr *np, coord absx);
extern coord yrel(struct natstr *np, coord absy);
extern void xyrelrange(struct natstr *np, struct range *src,
* return pointer to a string containing the x,y
* coords as desired by a particular target country.
*/
-s_char *
+char *
xyas(coord x, coord y, natid country)
{
struct natstr *np;
return prbuf("%d,%d", xrel(np, x), yrel(np, y));
}
-s_char *
+char *
ownxy(struct sctstr *sp)
{
return xyas(sp->sct_x, sp->sct_y, sp->sct_own);
}
-s_char *
-prbuf(s_char *format, ...)
+char *
+prbuf(char *format, ...)
{
static int nbuf = -1;
- static s_char buf[20][1024];
+ static char buf[20][1024];
va_list ap;
if (++nbuf > 19)
static int get_land(int combat_mode, struct combat *def, int uid,
struct llist *llp, int victim_land);
-s_char *att_mode[] = {
+char *att_mode[] = {
/* must match combat types in combat.h */
"defend", "attack", "assault", "paradrop", "board", "lboard"
};