Flexible Bible Reference Parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
386 B

  1. #ifndef __FBRP
  2. #define __FBRP 1
  3. #define BOOK_LENGTH 30
  4. #define MAX_READ 25
  5. #define MAX_WORD 20
  6. struct Reference {
  7. char book[BOOK_LENGTH];
  8. struct Chapter {
  9. int type;
  10. int r[2];
  11. int length;
  12. }chapter[5];
  13. struct Verse {
  14. int type;
  15. int r[2];
  16. int length;
  17. }verse[10];
  18. int chapterLength;
  19. int verseLength;
  20. };
  21. void parseReference(struct Reference *ref, char *string);
  22. #endif