version 1.1, 2000/04/12 20:06:16
|
version 1.3, 2000/05/15 20:33:33
|
Line 32
|
Line 32
|
#include <sys/fcntl.h> /* lockf() */ |
#include <sys/fcntl.h> /* lockf() */ |
#include <sys/file.h> /* flock() */ |
#include <sys/file.h> /* flock() */ |
#include <sys/types.h> |
#include <sys/types.h> |
|
#include <stdarg.h> |
#include "capaParser.h" |
#include "capaParser.h" |
|
|
#ifndef MAX |
#ifndef MAX |
Line 138 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 end_mode CAPA_ARG((void)); |
|
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 */ |