1 /* $Id: bible.h,v 2.2 2005/01/21 18:32:13 matthew Exp $ */ 2 #ifndef __BIBLE_H__ 3 #define __BIBLE_H__ 4 5 #define FALSE (0) 6 #define TRUE (1) 7 8 #define REFSZ 15 9 #define VSPECSZ 132 10 #define LINESZ 1024 11 #define VBUFFSZ 32768 12 13 char *myname; /* Program Name */ 14 int mem_limit; /* Limit on buffer space used by BRL */ 15 int pretty_printing=FALSE; /* Format the output */ 16 int list_always=FALSE; /* List refs after a search */ 17 int line_width=0; /* Line width to use in formatting */ 18 int skip_inc=1; /* Scrolling direction through text */ 19 int select_count=0; /* Count of verses selected via concordance */ 20 ref_t selectbuf[SELECTSZ]; /* List of selected verses */ 21 ref_t inrange_start=0, 22 inrange_end=0; /* Range limits on concordance selection */ 23 FILE *outf=NULL; /* Output file */ 24 25 int do_concordance(char *word,ref_t *buf ); 26 void cmd_ANDconcordance(char *word); 27 void cmd_ORconcordance(char *word); 28 void cmd_concordance(char *word); 29 void cmd_help(void); 30 void cmd_inrange(char *range); 31 void cmd_list(void); 32 void cmd_pretty_print(int verbose); 33 void cmd_view(void); 34 void cmd_write(char *fname); 35 void do_command(char *cmd); 36 void user_input(char *cmd); 37 char *getprompt(void); 38 void usage(void); 39 40 41 #endif /*__BIBLE_H__*/ 42