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.

31 lines
485 B

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