status bits
Declare structure before using it in prototypes, and declare atol() for configurations which don't have or don't use <stdlib.h>. (Some #ifdef MICRO code for atoi at the end of system.h might need to be done for atol too.)
This commit is contained in:
18
src/botl.c
18
src/botl.c
@@ -16,6 +16,15 @@ const char * const enc_stat[] = {
|
||||
};
|
||||
|
||||
#ifdef STATUS_VIA_WINDOWPORT
|
||||
struct istat_s {
|
||||
long time;
|
||||
unsigned anytype;
|
||||
anything a;
|
||||
char *val;
|
||||
int valwidth;
|
||||
int idxmax;
|
||||
};
|
||||
|
||||
STATIC_DCL void NDECL(init_blstats);
|
||||
STATIC_DCL char *FDECL(anything_to_s, (char *, anything *, int));
|
||||
STATIC_DCL void FDECL(s_to_anything, (anything *, char *, int));
|
||||
@@ -306,15 +315,6 @@ bot()
|
||||
|
||||
#else /* STATUS_VIA_WINDOWPORT */
|
||||
|
||||
struct istat_s {
|
||||
long time;
|
||||
unsigned anytype;
|
||||
anything a;
|
||||
char *val;
|
||||
int valwidth;
|
||||
int idxmax;
|
||||
};
|
||||
|
||||
/* If entries are added to this, botl.h will require updating too */
|
||||
struct istat_s blstats[2][MAXBLSTATS] = {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user