version 1.2, 2000/05/03 15:35:11
|
version 1.3, 2000/05/15 20:33:33
|
Line 139 typedef struct {
|
Line 139 typedef struct {
|
|
|
#define leap_years_since_year_1(yr) ((yr) / 4 - centuries_since_1700(yr) + quad_centuries_since_1700(yr)) |
#define leap_years_since_year_1(yr) ((yr) / 4 - centuries_since_1700(yr) + quad_centuries_since_1700(yr)) |
|
|
|
int mode; |
|
#define MODE_NONE 0 |
|
#define MODE_COMMENT 1 |
|
#define MODE_BLOCK 2 |
|
#define MODE_SCRIPT 3 |
|
#define MODE_OUTTEXT 4 |
|
|
|
struct dyn_string { |
|
int len; |
|
int max; |
|
char *str; |
|
}; |
|
struct dyn_string dyn_out; |
|
struct dyn_string dyn_delayed; |
|
extern int dyn_maxlen; |
/*=============================================================================*/ |
/*=============================================================================*/ |
/* CAPA PROTOTYPES FOR FUNCTIONS IN COMMON.C */ |
/* CAPA PROTOTYPES FOR FUNCTIONS IN COMMON.C */ |
/*=============================================================================*/ |
/*=============================================================================*/ |
/*-----------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------*/ |
int capa_parse CAPA_ARG((int set,Problem_t **problem,char *filename,int *num_questions,void (*func_ptr)())); |
int capa_parse CAPA_ARG((int set,Problem_t **problem,char *filename,int *num_questions,void (*func_ptr)())); |
void send CAPA_ARG((char* text,...)); |
void send CAPA_ARG((char* text,...)); |
void send_delayed CAPA_ARG((char* text,...)); |
void end_mode CAPA_ARG((void)); |
void remove_delayed CAPA_ARG(()); |
void start_mode CAPA_ARG((int newmode,char* args)); |
|
void dyn_init(); |
|
void dyn_free(); |
|
int append_message(struct dyn_string *dyn_msg,char *format,va_list ap); |
|
void add_dealyed(char *format, ...); |
|
void flush_delayed(); |
|
void start_delayed(); |
|
void end_delayed(); |
/*============================================================================*/ |
/*============================================================================*/ |
|
|
#endif /* CAPA_COMMON_H */ |
#endif /* CAPA_COMMON_H */ |